/* ===== Zenith Codes — base ===== */
:root{
  --bg: #0a0b0f;
  --bg-alt: #101219;
  --surface: #14161f;
  --surface-hover: #191c27;
  --border: #23262f;
  --text: #eef0f4;
  --text-dim: #9aa0ac;
  --text-faint: #636976;
  --accent: #6ee7b7;
  --accent-2: #7dd3fc;
  --accent-contrast: #05130d;
  --radius: 14px;
  --max-w: 1120px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{ margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
ul,ol{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }

.container{ max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* premium tech backdrop: blueprint grid + glowing gradient orbs, pinned to viewport */
.noise-overlay{
  position: fixed; inset:0; pointer-events:none; z-index: 0;
  background-image:
    linear-gradient(rgba(238,240,244,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,240,244,0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 8%, rgba(110,231,183,0.20), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(125,211,252,0.16), transparent 45%),
    radial-gradient(circle at 50% 105%, rgba(110,231,183,0.10), transparent 55%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 35%, transparent 100%);
}

/* faint circuit-board traces, sits behind the services section for texture */
.services{ position:relative; }
.services::before{
  content:"";
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  opacity:0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%236ee7b7' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M0 40 H70 V0'/%3E%3Cpath d='M220 90 H150 V140 H90'/%3E%3Cpath d='M0 170 H50 V220'/%3E%3Cpath d='M180 220 V190 H220'/%3E%3Ccircle cx='70' cy='40' r='4'/%3E%3Ccircle cx='150' cy='90' r='4'/%3E%3Ccircle cx='90' cy='140' r='4'/%3E%3Ccircle cx='50' cy='170' r='4'/%3E%3Ccircle cx='180' cy='190' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
}

/* ===== Header / Nav ===== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,11,15,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo{
  font-family: var(--font-mono); font-weight:600; font-size: 1.15rem; letter-spacing: -0.02em;
  display:inline-flex; align-items:center; gap:10px;
}
.logo .dot{ color: var(--accent); }
.logo-mark{ width:30px; height:30px; display:block; }
.nav-links{ display:flex; align-items:center; gap: 28px; }
.nav-links a{ font-size:0.92rem; color: var(--text-dim); transition: color .2s ease; }
.nav-links a:hover{ color: var(--text); }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span{ width:22px; height:2px; background: var(--text); display:block; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 22px; border-radius: 999px; font-weight:600; font-size:0.92rem;
  border: 1px solid transparent; cursor:pointer; transition: all .2s ease;
}
.btn-primary{ background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover{ background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--text-dim); }
.btn-small{ padding: 9px 16px; font-size:0.85rem; }
.btn-full{ width:100%; }

/* ===== Hero ===== */
.hero{ position:relative; z-index:1; padding: 110px 24px 90px; text-align:center; }
.eyebrow{
  font-family: var(--font-mono); font-size:0.8rem; color: var(--accent);
  border:1px solid rgba(110,231,183,0.3); background: rgba(110,231,183,0.06);
  display:inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1{ font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 880px; margin: 0 auto 24px; }
.hero-sub{ max-width: 620px; margin: 0 auto 36px; font-size: 1.05rem; }
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom: 64px; }
.hero-stats{ display:flex; justify-content:center; gap: 56px; flex-wrap:wrap; }
.hero-stats div{ display:flex; flex-direction:column; align-items:center; }
.hero-stats strong{ font-size:1.6rem; font-family: var(--font-mono); color: var(--text); }
.hero-stats span{ font-size:0.8rem; color: var(--text-faint); margin-top:4px; }

/* ===== Hero showcase: animated mockup (no real footage yet — swap for
   actual project recordings under Work once real clients exist) ===== */
.hero-showcase{ position:relative; max-width: 760px; margin: 64px auto 0; }
.mockup-browser{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(110,231,183,0.06);
}
.mockup-topbar{
  display:flex; align-items:center; gap:7px; padding: 12px 16px;
  background: var(--bg-alt); border-bottom:1px solid var(--border);
}
.mockup-dot{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.mockup-dot.red{ background:#f87171; }
.mockup-dot.yellow{ background:#fbbf24; }
.mockup-dot.green{ background:#4ade80; }
.mockup-addr{
  margin-left:10px; font-family: var(--font-mono); font-size:0.7rem; color: var(--text-faint);
  background: var(--bg); border:1px solid var(--border); border-radius:6px; padding:3px 10px;
}
.mockup-body{ position:relative; padding: 30px 32px 38px; }
.mockup-nav{ display:flex; align-items:center; gap:16px; margin-bottom: 30px; }
.mockup-logo{ width:16px; height:16px; border-radius:5px; background: var(--accent); margin-right:auto; }
.mockup-navline{ width:32px; height:6px; border-radius:3px; background: var(--border); }
.mockup-hero{ text-align:center; margin-bottom: 26px; }
.mockup-h{ display:block; width:58%; height:13px; border-radius:4px; margin:0 auto 12px; background: var(--text-dim); opacity:0.85; }
.mockup-p{ display:block; width:72%; height:7px; border-radius:3px; margin:0 auto 8px; background: var(--border); }
.mockup-p.short{ width:44%; }
.mockup-btn{
  display:inline-block; width:86px; height:22px; border-radius:999px; background: var(--accent);
  margin-top:14px; position:relative;
}
.mockup-btn::after{
  content:""; position:absolute; inset:-6px; border-radius:inherit; border:2px solid var(--accent);
  opacity:0; animation: mBtnPulse 10s ease-in-out infinite;
}
.mockup-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.mockup-card{
  height:52px; border-radius:8px; background: var(--bg-alt); border:1px solid var(--border);
  transition: none;
}
.mockup-card:nth-child(1){ animation: mCardGlow1 10s ease-in-out infinite; }
.mockup-card:nth-child(2){ animation: mCardGlow2 10s ease-in-out infinite; }
.mockup-card:nth-child(3){ animation: mCardGlow3 10s ease-in-out infinite; }
.mockup-cursor{
  position:absolute; width:14px; height:14px; border-radius: 50% 50% 50% 0;
  background: var(--accent-2); transform: rotate(-45deg) translate(0,0);
  box-shadow: 0 0 0 4px rgba(125,211,252,0.15); top:63%; left:50%;
  animation: mCursorTravel 10s ease-in-out infinite;
}

@keyframes mCursorTravel{
  0%, 6%    { top:63%; left:50%; }
  22%, 28%  { top:85%; left:17%; }
  44%, 50%  { top:85%; left:50%; }
  66%, 72%  { top:85%; left:83%; }
  90%, 100% { top:63%; left:50%; }
}
@keyframes mBtnPulse{
  0%{ opacity:0.9; transform:scale(0.9); } 4%{ opacity:0; transform:scale(1.6); }
  6%,88%{ opacity:0; }
  92%{ opacity:0.9; transform:scale(0.9); } 96%{ opacity:0; transform:scale(1.6); }
  100%{ opacity:0; }
}
@keyframes mCardGlow1{
  0%,20%,32%,100%{ border-color:var(--border); box-shadow:none; }
  26%{ border-color: rgba(110,231,183,0.5); box-shadow:0 0 0 1px rgba(110,231,183,0.2), 0 8px 20px -10px rgba(110,231,183,0.35); }
}
@keyframes mCardGlow2{
  0%,42%,54%,100%{ border-color:var(--border); box-shadow:none; }
  48%{ border-color: rgba(110,231,183,0.5); box-shadow:0 0 0 1px rgba(110,231,183,0.2), 0 8px 20px -10px rgba(110,231,183,0.35); }
}
@keyframes mCardGlow3{
  0%,64%,76%,100%{ border-color:var(--border); box-shadow:none; }
  70%{ border-color: rgba(110,231,183,0.5); box-shadow:0 0 0 1px rgba(110,231,183,0.2), 0 8px 20px -10px rgba(110,231,183,0.35); }
}

/* floating phone mockup — desktop-only flourish */
.mockup-phone{
  position:absolute; right:-24px; bottom:-32px; width:132px;
  background: var(--surface); border:1px solid var(--border); border-radius:22px;
  padding: 10px 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.mockup-phone-notch{ width:36px; height:5px; border-radius:3px; background: var(--border); margin:0 auto 10px; }
.mockup-phone-body{ background: var(--bg-alt); border-radius:14px; padding:14px 10px; position:relative; min-height:190px; }
.mockup-status{ display:block; width:38%; height:5px; border-radius:3px; background: var(--text-faint); margin-bottom:18px; }
.mockup-row{ height:8px; border-radius:3px; background: var(--border); margin-bottom:10px; }
.mockup-row.active{ background: rgba(125,211,252,0.35); }
.mockup-toggle{
  position:absolute; top:12px; right:10px; width:30px; height:16px; border-radius:999px;
  background: var(--border); animation: mToggleTrack 4s ease-in-out infinite;
}
.mockup-toggle i{
  position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background: var(--text);
  animation: mToggleKnob 4s ease-in-out infinite;
}
@keyframes mToggleTrack{ 0%,40%{ background: var(--border); } 55%,100%{ background: var(--accent); } }
@keyframes mToggleKnob{ 0%,40%{ transform:translateX(0); } 55%,100%{ transform:translateX(14px); } }
.mockup-fab{
  position:absolute; bottom:10px; right:10px; width:34px; height:34px; border-radius:50%;
  background: var(--accent); animation: mFabPulse 2.4s ease-out infinite;
}
.mockup-fab::after{
  content:"+"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color: var(--accent-contrast); font-weight:700; font-size:1.1rem;
}
@keyframes mFabPulse{
  0%{ box-shadow:0 0 0 0 rgba(110,231,183,0.45); }
  70%{ box-shadow:0 0 0 12px rgba(110,231,183,0); }
  100%{ box-shadow:0 0 0 0 rgba(110,231,183,0); }
}

@media (max-width: 640px){
  .mockup-phone{ display:none; }
  .mockup-body{ padding: 24px 20px 28px; }
  .mockup-navline{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .mockup-cursor, .mockup-btn::after, .mockup-card, .mockup-toggle, .mockup-toggle i, .mockup-fab{
    animation: none !important;
  }
}

/* ===== Section shared ===== */
section{ position:relative; z-index:1; padding: 90px 24px; }
/* .container's own padding shorthand (same specificity) would otherwise zero
   this out on every <section class="X container">, so restate vertical
   spacing here explicitly for each section — keeps real gaps between blocks. */
.services, .process, .work, .about, .order{
  padding-top: 96px; padding-bottom: 96px;
}
.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head.container{ padding:0; }
.tag{
  font-family: var(--font-mono); font-size:0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top:10px; }
.section-head p{ margin-top: 10px; }

/* ===== Cards ===== */
.cards{ display:grid; gap: 24px; }
.services-grid{ grid-template-columns: repeat(3, 1fr); }
.work-grid{ grid-template-columns: repeat(3, 1fr); }
.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover{
  border-color: rgba(110,231,183,0.35); transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(110,231,183,0.12), 0 20px 40px -20px rgba(110,231,183,0.25);
}
.card-icon{ font-size:1.5rem; color: var(--accent); margin-bottom: 14px; }
.card h3{ font-size:1.2rem; }
.card-list{ margin: 14px 0 18px; display:flex; flex-direction:column; gap:8px; }
.card-list li{ font-size:0.88rem; color: var(--text-dim); padding-left: 18px; position:relative; }
.card-list li::before{ content:"—"; position:absolute; left:0; color: var(--text-faint); }
.card-price{ font-family: var(--font-mono); font-size:0.85rem; color: var(--text-faint); }
.card-price strong{ color: var(--accent); }
.price-note{ margin: 24px 0 0; font-size:0.82rem; color: var(--text-faint); text-align:center; }

.work-thumb{
  height: 140px; border-radius: 10px; background: var(--bg-alt); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--text-faint);
  font-size:0.8rem; margin-bottom: 18px; text-align:center; padding: 10px;
}
.work-thumb{ padding:0; overflow:hidden; }
.work-thumb img{ width:100%; height:100%; object-fit:cover; }
.thumb-riseup{ background: linear-gradient(160deg, #101a2e, #0b1120); }
.thumb-ielts{ background: linear-gradient(160deg, #12182b, #0d1018); }
.thumb-brand{ display:flex; align-items:center; gap:10px; }
.thumb-icon{ width:28px; height:28px; flex-shrink:0; }
.thumb-name{ font-family: var(--font-mono); font-weight:700; letter-spacing:0.04em; font-size:1.05rem; color:#fff; }
.thumb-icon-gate{
  width:28px; height:28px; border-radius:8px; background:#eab308; position:relative; display:inline-block;
}
.thumb-icon-gate::after{
  content:""; position:absolute; left:9px; top:7px; width:7px; height:13px;
  border: solid #0d1018; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.work-status{
  display:inline-block; font-family: var(--font-mono); font-size:0.68rem; letter-spacing:0.04em;
  color: var(--accent); background: rgba(110,231,183,0.08);
  border:1px solid rgba(110,231,183,0.25); padding: 3px 10px; border-radius:999px; margin-bottom:12px;
}
a.card, a.work-card{ display:block; }
.card-go{ display:block; margin-top:14px; font-family: var(--font-mono); font-size:0.78rem; color: var(--accent-2); }
a.card:hover .card-go{ color: var(--accent); }
a.work-card:hover .work-visit{ color: var(--accent); }
.work-visit{ display:inline-block; margin-top:14px; font-family: var(--font-mono); font-size:0.78rem; color: var(--accent-2); }
.work-card-cta{ display:flex; flex-direction:column; justify-content:center; }
.work-card-cta .btn{ align-self:flex-start; margin-top: 4px; }
.work-tags{ display:flex; gap:8px; margin-top: 10px; }
.work-tags span{
  font-family: var(--font-mono); font-size:0.72rem; color: var(--accent-2);
  background: rgba(125,211,252,0.08); border:1px solid rgba(125,211,252,0.2);
  padding: 3px 10px; border-radius: 999px;
}

/* ===== Process ===== */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.steps li{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.step-num{ font-family: var(--font-mono); color: var(--text-faint); font-size:0.85rem; }
.steps h3{ font-size:1.05rem; margin-top: 10px; }
.steps p{ font-size:0.9rem; margin-bottom:0; }
.steps em{ color: var(--text-faint); font-style: normal; }

/* ===== About ===== */
.about-grid{ display:grid; grid-template-columns: 280px 1fr; gap: 56px; align-items:start; }
.about-mark{
  aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt);
  border: 1px solid var(--border); display:flex; align-items:center; justify-content:center;
}
.about-mark img{ width:52%; height:auto; }
.skills-list{ display:flex; flex-wrap:wrap; gap:10px; margin: 18px 0; }
.skills-list span{
  font-family: var(--font-mono); font-size:0.78rem; padding: 6px 12px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border); color: var(--text-dim);
}
.about-links{ display:flex; gap:20px; margin-top: 10px; }
.about-links a{ font-size:0.9rem; color: var(--accent-2); border-bottom:1px solid transparent; }
.about-links a:hover{ border-color: var(--accent-2); }

/* ===== Order form ===== */
.order-form{
  max-width: 720px; margin: 0 auto; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-size:0.85rem; margin-bottom: 8px; color: var(--text-dim); }
.field input, .field select, .field textarea{
  width:100%; background: var(--bg-alt); border:1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-family: var(--font-sans); font-size: 0.95rem;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--accent);
}
.field textarea{ resize: vertical; }
.form-status{ margin-top: 16px; font-size:0.88rem; text-align:center; min-height: 1.2em; }
.form-status.success{ color: var(--accent); }
.form-status.error{ color: #fca5a5; }

/* ===== Footer ===== */
.site-footer{ border-top: 1px solid var(--border); padding: 56px 0 24px; position:relative; z-index:1; }
.footer-grid{ display:grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4{ font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid a{ font-size:0.9rem; color: var(--text-dim); }
.footer-grid a:hover{ color: var(--accent-2); }
.footer-bottom{
  border-top: 1px solid var(--border); padding-top: 20px; font-size:0.82rem; color: var(--text-faint);
}

/* ===== Responsive ===== */
@media (max-width: 860px){
  .services-grid, .work-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-mark{ max-width: 220px; }
  .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav-links{
    position: fixed; top:72px; left:0; right:0; background: var(--bg);
    flex-direction:column; align-items:flex-start; padding: 20px 24px 30px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%); transition: transform .25s ease; gap: 18px;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-toggle{ display:flex; }
  .form-row{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 32px; }
  .footer-grid{ grid-template-columns: 1fr; }
}
