/* ==========================================================================
   CUDOLA CO — styles.css (all styling for index.html and 404.html)
   ==========================================================================
   CODE MAP  ·  search for a code (e.g. "[S05]") to jump to it.
   Section codes match the remarks in index.html and main.js.

   GLOBAL
     [G01] Design tokens — DARK colours, fonts, sizes  (edit colours here)
     [G02] Base & reset — page background, grid pattern, headings
     [G03] Utilities — gradient text, page width, skip link, focus ring
     [G04] Buttons
     [G05] Small labels ("// WHAT WE DO")
     [G06] Shared section layout — spacing, section headings

   PAGE SECTIONS (top → bottom)
     [S00] Top navigation          [S06] Recent work + concepts
     [S01] Hero                    [S07] FAQ
     [S02] Problems we solve       [S08] Contact + form
     [S03] Services                [S09] Footer
     [S04] How it works            [S10] Floating WhatsApp button
     [S05] Plans

   THEME
     [T01] Light theme — DEFAULT (overrides the dark tokens in G01)
     [T02] Theme toggle button (moon / sun)

   MOTION
     [M01] Scroll-reveal animation + reduced-motion support

   BREAKPOINTS used throughout: 960px (tablet), 900px (menu → hamburger),
   760/620/560/520px (phone).
   ========================================================================== */

/* ==========================================================
   [G01] DESIGN TOKENS — dark theme values (light overrides live in [T01])
   --cyan/--blue/--violet = brand gradient · --text/--muted = text colours
   ========================================================== */
:root {
  --bg: #05070E;
  --bg-2: #0A0E1A;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --text: #EAF0FA;
  --muted: #8B95AB;
  --cyan: #22E1FF;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --pink: #E049FF;
  --ok: #34E3A0;
  --warn: #FFB547;
  --grad: linear-gradient(110deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 80%, var(--pink) 110%);
  --grad-soft: linear-gradient(110deg, rgba(34,225,255,.16), rgba(139,92,246,.16));
  --glow: 0 0 0 1px rgba(34,225,255,.25), 0 10px 40px -10px rgba(59,130,246,.55);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1180px;
}

/* ==========================================================
   [G02] BASE & RESET — box sizing, page background, headings
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* [G02.1] Subtle tech grid drawn behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--display); letter-spacing: -0.02em; }
h1, h2 { font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

/* ==========================================================
   [G03] UTILITIES — gradient text, page width, accessibility
   ========================================================== */
/* [G03.1] Gradient text: add class="grad" to any word in a heading */
.grad, .hero h1 em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-style: normal;
}

/* [G03.2] Page width container (max 1180px, 20px side padding) */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }

/* [G03.3] Skip link + keyboard focus ring */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================
   [G04] BUTTONS — .btn (gradient), .btn--ghost (outline), --small, --full
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  color: #fff; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(59,130,246,.7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-position .4s, transform .2s, box-shadow .2s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 40px -8px rgba(139,92,246,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { background: rgba(34,225,255,.08); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 24px -6px rgba(34,225,255,.6); }
.btn--small { padding: 10px 18px; font-size: .9rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ==========================================================
   [G05] EYEBROW LABELS ("// WHAT WE DO") above each section heading
   ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: "//"; color: var(--violet); }

/* ==========================================================
   [S00] TOP NAVIGATION — sticky bar, logo, menu, mobile hamburger panel
   JS: main.js [J03][J04]
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,7,14,.7);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(34,225,255,.35)); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__co { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #05070E; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav__menu .btn { margin-top: 16px; }
}

/* ==========================================================
   [S01] HERO — first screen
   ========================================================== */
.hero { padding: 72px 0 104px; position: relative; overflow: hidden; }
/* [S01.1] Background glow blobs */
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow::before, .hero__glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero__glow::before { width: 520px; height: 520px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(139,92,246,.75), transparent 65%); animation: drift 14s ease-in-out infinite; }
.hero__glow::after { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(34,225,255,.5), transparent 65%); animation: drift 16s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(40px, 30px) scale(1.08); } }

/* [S01.2] Layout: text left, mockup right (stacks on tablet/phone) */
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.04; }
.lead { margin-top: 24px; font-size: 1.12rem; color: var(--muted); max-width: 570px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts {
  list-style: none; margin: 46px 0 0; padding: 24px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line);
}
.hero__facts strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.hero__facts span { display: block; font-size: .87rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* [S01.3] Dashboard mockup (stays dark in both themes for contrast) */
.hero__visual { position: relative; }
.mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(20,26,46,.92), rgba(10,14,26,.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(59,130,246,.45);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.mock::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34,225,255,.7), transparent 40%, transparent 60%, rgba(139,92,246,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mock__bar span { margin-left: 10px; font: 500 .72rem var(--mono); color: var(--muted); background: rgba(255,255,255,.05); padding: 4px 12px; border-radius: 999px; }
.mock__body { padding: 18px; }
.mock__title { font: 600 .95rem var(--display); margin: 2px 0 12px; }
/* [S01.4] Status rows inside the mockup (green = ok, amber = warn) */
.status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05);
  font-size: .86rem;
}
.status b { font: 500 .74rem var(--mono); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status .ok { color: var(--ok); } .status .ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status .warn { color: var(--warn); } .status .warn::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

/* [S01.5] Floating chips on the mockup */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: rgba(14,19,34,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  animation: float 6s ease-in-out infinite;
}
.chip--a { left: -30px; bottom: -22px; }
.chip--b { right: -14px; top: -18px; background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px -8px rgba(139,92,246,.8); animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 480px; margin: 0 auto; width: 100%; padding: 0 12px; }
  .mock { transform: none; }
  .chip--a { left: 0; }
  .chip--b { right: 4px; }
}
@media (max-width: 520px) {
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ==========================================================
   [G06] SHARED SECTION LAYOUT — padding, .section--alt background, section headings
   ========================================================== */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 640px) { .section { padding: 76px 0; } .section__head { margin-bottom: 36px; } }

/* ==========================================================
   [S02] PROBLEMS WE SOLVE — 2-column cards with tick icon
   ========================================================== */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.problem {
  position: relative; display: grid; gap: 8px; padding: 22px 24px 22px 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, background .25s;
}
.problem:hover { border-color: rgba(34,225,255,.35); background: rgba(34,225,255,.04); }
.problem::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34,225,255,.4);
}
.problem::after {
  content: ""; position: absolute; left: 29px; top: 30px; width: 10px; height: 6px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.problem__q { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.problem__a { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .problems { grid-template-columns: 1fr; } }

/* ==========================================================
   [S03] SERVICES — group labels (Core / Expanding) + service cards
   ========================================================== */
.group-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .92rem; color: var(--muted);
}
.group-label span {
  font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 6px; color: var(--bg); background: var(--grad);
}
.group-label span.new { background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34,225,255,.5); }
.cards + .group-label { margin-top: 44px; }

/* [S03.1] Service cards grid: 3 cols → 2 (tablet) → 1 (phone). .card--core = highlighted */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.45); box-shadow: 0 20px 50px -20px rgba(139,92,246,.45); }
.card--core { background: linear-gradient(180deg, rgba(34,225,255,.07), rgba(139,92,246,.05)); border-color: rgba(34,225,255,.22); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================
   [S04] HOW IT WORKS — 4 steps with gradient numbers
   ========================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--grad); box-shadow: 0 0 12px rgba(34,225,255,.7); }
.step__num { display: block; margin-bottom: 14px; font: 700 2.6rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================
   [S05] PLANS — 3 cards; .plan--featured has gradient border + badge
   ========================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.plan h3 { font-size: 1.55rem; font-weight: 700; }
.plan__for { color: var(--muted); margin: 10px 0 22px; font-size: .96rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 28px; font-size: .96rem; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.plan__btn { margin-top: auto; }
.plan--featured {
  background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(139,92,246,.08)), var(--bg-2);
  border-color: transparent; box-shadow: 0 30px 70px -25px rgba(139,92,246,.6);
}
.plan--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan__badge {
  position: absolute; top: -13px; left: 30px; padding: 6px 12px; border-radius: 999px;
  font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--grad); box-shadow: 0 6px 20px -6px rgba(139,92,246,.9);
}
.plans__note { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .93rem; max-width: 640px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 28px; } }

/* ==========================================================
   [S06] RECENT WORK + CONCEPTS — project image cards
   ========================================================== */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.project:hover { transform: translateY(-4px); border-color: rgba(34,225,255,.4); box-shadow: 0 20px 50px -20px rgba(34,225,255,.35); }
.project__thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; font: 700 2rem var(--display); color: #fff; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.project__thumb--run { background: radial-gradient(circle at 30% 25%, rgba(34,225,255,.55), transparent 50%), radial-gradient(circle at 80% 80%, rgba(59,130,246,.5), transparent 50%), #0B1222; }
.project__thumb--film { background: radial-gradient(circle at 75% 30%, rgba(224,73,255,.55), transparent 50%), radial-gradient(circle at 20% 80%, rgba(139,92,246,.55), transparent 50%), #120C22; }
.project__meta { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 28px; }
.project__meta p { color: var(--muted); font-size: .95rem; }
.project__meta .tag { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; }
.project--cta { justify-content: center; background: var(--grad-soft), var(--bg-2); border-color: rgba(139,92,246,.35); }
.project--cta .project__meta { justify-content: center; padding: 36px 30px; }
.project--cta h3 { font-size: 1.75rem; font-weight: 700; }
.project--cta .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 960px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work { grid-template-columns: 1fr; } }

/* [S06.1] Image cards, featured layout (image left, text right) and the CTA strip */
figure.project { margin: 0; }
.project__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); transition: transform .5s; }
.project { transition: transform .25s, border-color .25s, box-shadow .25s; }
.project:hover { transform: translateY(-4px); border-color: rgba(34,225,255,.4); box-shadow: 0 20px 50px -20px rgba(34,225,255,.35); }
.work__cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid rgba(139,92,246,.3);
}
.work__cta p { color: var(--muted); } .work__cta strong { color: var(--text); }

.work--featured { grid-template-columns: 1fr; }
.work--featured .project { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; }
.work--featured .project__img { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; }
.work--featured .project__meta { padding: 36px 40px; justify-content: center; }
.work--featured .project__meta h3 { font-size: 1.7rem; }
.work--featured .project__meta p:not(.tag) { font-size: 1.02rem; }
@media (max-width: 900px) {
  .work--featured .project { grid-template-columns: 1fr; }
  .work--featured .project__img { border-right: 0; border-bottom: 1px solid var(--line); }
  .work--featured .project__meta { padding: 24px 26px 28px; }
}
.work__label { margin-top: 52px; }
@media (max-width: 760px) { .work--featured { grid-template-columns: 1fr; } }

/* ==========================================================
   [S07] FAQ — expandable <details> rows
   ========================================================== */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(34,225,255,.35); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 32px 20px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: transform .25s, margin-top .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ==========================================================
   [S08] CONTACT — details list + enquiry form
   JS: main.js [J07]
   ========================================================== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 16px; }
.contact__intro > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.contact__list li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__list span { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list p { font-size: 1.1rem; font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--cyan); }

/* [S08.1] Form card, fields, validation (.is-invalid) and status message */
.form {
  position: relative; display: grid; gap: 16px; padding: 34px; border-radius: var(--radius-lg);
  background: rgba(14,19,34,.8); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(59,130,246,.45);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.form input::placeholder, .form textarea::placeholder { color: #5D677D; }
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322E1FF' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px;
}
.form select option { background: var(--bg-2); color: var(--text); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(34,225,255,.05); box-shadow: 0 0 0 4px rgba(34,225,255,.12);
}
.form .is-invalid { border-color: #FF5C7A; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.4em; font-size: .93rem; text-align: center; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: #FF7A90; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) { .form { padding: 24px 20px; } .form__row { grid-template-columns: 1fr; } }

/* ==========================================================
   [S09] FOOTER
   ========================================================== */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .brand__name { color: var(--text); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer__tag { margin-top: 10px; font-size: .92rem; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-size: .93rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; }
@media (max-width: 640px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================
   [S10] FLOATING WHATSAPP BUTTON — fixed bottom-right
   ========================================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 0 0 4px rgba(37,211,102,.15), 0 10px 30px -6px rgba(37,211,102,.7); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ==========================================================
   [T01] LIGHT THEME — the DEFAULT look (html has data-theme="light")
   Overrides the dark tokens in [G01]. Toggle [T02] switches to dark.
   ========================================================== */

/* [T01.1] Light colour tokens — EDIT light-mode colours here */
:root[data-theme="light"] {
  --bg: #F6F8FC; --bg-2: #ECF0F8;
  --surface: #FFFFFF; --surface-2: #F3F5FA;
  --line: rgba(15,23,42,.09); --line-2: rgba(15,23,42,.16);
  --text: #0B1222; --muted: #556075;
  --cyan: #0BA5C9; --ok: #10A36B; --warn: #C97A06;
  --grad-soft: linear-gradient(110deg, rgba(34,225,255,.14), rgba(139,92,246,.12));
}
[data-theme="light"] { color-scheme: light; }

/* [T01.2] Page background + grid pattern */
html[data-theme="light"], [data-theme="light"] body { background: var(--bg) !important; }
[data-theme="light"] body::before { background-image:
  linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px) !important; }

/* [T01.3] Navigation + logo (white logo inverted to black) — see [S00] */
[data-theme="light"] .nav { background: rgba(246,248,252,.85) !important; }
[data-theme="light"] .nav__toggle span { background: var(--text) !important; }
[data-theme="light"] .brand__logo { filter: invert(1) !important; }
@media (max-width: 900px) { [data-theme="light"] .nav__menu { background: #F6F8FC; } }

/* [T01.4] Hero — softer glow, white chip; mockup stays dark — see [S01] */
[data-theme="light"] .hero__glow::before { opacity: .28 !important; }
[data-theme="light"] .hero__glow::after { opacity: .3 !important; }
[data-theme="light"] .chip--a { background: rgba(255,255,255,.92) !important; color: var(--text); }
[data-theme="light"] .mock { color: #EAF0FA; }
[data-theme="light"] .mock .status .ok { color: #34E3A0; }
[data-theme="light"] .mock .status .warn { color: #FFB547; }

/* [T01.5] Buttons + cards (white cards, soft shadow) — see [G04] [S02] [S03] [S05] [S06] [S07] */
[data-theme="light"] .btn--ghost { background: #fff !important; color: var(--text) !important; }
[data-theme="light"] .card, [data-theme="light"] .problem, [data-theme="light"] .plan, [data-theme="light"] .project, [data-theme="light"] .faq details { background: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12); }
[data-theme="light"] .card--core { background: linear-gradient(180deg, rgba(34,225,255,.09), rgba(139,92,246,.06)), #fff !important; }
[data-theme="light"] .plan--featured { background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(139,92,246,.06)), #fff !important; }
[data-theme="light"] .project--cta { background: var(--grad-soft), #fff !important; }
[data-theme="light"] .work__cta { background: var(--grad-soft), #fff !important; }
[data-theme="light"] .group-label span { color: #fff !important; }
[data-theme="light"] .faq details[open] { border-color: rgba(11,165,201,.4); }

/* [T01.6] Alternate section background — see [G06] */
[data-theme="light"] .section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)) !important; }

/* [T01.7] Contact form — see [S08] */
[data-theme="light"] .form { background: #fff !important; box-shadow: 0 30px 80px -30px rgba(59,130,246,.25) !important; }
[data-theme="light"] .form input, [data-theme="light"] .form select, [data-theme="light"] .form textarea { background: var(--surface-2) !important; color: var(--text) !important; }
[data-theme="light"] .form input::placeholder, [data-theme="light"] .form textarea::placeholder { color: #8A94A8 !important; }
[data-theme="light"] .form select option { background: #fff !important; }

/* [T01.8] Footer — see [S09] */
[data-theme="light"] .footer { background: #fff; }

/* ==========================================================
   [T02] THEME TOGGLE BUTTON — moon shows in light mode, sun in dark mode
   JS: main.js [J01] · HTML: index.html [S00.2]
   ========================================================== */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s, background .2s; flex: none;
}
.theme-toggle:hover { border-color: var(--cyan); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
/* [T02.1] Holder for toggle + hamburger; sits at the far right on desktop */
.nav__right { display: flex; align-items: center; gap: 10px; }
@media (min-width: 901px) { .nav__right { order: 3; margin-left: 20px; } .nav__inner { justify-content: flex-start; } .nav__menu { margin-left: auto; } }

/* ==========================================================
   [M01] SCROLL-REVEAL — elements with class "reveal" fade up when scrolled into view
   JS: main.js [J05]. Reduced-motion users get no animation.
   ========================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
