/* ============================================================
   TechYugAi — main stylesheet
   Modern dark, fluid, glassmorphic. Vanilla CSS, no build step.
   ------------------------------------------------------------
   QUICK BRAND EDITS: change the CSS variables in :root below.
   ============================================================ */

:root{
  /* Brand palette */
  --bg:            #070A14;      /* page background (deep navy-black) */
  --bg-2:          #0B1020;      /* slightly lighter panels */
  --surface:       rgba(255,255,255,0.04);
  --surface-2:     rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.09);
  --border-2:      rgba(255,255,255,0.14);

  --text:          #EAEEF7;      /* primary text */
  --muted:         #94A0BC;      /* secondary text */
  --faint:         #5F6B86;

  --brand:         #4F7CFF;      /* primary blue */
  --brand-2:       #7A5CFF;      /* violet */
  --brand-3:       #22D3EE;      /* cyan */
  --grad:          linear-gradient(120deg, #4F7CFF 0%, #7A5CFF 50%, #22D3EE 100%);
  --grad-soft:     linear-gradient(120deg, rgba(79,124,255,.18), rgba(122,92,255,.14), rgba(34,211,238,.12));

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1180px;
  --nav-h:         72px;

  --shadow:        0 18px 50px rgba(0,0,0,.45);
  --ease:          cubic-bezier(.22,.61,.36,1);

  --orb-a:         #1f3aa8;
  --orb-b:         #4a1f9e;
  --orb-c:         #0e6b7a;
  --orb-op:        .5;
  --grid-line:     rgba(255,255,255,.025);
  --nav-bg:        rgba(7,10,20,.72);
  --hero-text:     #fff;
}

/* ---------- Light theme ---------- */
[data-theme="light"]{
  --bg:            #F6F8FC;
  --bg-2:          #FFFFFF;
  --surface:       rgba(15,23,42,0.025);
  --surface-2:     rgba(15,23,42,0.05);
  --border:        rgba(15,23,42,0.10);
  --border-2:      rgba(15,23,42,0.16);

  --text:          #0F172A;
  --muted:         #51607A;
  --faint:         #8694AD;

  --grad-soft:     linear-gradient(120deg, rgba(79,124,255,.10), rgba(122,92,255,.08), rgba(34,211,238,.07));

  --shadow:        0 18px 50px rgba(15,23,42,.12);

  --orb-a:         #9DB6FF;
  --orb-b:         #C9B6FF;
  --orb-c:         #A8E6F0;
  --orb-op:        .35;
  --grid-line:     rgba(15,23,42,.04);
  --nav-bg:        rgba(255,255,255,.78);
  --hero-text:     #0F172A;
}

/* ---------- Reset ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background .4s var(--ease), color .4s var(--ease);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }
section{ position:relative; }

/* ---------- Ambient background glow ---------- */
.bg-orbs{ position:fixed; inset:0; z-index:-2; overflow:hidden; pointer-events:none; }
.orb{ position:absolute; border-radius:50%; filter:blur(90px); opacity:var(--orb-op); transition:background .4s, opacity .4s; }
.orb.a{ width:520px; height:520px; background:var(--orb-a); top:-160px; left:-120px; }
.orb.b{ width:460px; height:460px; background:var(--orb-b); top:32%; right:-160px; }
.orb.c{ width:420px; height:420px; background:var(--orb-c); bottom:-160px; left:18%; }
.bg-grid{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(var(--grid-line) 1px, transparent 1px),
                   linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
}

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:22px; }
.section-pad{ padding-block:96px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--brand-3); font-weight:600;
  padding:7px 14px; border:1px solid var(--border-2); border-radius:999px;
  background:var(--surface); backdrop-filter:blur(6px);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--brand-3); box-shadow:0 0 10px var(--brand-3); }
h1,h2,h3{ line-height:1.12; font-weight:700; letter-spacing:-.02em; }
.h-sec{ font-size:clamp(28px, 4vw, 44px); margin:16px 0 14px; }
.lede{ color:var(--muted); font-size:clamp(15px,1.6vw,18px); max-width:680px; }
.text-grad{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.center{ text-align:center; }
.center .lede{ margin-inline:auto; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-weight:600; font-size:15px; cursor:pointer;
  padding:13px 24px; border-radius:999px; border:1px solid transparent;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space:nowrap;
}
.btn-primary{ background:var(--grad); color:#fff; box-shadow:0 10px 30px rgba(79,124,255,.35); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px rgba(79,124,255,.5); }
.btn-ghost{ background:var(--surface); border-color:var(--border-2); color:var(--text); backdrop-filter:blur(6px); }
.btn-ghost:hover{ transform:translateY(-2px); border-color:var(--brand); background:var(--surface-2); }
.btn svg{ width:17px; height:17px; }

/* ---------- Navbar ---------- */
.nav{
  position:fixed; inset:0 0 auto 0; height:var(--nav-h); z-index:100;
  display:flex; align-items:center;
  transition:background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:var(--nav-bg); backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.nav .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.nav-logo img{ height:38px; width:auto; }
.nav-logo .logo-svg{ height:40px; width:auto; display:block; }
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  font-size:14.5px; color:var(--muted); font-weight:500;
  padding:9px 14px; border-radius:10px; transition:color .2s, background .2s;
}
.nav-links a:hover{ color:var(--text); background:var(--surface); }
.nav-links a.cta{
  color:#fff; background:var(--grad); margin-left:6px; font-weight:600;
  box-shadow:0 8px 22px rgba(79,124,255,.3);
}
.nav-links a.cta:hover{ background:var(--grad); transform:translateY(-1px); }
.nav-links a.locked::after{ content:"\1F512"; font-size:11px; margin-left:6px; opacity:.8; }

/* ---------- Presentations dropdown ---------- */
.nav-dd{ position:relative; }
.nav-dd-toggle{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  font-size:14.5px; color:var(--muted); font-weight:500;
  padding:9px 14px; border-radius:10px; background:none; border:0; transition:color .2s, background .2s;
}
.nav-dd-toggle:hover{ color:var(--text); background:var(--surface); }
.nav-dd-toggle .chev{ width:13px; height:13px; transition:transform .25s; }
.nav-dd.open .nav-dd-toggle .chev{ transform:rotate(180deg); }
.nav-dd-menu{
  position:absolute; top:calc(100% + 10px); right:0; min-width:300px;
  background:var(--nav-bg); backdrop-filter:blur(16px) saturate(140%);
  border:1px solid var(--border-2); border-radius:16px; padding:8px;
  box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index:120;
}
.nav-dd.open .nav-dd-menu{ opacity:1; visibility:visible; transform:none; }
.dd-item{ display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; transition:background .18s; }
.dd-item:hover{ background:var(--surface-2); }
.dd-flag{ font-size:20px; flex:0 0 auto; width:26px; text-align:center; }
.dd-text{ flex:1; min-width:0; }
.dd-text .dd-title{ font-size:14px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:7px; }
.dd-text .dd-sub{ font-size:11.5px; color:var(--muted); }
.dd-lock{ font-size:11px; opacity:.7; }
.dd-divider{ height:1px; background:var(--border); margin:6px 4px; }
.dd-head{ font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase; color:var(--faint); font-weight:600; padding:8px 12px 4px; }

/* theme toggle */
.theme-toggle{
  width:40px; height:40px; border-radius:11px; flex:0 0 auto;
  background:var(--surface); border:1px solid var(--border-2); cursor:pointer;
  display:grid; place-items:center; color:var(--text); transition:.25s;
}
.theme-toggle:hover{ border-color:var(--brand); background:var(--surface-2); transform:translateY(-1px); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .i-sun{ display:none; }
[data-theme="light"] .theme-toggle .i-sun{ display:block; }
[data-theme="light"] .theme-toggle .i-moon{ display:none; }
.nav-tools{ display:flex; align-items:center; gap:10px; }

.burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }.burger span{ width:24px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }
.burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ padding-top:calc(var(--nav-h) + 70px); padding-bottom:90px; text-align:center; }
.hero h1{ font-size:clamp(38px, 7vw, 76px); letter-spacing:-.03em; margin:22px auto 20px; max-width:14ch; }
.hero .lede{ font-size:clamp(16px,1.9vw,20px); margin:0 auto 34px; }
.hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero-badges{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:46px; }
.hero-badge{
  font-size:13px; color:var(--muted); padding:9px 16px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border); backdrop-filter:blur(6px);
}
.hero-badge b{ color:var(--text); font-weight:600; }

/* hero device mock */
.hero-mock{
  margin:60px auto 0; max-width:880px; border-radius:24px; overflow:hidden;
  border:1px solid var(--border-2); background:var(--grad-soft);
  box-shadow:var(--shadow); position:relative;
}
.hero-mock .bar{ display:flex; gap:7px; padding:14px 18px; border-bottom:1px solid var(--border); }
.hero-mock .bar i{ width:11px; height:11px; border-radius:50%; background:#2b3450; display:block; }
.hero-mock .screen{ padding:34px; display:grid; grid-template-columns:1.2fr 1fr; gap:22px; align-items:center; min-height:300px; }
.hero-mock .screen .glow-card{
  background:rgba(10,15,32,.6); border:1px solid var(--border); border-radius:16px; padding:22px;
}
.hero-mock .screen h4{ font-size:18px; margin-bottom:8px; }
.hero-mock .screen p{ color:var(--muted); font-size:13.5px; }
.spark-row{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.spark{ font-size:11.5px; padding:6px 11px; border-radius:8px; background:var(--surface-2); border:1px solid var(--border); color:var(--brand-3); }
.beam{ height:140px; border-radius:14px; background:var(--grad); opacity:.85; position:relative; overflow:hidden; }
.beam::after{ content:""; position:absolute; inset:0; background:linear-gradient(transparent, rgba(0,0,0,.4)); }

/* ---------- Marquee (trust strip) ---------- */
.marquee{ border-block:1px solid var(--border); background:var(--surface); padding:22px 0; overflow:hidden; }
.marquee-track{ display:flex; gap:60px; width:max-content; animation:slide 26s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-item{ color:var(--faint); font-weight:600; font-size:15px; letter-spacing:.5px; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.marquee-item svg{ width:18px; height:18px; opacity:.7; }
@keyframes slide{ to{ transform:translateX(-50%); } }

/* ---------- Services grid ---------- */
.grid{ display:grid; gap:20px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; transition:transform .3s var(--ease), border-color .3s, background .3s;
  position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:var(--grad); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .3s;
}
.card:hover{ transform:translateY(-6px); background:var(--surface-2); }
.card:hover::before{ opacity:.9; }
.card .ico{
  width:50px; height:50px; border-radius:13px; display:grid; place-items:center;
  background:var(--grad-soft); border:1px solid var(--border-2); margin-bottom:16px;
}
.card .ico svg{ width:24px; height:24px; stroke:var(--brand-3); }
.card h3{ font-size:18.5px; margin-bottom:8px; }
.card p{ color:var(--muted); font-size:14.5px; }

/* ---------- Split / about ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.split .visual{
  border-radius:22px; border:1px solid var(--border-2); overflow:hidden;
  background:var(--grad-soft); min-height:340px; position:relative; box-shadow:var(--shadow);
}
.split .visual .pulse-grid{ position:absolute; inset:0; display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(4,1fr); }
.split .visual .pulse-grid i{ border:1px solid rgba(255,255,255,.05); }
.split .visual .core{
  position:absolute; inset:0; margin:auto; width:130px; height:130px; border-radius:50%;
  background:var(--grad); filter:blur(2px); box-shadow:0 0 70px rgba(79,124,255,.6);
  animation:breathe 5s var(--ease) infinite;
}
@keyframes breathe{ 50%{ transform:scale(1.12); } }
.feature-list{ margin-top:22px; display:grid; gap:14px; }
.feature-list li{ display:flex; gap:13px; align-items:flex-start; }
.feature-list .tick{ flex:0 0 auto; width:24px; height:24px; border-radius:7px; background:var(--grad-soft); border:1px solid var(--border-2); display:grid; place-items:center; }
.feature-list .tick svg{ width:14px; height:14px; stroke:var(--brand-3); }
.feature-list b{ font-weight:600; }
.feature-list span{ color:var(--muted); font-size:14px; }

/* ---------- Credibility strip ---------- */
.cred-strip{ margin-top:36px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:30px 24px; }
.cred{ text-align:center; }
.cred-num{ font-size:clamp(22px,2.6vw,30px); font-weight:700; line-height:1.2; }
.cred-lbl{ color:var(--muted); font-size:13px; margin-top:6px; }
.note-soft{ color:var(--faint); font-size:13.5px; font-style:italic; margin-top:26px; }

/* ---------- Stats ---------- */.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat{ text-align:center; padding:30px 16px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); }
.stat .num{ font-size:clamp(30px,4vw,46px); font-weight:700; }
.stat .lbl{ color:var(--muted); font-size:13.5px; margin-top:6px; }

/* ---------- Timeline ---------- */
.timeline{ position:relative; max-width:760px; margin-inline:auto; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:8px; top:6px; bottom:6px; width:2px; background:linear-gradient(var(--brand), var(--brand-2), var(--brand-3)); }
.tl-item{ position:relative; padding:0 0 34px 10px; }
.tl-item::before{
  content:""; position:absolute; left:-32px; top:4px; width:16px; height:16px; border-radius:50%;
  background:var(--bg); border:3px solid var(--brand); box-shadow:0 0 0 4px rgba(79,124,255,.18);
}
.tl-date{ font-size:12.5px; letter-spacing:1.5px; text-transform:uppercase; color:var(--brand-3); font-weight:600; }
.tl-item h4{ font-size:18px; margin:6px 0 6px; }
.tl-item p{ color:var(--muted); font-size:14.5px; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:26px; padding:54px; text-align:center; position:relative; overflow:hidden;
  background:var(--grad-soft); border:1px solid var(--border-2);
}
.cta-band h2{ font-size:clamp(26px,3.6vw,40px); margin-bottom:14px; }
.cta-band p{ color:var(--muted); max-width:560px; margin:0 auto 26px; }

/* ---------- Contact ---------- */
.contact-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:34px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:7px; }
.field input, .field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--border-2); color:var(--text);
  border-radius:12px; padding:13px 15px; font-family:inherit; font-size:14.5px; transition:border-color .2s;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--brand); }
.field textarea{ resize:vertical; min-height:120px; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--border); margin-top:30px; padding-block:54px 30px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; }
.footer-brand img{ height:40px; margin-bottom:14px; }
.footer-brand p{ color:var(--muted); font-size:14px; max-width:280px; }
.footer h5{ font-size:13px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text); margin-bottom:14px; }
.footer ul li{ margin-bottom:10px; }
.footer ul a{ color:var(--muted); font-size:14px; transition:color .2s; }
.footer ul a:hover{ color:var(--brand-3); }
.footer-bottom{ margin-top:40px; padding-top:22px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.footer-bottom p{ color:var(--faint); font-size:13px; }
.socials{ display:flex; gap:10px; }
.socials a{ width:38px; height:38px; border-radius:10px; background:var(--surface); border:1px solid var(--border); display:grid; place-items:center; transition:.25s; }
.socials a:hover{ border-color:var(--brand); transform:translateY(-2px); }
.socials svg{ width:17px; height:17px; fill:var(--muted); }
.socials a:hover svg{ fill:var(--brand-3); }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .split{ grid-template-columns:1fr; gap:34px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .cred-strip{ grid-template-columns:1fr; gap:22px; }
  .hero-mock .screen{ grid-template-columns:1fr; }
}
@media (max-width: 720px){
  .nav-links{
    position:fixed; inset:var(--nav-h) 0 auto 0;
    flex-direction:column; align-items:stretch; gap:4px;
    background:var(--nav-bg); backdrop-filter:blur(18px);
    padding:16px 22px 26px; border-bottom:1px solid var(--border);
    transform:translateY(-130%); transition:transform .4s var(--ease); z-index:99;
  }
  .nav-links.open{ transform:none; }
  .nav-links a{ padding:13px 14px; font-size:16px; }
  .nav-links a.cta{ margin-left:0; margin-top:6px; text-align:center; justify-content:center; display:flex; }
  .nav-dd{ width:100%; }
  .nav-dd-toggle{ width:100%; justify-content:space-between; font-size:16px; padding:13px 14px; }
  .nav-dd-menu{ position:static; opacity:1; visibility:visible; transform:none; min-width:0; width:100%; margin-top:4px; box-shadow:none; background:var(--surface); }
  .nav-dd:not(.open) .nav-dd-menu{ display:none; }
  .nav-tools{ margin-top:8px; }
  .burger{ display:flex; }
  .section-pad{ padding-block:66px; }
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .cta-band{ padding:36px 22px; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
