/* =========================================================================
   APURVA.DEV — stylesheet
   Design language: a "code editor / browser workspace" motif — the site
   itself looks like the tool you'd use to build a site, since that's the
   product being sold. Navigation = file tabs, section labels = code
   comments, portfolio previews = literal browser windows.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root{
  /* Light mode palette */
  --bg: #F5F6F8;
  --bg-alt: #FFFFFF;
  --bg-raised: #FFFFFF;
  --ink: #10151C;
  --ink-soft: #4A5568;
  --ink-faint: #68717F;
  --border: #DFE3E8;
  --border-strong: #C7CDD6;

  --accent: #D9932C;        /* warm amber — action / CTA */
  --accent-ink: #171000;
  --accent-soft: #FBE7C6;
  --teal: #0E7C7B;          /* deep teal — tech / interactive tags */
  --teal-soft: #D8F0EE;
  --whatsapp: #22B457;

  --shadow-sm: 0 1px 2px rgba(16,21,28,0.06);
  --shadow-md: 0 8px 24px rgba(16,21,28,0.08);
  --shadow-lg: 0 20px 48px rgba(16,21,28,0.14);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
  --nav-h: 72px;

  color-scheme: light;
}

html[data-theme="dark"]{
  --bg: #0B0E13;
  --bg-alt: #12161D;
  --bg-raised: #171C24;
  --ink: #E9ECEF;
  --ink-soft: #A2ABB8;
  --ink-faint: #79808C;
  --border: #232833;
  --border-strong: #323A48;

  --accent: #EFAE4E;
  --accent-ink: #171000;
  --accent-soft: #3A2C10;
  --teal: #2FD9C8;
  --teal-soft: #10302D;
  --whatsapp: #2FD46B;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);

  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

h1, h2, h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; }
img{ max-width: 100%; display: block; }

.accent{ color: var(--accent); }
.accent-underline{
  background-image: linear-gradient(transparent 72%, var(--accent-soft) 0%);
  background-repeat: no-repeat;
}
html[data-theme="dark"] .accent-underline{ background-image: linear-gradient(transparent 72%, var(--accent-soft) 0%); }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Custom cursor (desktop / fine-pointer only) ---------- */
.cursor-dot, .cursor-ring{
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; will-change: transform;
}
.cursor-dot{ width: 6px; height: 6px; background: var(--accent); }
.cursor-ring{ width: 34px; height: 34px; border: 1.5px solid var(--ink-faint); transition: width .18s ease, height .18s ease, border-color .18s ease, opacity .2s ease; }
body.has-fine-pointer .cursor-dot,
body.has-fine-pointer .cursor-ring{ opacity: 1; }
body.cursor-active .cursor-ring{ width: 52px; height: 52px; border-color: var(--accent); }
body.has-fine-pointer, body.has-fine-pointer a, body.has-fine-pointer button{ cursor: none; }

/* ---------- 4. Layout helpers ---------- */
.section{ padding: 108px 0; }
.section-alt{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner, .topbar-inner, .footer-inner, .hero-inner{
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-mono); font-size: 13px; color: var(--teal);
  letter-spacing: 0.02em; margin: 0 0 14px;
}
.section-title{ font-size: clamp(28px, 4vw, 42px); max-width: 760px; }
.section-sub{ font-size: 17px; max-width: 640px; margin-top: 16px; }

/* ---------- 5. Top nav — "editor tab bar" ---------- */
.topbar{
  position: sticky; top: 0; z-index: 500; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{ height: 100%; display: flex; align-items: center; gap: 28px; }

.brand{ display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-dots{ display: inline-flex; gap: 4px; }
.brand-dots i{ width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.brand-dots i:nth-child(1){ background: #ED6A5E; }
.brand-dots i:nth-child(2){ background: #F4BF4F; }
.brand-dots i:nth-child(3){ background: #61C454; }

.tabs{ display: flex; align-items: center; gap: 2px; margin-left: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar{ display: none; }
.tab{
  display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 9px 9px 0 0;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-soft); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.tab .ext{ color: var(--ink-faint); }
.tab-dot{ width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); transition: background-color .2s ease; }
.tab:hover{ color: var(--ink); background: var(--bg-alt); }
.tab.is-active{ color: var(--ink); border-bottom-color: var(--accent); }
.tab.is-active .tab-dot{ background: var(--accent); }

.topbar-actions{ display: flex; align-items: center; gap: 10px; }

.icon-btn{
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.icon-btn:hover{ border-color: var(--accent); }
.icon-moon{ display: none; }
html[data-theme="dark"] .icon-sun{ display: none; }
html[data-theme="dark"] .icon-moon{ display: block; }

.nav-toggle{
  display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-alt); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.nav-toggle span{ width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* ---------- 6. Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost{ background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-sm{ padding: 9px 16px; font-size: 13.5px; }
.btn-block{ width: 100%; }

/* ---------- 7. Hero ---------- */
.hero{ position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero-inner{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-title{ font-size: clamp(34px, 5vw, 56px); margin-top: 14px; }
.hero-sub{ font-size: 18px; max-width: 520px; margin-top: 22px; }
.hero-cta{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats{ display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-num{ font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.stat-label{ font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); max-width: 130px; }

.hero-visual{ position: relative; }
.window{
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar{
  display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.window-bar .dot{ width: 10px; height: 10px; border-radius: 50%; }
.dot.red{ background: #ED6A5E; } .dot.yellow{ background: #F4BF4F; } .dot.green{ background: #61C454; }
.window-title{ margin-left: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.window-body{ padding: 26px; min-height: 220px; }
.term-line{ font-family: var(--font-mono); font-size: 15px; color: var(--ink); margin: 0 0 20px; }
.term-prompt{ color: var(--teal); }
.caret{ display: inline-block; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity: 0; } }
.term-checklist li{
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px; padding: 7px 0; opacity: 0; transform: translateX(-6px);
  transition: opacity .4s ease, transform .4s ease;
}
.term-checklist li.is-in{ opacity: 1; transform: translateX(0); }
.term-checklist .check{ color: var(--teal); font-weight: 600; }

.floating-badge{
  position: absolute; font-family: var(--font-mono); font-size: 12px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-md);
  display: flex; gap: 6px; color: var(--ink-soft);
}
.floating-badge span{ color: var(--teal); font-weight: 600; }
.fb-1{ top: -18px; right: 30px; }
.fb-2{ bottom: -16px; left: -10px; }

.hero-fade{
  position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ---------- 8. Work / portfolio ---------- */
.work-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 52px; }
.work-card{
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.browser-frame{ border-bottom: 1px solid var(--border); }
.browser-bar{
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot{ width: 9px; height: 9px; border-radius: 50%; }
.browser-url{
  margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; flex: 1;
}
.browser-viewport{ position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.browser-viewport iframe{
  position: absolute; top: 0; left: 0; width: 220%; height: 220%;
  transform: scale(0.4545); transform-origin: top left; border: 0; pointer-events: none;
}
.browser-open{ position: absolute; inset: 0; z-index: 2; }

.work-meta{ padding: 26px; }
.work-meta-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.work-meta-top h3{ font-size: 19px; }
.tag{
  font-family: var(--font-mono); font-size: 11.5px; color: var(--teal); background: var(--teal-soft);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.link-arrow{
  display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14.5px; color: var(--ink);
  border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: border-color .2s ease, color .2s ease;
}
.link-arrow:hover{ color: var(--accent); border-color: var(--accent); }

/* ---------- 9. Capabilities grid ---------- */
.capability-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.cap-card{
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
html[data-theme="dark"] .cap-card{ background: var(--bg-raised); }
.cap-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.cap-tag{
  display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.cap-card h3{ font-size: 18px; margin-bottom: 16px; }
.cap-what{ font-size: 14.5px; margin-bottom: 12px; }

/* ---- Capability demo widgets ----
   Shared box. Each demo animates on `.cap-card:hover` (desktop) OR when
   JS adds `.is-demo-active` to the card (mobile, card is in view). */
.cap-demo{
  position: relative; height: 68px; border-radius: 10px; margin-bottom: 16px;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden;
}
html[data-theme="dark"] .cap-demo{ background: var(--bg-alt); }

/* DarkMode demo: mini toggle that flips a sun/moon indicator */
.demo-theme-icon{ color: var(--ink-faint); transition: color .3s ease; }
.demo-toggle-track{
  width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background-color .35s ease; flex-shrink: 0;
}
.demo-toggle-thumb{
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-raised); box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.5,1.6,.4,1);
}
.cap-card:hover .demo-toggle-track,
.cap-card.is-demo-active .demo-toggle-track{ background: var(--accent); }
.cap-card:hover .demo-toggle-thumb,
.cap-card.is-demo-active .demo-toggle-thumb{ transform: translateX(18px); }
.cap-card:hover .demo-theme-icon:last-child,
.cap-card.is-demo-active .demo-theme-icon:last-child{ color: var(--accent); }
.cap-card:hover .demo-theme-icon:first-child,
.cap-card.is-demo-active .demo-theme-icon:first-child{ color: var(--ink-faint); }

/* ScrollReveal demo: three bars that reset, then animate in on hover/view */
.demo-scroll{ align-items: flex-end; gap: 8px; padding-bottom: 16px; }
.demo-bar{
  width: 20px; height: 26px; border-radius: 5px; background: var(--teal-soft);
  border: 1px solid var(--teal); opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.demo-bar:nth-child(2){ height: 36px; }
.demo-bar:nth-child(3){ height: 20px; }
.cap-card:hover .demo-bar, .cap-card.is-demo-active .demo-bar{ opacity: 1; transform: translateY(0); }
.cap-card:hover .demo-bar:nth-child(1), .cap-card.is-demo-active .demo-bar:nth-child(1){ transition-delay: 0s; }
.cap-card:hover .demo-bar:nth-child(2), .cap-card.is-demo-active .demo-bar:nth-child(2){ transition-delay: .12s; }
.cap-card:hover .demo-bar:nth-child(3), .cap-card.is-demo-active .demo-bar:nth-child(3){ transition-delay: .24s; }

/* Magnetic demo: dot pulled toward the cursor by JS (desktop); gentle
   autonomous wobble loop when `.is-demo-active` is set (mobile/no hover) */
.demo-magnetic{ cursor: none; }
.demo-magnetic-dot{
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft); transition: transform .25s ease;
}
.cap-card.is-demo-active .demo-magnetic-dot{ animation: magneticWobble 1.6s ease-in-out infinite; }
@keyframes magneticWobble{
  0%, 100%{ transform: translate(0,0); }
  25%{ transform: translate(10px,-4px); }
  50%{ transform: translate(-8px,3px); }
  75%{ transform: translate(6px,5px); }
}

/* Parallax demo: two layers, moved oppositely by JS on desktop hover;
   slow autonomous drift loop when `.is-demo-active` (mobile) */
.demo-parallax{ position: relative; }
.demo-layer{
  position: absolute; border-radius: 8px; transition: transform .3s ease;
}
.demo-layer-back{ width: 54px; height: 40px; background: var(--teal-soft); border: 1px solid var(--teal); opacity: .8; }
.demo-layer-front{ width: 30px; height: 30px; background: var(--accent-soft); border: 1px solid var(--accent); }
.cap-card.is-demo-active .demo-layer-back{ animation: driftBack 3.2s ease-in-out infinite; }
.cap-card.is-demo-active .demo-layer-front{ animation: driftFront 3.2s ease-in-out infinite; }
@keyframes driftBack{ 0%,100%{ transform: translateX(-7px); } 50%{ transform: translateX(7px); } }
@keyframes driftFront{ 0%,100%{ transform: translateX(7px); } 50%{ transform: translateX(-7px); } }

/* LiveCounters demo: replays the count on every hover / view-enter */
.demo-counter{ flex-direction: column; gap: 2px; }
.demo-counter-num{ font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--accent); line-height: 1; }
.demo-counter-label{ font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }

/* HoverCards demo: three stacked chips that fan out */
.demo-hovercards{ position: relative; }
.demo-mini-card{
  position: absolute; width: 34px; height: 44px; border-radius: 7px;
  background: var(--bg-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.3,1.4,.4,1);
}
.demo-mini-card.c1{ transform: translateX(-6px) rotate(0deg); z-index: 3; }
.demo-mini-card.c2{ transform: translateX(0) rotate(0deg); z-index: 2; }
.demo-mini-card.c3{ transform: translateX(6px) rotate(0deg); z-index: 1; }
.cap-card:hover .demo-mini-card.c1, .cap-card.is-demo-active .demo-mini-card.c1{ transform: translateX(-22px) rotate(-10deg) translateY(-3px); }
.cap-card:hover .demo-mini-card.c2, .cap-card.is-demo-active .demo-mini-card.c2{ transform: translateY(-7px); }
.cap-card:hover .demo-mini-card.c3, .cap-card.is-demo-active .demo-mini-card.c3{ transform: translateX(22px) rotate(10deg) translateY(-3px); }
.cap-why{ font-size: 14px; color: var(--ink); background: var(--bg-alt); border-left: 2px solid var(--teal); padding: 10px 12px; border-radius: 0 8px 8px 0; }
html[data-theme="dark"] .cap-why{ background: var(--bg-alt); }
.cap-why strong{ color: var(--teal); }

/* ---------- 10. Services ---------- */
.services-list{ margin-top: 52px; border-top: 1px solid var(--border); }
.service-row{
  display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 30px 0;
  border-bottom: 1px solid var(--border); transition: background-color .25s ease;
}
.service-row:hover{ background: color-mix(in srgb, var(--accent) 4%, transparent); }
.service-tag{
  font-family: var(--font-mono); font-size: 13px; color: var(--teal); font-weight: 600; height: fit-content;
  padding-top: 3px;
}
.service-body h3{ font-size: 20px; margin-bottom: 10px; }
.service-body p{ font-size: 15px; max-width: 680px; }
.service-why{
  margin-top: 12px; color: var(--ink); font-size: 14.5px; background: var(--bg-alt);
  border-left: 2px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; max-width: 680px;
}
html[data-theme="dark"] .service-why{ background: var(--bg-raised); }
.service-why strong{ color: var(--accent); }

/* ---------- 11. Pricing ---------- */
.pricing-tabs{ display: flex; gap: 8px; margin-top: 44px; border-bottom: 1px solid var(--border); }
.ptab{
  font-family: var(--font-mono); font-size: 13.5px; padding: 12px 18px; background: none; border: none;
  color: var(--ink-faint); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
}
.ptab:hover{ color: var(--ink); }
.ptab.is-active{ color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.price-panel{ display: none; padding-top: 36px; }
.price-panel.is-active{ display: block; }

.invoice{
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.invoice-row{
  display: grid; grid-template-columns: 220px 1fr 200px; gap: 20px; padding: 18px 22px;
  border-bottom: 1px solid var(--border); align-items: center;
}
.invoice-row:last-child{ border-bottom: none; }
.invoice-head{
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); background: var(--bg); padding: 12px 22px;
}
.item-name{ font-weight: 600; font-size: 15px; }
.item-name small{ display: block; font-weight: 400; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; margin-top: 3px; }
.item-desc{ font-size: 13.8px; color: var(--ink-soft); }
.item-desc em{ color: var(--ink-faint); font-style: normal; }
.item-price{ font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; text-align: right; color: var(--teal); }
.item-price small{ display: block; font-weight: 400; color: var(--ink-faint); font-size: 11.5px; margin-top: 3px; }

.price-note{ margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- 12. Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-top: 52px; align-items: start; }
.contact-direct{ display: flex; flex-direction: column; gap: 14px; }
.contact-card{
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-md);
  background: var(--bg-alt); border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.contact-label{ display: block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.contact-value{ display: block; font-weight: 600; font-size: 17px; margin-top: 3px; }

.status-line{
  display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-soft); margin-top: 6px; padding: 6px 4px;
}
.pulse-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); position: relative; flex-shrink: 0; }
.pulse-dot::after{
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse{ 0%{ transform: scale(1); opacity: .7; } 100%{ transform: scale(2.6); opacity: 0; } }

.inquiry-form{
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
}
.form-title{ font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.form-hint{ color: var(--ink-faint); font-size: 12.5px; }
.inquiry-form label{ font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: -6px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea{
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); resize: vertical;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus{ border-color: var(--accent); }
.inquiry-form .btn{ margin-top: 6px; }

/* ---------- 13. Footer ---------- */
.footer{ border-top: 1px solid var(--border); padding: 52px 0 90px; }
.footer-inner{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand{ font-family: var(--font-display); font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.footer-note{ max-width: 460px; font-size: 14px; }
.footer-links{ display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.footer-links a{ font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.footer-links a:hover{ color: var(--accent); }
.footer-meta{ font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- 14. Back to top ---------- */
.back-to-top{
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-raised); border: 1px solid var(--border); color: var(--ink); box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: pointer; z-index: 400;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover{ border-color: var(--accent); }

/* ---------- 15. Scroll reveal base state (JS adds .is-in) ---------- */
[data-reveal]{ opacity: 0; transform: translateY(22px); }
[data-reveal].is-in{ opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .work-grid{ grid-template-columns: 1fr; }
  .capability-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px){
  .section{ padding: 76px 0; }
  .tabs{
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 400;
    background: var(--bg); flex-direction: column; align-items: stretch; padding: 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  }
  .tabs.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .tab{ padding: 16px 6px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-toggle{ display: flex; flex-shrink: 0; }

  /* Nav WhatsApp button becomes icon-only so it can't push the hamburger
     off the edge of the screen on narrow phones. */
  .topbar-actions .btn-sm{ padding: 0; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
  .topbar-actions .btn-sm .btn-label{ display: none; }

  .capability-grid{ grid-template-columns: 1fr; }
  .invoice-row{ grid-template-columns: 1fr; text-align: left; gap: 6px; }
  .item-price{ text-align: left; }
  body.has-fine-pointer, body.has-fine-pointer a, body.has-fine-pointer button{ cursor: auto; }
  .cursor-dot, .cursor-ring{ display: none; }
}

@media (max-width: 520px){
  .hero-stats{ gap: 22px; }
  .contact-card{ padding: 16px; }

  /* Extra breathing room on very narrow phones (iPhone SE etc.) so the
     brand, theme toggle, WhatsApp icon and hamburger never overflow. */
  .topbar-inner{ padding: 0 16px; gap: 10px; }
  .brand-name{ font-size: 16px; }
  .icon-btn{ width: 34px; height: 34px; }
  .topbar-actions .btn-sm{ width: 34px; height: 34px; }
  .topbar-actions{ gap: 8px; }
  .nav-toggle{ width: 34px; height: 34px; }
}

/* Nav-toggle open state (X shape) */
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
