@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

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

:root {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  --bg: #f7f7f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #56616a;
  --line: rgba(17, 24, 39, 0.12);
  --accent: #6d28d9;
  --accent-2: #64748b;
  --accent-3: #b45309;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 4%, rgba(109, 40, 217, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(100, 116, 139, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbfbfc 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.04rem;
  line-height: 1.65;
  transition: background 0.24s ease, color 0.24s ease;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: rgba(20, 25, 34, 0.88);
  --surface-strong: #141922;
  --ink: #f4f5f7;
  --muted: #aeb6c2;
  --line: rgba(203, 213, 225, 0.16);
  --accent: #8b5cf6;
  --accent-2: #64748b;
  --accent-3: #d97706;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 10% 8%, rgba(139, 92, 246, 0.1), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(100, 116, 139, 0.1), transparent 30rem),
    linear-gradient(180deg, #0d1117 0%, #141922 100%);
}

a {
  color: inherit;
}

.topbar,
main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 14px 40px rgba(19, 21, 26, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.nav a:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
}

.top-actions,
.lang-switch {
  display: inline-flex;
  align-items: center;
}

.top-actions {
  justify-content: flex-end;
  gap: 10px;
}

.portfolio-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.1);
}

.portfolio-link:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-strong));
}

.lang-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.lang-switch button,
.theme-toggle {
  cursor: pointer;
  font: inherit;
}

.lang-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  padding: 8px 10px;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--surface-strong);
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
}

main {
  display: grid;
  gap: 72px;
  padding: 58px 0 76px;
}

.hero-shell,
.proof-strip,
.why-grid article,
.steps article,
.offer-grid article,
.about-card,
.cta {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 15%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 26rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 52%);
}

.hero-shell > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  margin-top: 16px;
  font-size: clamp(2.35rem, 4.3vw, 4.35rem);
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(19, 21, 26, 0.16);
}

.btn.primary {
  background: linear-gradient(120deg, #7c3aed, #4f46e5);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.18);
}

.btn.secondary {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent)),
    var(--surface-strong);
  color: var(--ink);
}

.hero-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  align-self: center;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  backdrop-filter: blur(12px);
}

.about-card img {
  object-fit: cover;
  object-position: center;
}

.summary-label,
.summary-grid span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-grid div {
  display: grid;
  align-content: center;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.summary-grid span {
  font-size: 0.72rem;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  line-height: 1.16;
}

.hero-summary ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.hero-summary li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.32;
}

.hero-summary li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  overflow: hidden;
}

.proof-strip div {
  padding: 26px;
}

.proof-strip div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
}

.proof-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading h2 {
  max-width: 860px;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
}

.why-grid,
.steps,
.offer-grid {
  display: grid;
  gap: 18px;
}

.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

.steps,
.offer-grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-grid article,
.steps article,
.offer-grid article {
  border-radius: 22px;
  padding: 24px;
}

.steps article,
.offer-grid article {
  min-height: 248px;
}

.steps span {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.why-grid h3,
.steps h3,
.offer-grid h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.why-grid h3 {
  margin-top: 0;
}

.why-grid p,
.steps p,
.offer-grid p,
.about-card p,
.cta p {
  margin-top: 12px;
  color: var(--muted);
}

.offer-grid i {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.about-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.about-card img {
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: 0 18px 44px rgba(109, 40, 217, 0.14);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.about-card h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--surface);
}

.cta h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.copy-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: min(360px, calc(100vw - 28px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 1040px) {
  .topbar,
  .hero-shell,
  .cta,
  .about-card {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .why-grid,
  .steps,
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-card img {
    width: 160px;
  }
}

@media (max-width: 640px) {
  .topbar,
  main {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    position: static;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .portfolio-link {
    min-height: 44px;
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .lang-switch button {
    min-width: 36px;
    min-height: 44px;
    padding: 8px;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  main {
    gap: 42px;
    padding: 24px 0 48px;
  }

  .hero-shell {
    gap: 24px;
    border-radius: 24px;
    padding: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 9vw, 2.6rem);
    line-height: 1.03;
  }

  .lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .btn {
    min-height: 50px;
  }

  .hero-summary {
    padding: 18px;
    border-radius: 20px;
  }

  .summary-grid,
  .why-grid,
  .steps,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip div,
  .why-grid article,
  .steps article,
  .offer-grid article,
  .about-card {
    padding: 20px;
  }

  .steps article,
  .offer-grid article {
    min-height: auto;
  }

  .about-card {
    border-radius: 24px;
  }

  .about-card img {
    width: 132px;
    border-radius: 28px;
  }

  .section {
    gap: 18px;
  }

  .section-heading h2,
  .cta h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .cta {
    padding: 22px;
    gap: 22px;
    border-radius: 24px;
  }

  .hero-actions .btn,
  .cta .btn {
    width: 100%;
  }
}

/* Small phones (portrait): tighten rhythm */
@media (max-width: 400px) {
  .topbar,
  main {
    width: min(100% - 20px, 1180px);
  }

  main {
    gap: 34px;
  }

  .hero-shell {
    padding: 18px;
  }

  .hero-summary,
  .why-grid article,
  .steps article,
  .offer-grid article,
  .proof-strip div,
  .about-card,
  .cta {
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .steps span {
    font-size: 2.1rem;
  }
}

/* ============================================================
   Purple glow-up — depth, hover, brand rhythm (additive)
   ============================================================ */

/* Hero headline accent word */
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #818cf8) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stronger hero gradient + soft glow */
.hero-shell {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.hero-shell::before {
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 24rem),
    radial-gradient(circle at 4% 92%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 22rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 54%) !important;
}

/* Card hierarchy: hover lift + purple ring across all three grids */
.why-grid article,
.steps article,
.offer-grid article {
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.why-grid article:hover,
.steps article:hover,
.offer-grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow:
    0 22px 46px rgba(17, 24, 39, 0.12),
    0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent),
    0 16px 40px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Method step numbers as large gradient numerals */
.steps span {
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #818cf8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Service icons: larger, gradient-filled, glowing */
.offer-grid i {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 34%, transparent);
}

/* Proof strip: branded, not an afterthought */
.proof-strip {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.proof-strip strong {
  color: var(--accent);
}

/* CTA: bolder branded panel with glow */
.cta {
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--surface) !important;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Primary button glow intensifies on hover */
.btn.primary:hover {
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 44%, transparent);
}

/* Scroll-reveal (JS adds .is-revealed) */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-up.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
