:root {
  --bg: #05070f;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.62);
  --glass-border: rgba(148, 163, 184, 0.2);
  --business: #3b82f6;
  --shopping: #8b5cf6;
  --delivery: #1e3a8a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2 {
  line-height: 1.2;
}

body[data-theme="light"] {
  --bg: #f6f7fb;
  --ink: #0f172a;
  --muted: #475569;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.bg-orbit {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 65vh;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.2), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.2), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(30, 58, 138, 0.2), transparent 45%);
  filter: blur(10px);
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

body[data-theme="light"] .bg-grid {
  opacity: 0.12;
}

.dev-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 18, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  z-index: 10;
}

body[data-theme="light"] .dev-header {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.back-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

body[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: linear-gradient(120deg, var(--business), var(--shopping));
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.dev-main {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: grid;
  gap: 1.2rem;
}

.major-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 1.9rem 1.6rem 1.4rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.42), 0 14px 44px rgba(139, 92, 246, 0.34);
}

body[data-theme="light"] .major-card {
  box-shadow: 0 22px 56px rgba(30, 41, 59, 0.14), 0 10px 30px rgba(139, 92, 246, 0.22);
}

.content-block {
  padding: 0.6rem 0 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.content-block:last-child {
  border-bottom: none;
}

.dev-profile {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-bottom: 0.3rem;
}

.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(130deg, var(--business), var(--shopping), var(--delivery));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.38);
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(15, 23, 42, 0.55);
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.95));
}

.avatar-wrap.no-image .avatar-image {
  display: none;
}

.avatar-wrap.no-image .avatar-fallback {
  display: inline-flex;
}

.signature-name {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1;
  color: #dbeafe;
}

body[data-theme="light"] .signature-name {
  color: #1d4ed8;
}

.eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.8rem;
}

.subtitle {
  color: var(--muted);
  max-width: 860px;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.meta-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.meta-list li {
  display: grid;
  gap: 0.2rem;
}

.meta-list span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.meta-list strong {
  font-weight: 600;
}

.tease {
  margin-top: 0.9rem;
  color: #c7d2fe;
}

body[data-theme="light"] .tease {
  color: #1d4ed8;
}

.flow {
  display: block;
}

.flow-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.28);
}

body[data-theme="light"] .flow-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.flow-row {
  display: grid;
  gap: 0.45rem;
}

.flow-row + .flow-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  position: relative;
}

.flow-row + .flow-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--business), var(--shopping));
  border-radius: 999px;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.flow-head i {
  font-size: 1.1rem;
  color: #a5b4fc;
}

.flow-row p {
  color: var(--muted);
}

.callout p {
  color: var(--muted);
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 0.7s ease forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dev-footer {
  padding: 1.1rem 0 1.8rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.7rem 0;
  }

  .dev-main {
    width: min(860px, 94%);
    padding: 2.2rem 0 3.1rem;
  }

  .major-card {
    border-radius: 24px;
    padding: 1.5rem 1.2rem 1.1rem;
  }

  .avatar-wrap {
    width: 124px;
    height: 124px;
  }
}
