/* ============================================================
   GUARDICY — Independent App Studio
   Design system: midnight canvas, cyan→violet glow,
   warm amber "play" accent. Display: Space Grotesk,
   Body: DM Sans, Utility/data: Space Mono.
   ============================================================ */

:root {
  --bg:           #080B14;
  --bg-2:         #0B1020;
  --surface:      rgba(255,255,255,0.035);
  --surface-2:    rgba(255,255,255,0.055);
  --solid:        #11182B;
  --border:       rgba(255,255,255,0.09);
  --border-2:     rgba(255,255,255,0.16);

  --text:         #ECF1FF;
  --muted:        #8C97B6;
  --faint:        #5B6480;

  --cyan:         #2DE3E6;
  --violet:       #8E6CFF;
  --amber:        #FFC24B;
  --coral:        #FF7A59;

  --grad:         linear-gradient(118deg, #2DE3E6 0%, #6FA8FF 45%, #8E6CFF 100%);
  --grad-warm:    linear-gradient(118deg, #FFD66B 0%, #FFB347 50%, #FF7A59 100%);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "Courier New", monospace;

  --maxw:         1160px;
  --radius:       18px;
  --radius-lg:    26px;
  --ease:         cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* ---------- Ambient background layers ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-grid   { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora.a1 { width: 620px; height: 620px; top: -240px; left: -160px;
  background: radial-gradient(circle, #2DE3E6, transparent 65%);
  animation: drift1 22s ease-in-out infinite; }
.aurora.a2 { width: 560px; height: 560px; top: 6%; right: -200px;
  background: radial-gradient(circle, #8E6CFF, transparent 65%);
  animation: drift2 26s ease-in-out infinite; }
.aurora.a3 { width: 480px; height: 480px; bottom: -180px; left: 28%;
  background: radial-gradient(circle, #FFB347, transparent 68%);
  opacity: .28; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,60px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-70px,90px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,-70px)} }

/* film grain veil for depth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 50% 0%, transparent 60%, rgba(0,0,0,.45) 100%);
}

/* ---------- Custom cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px;
  margin: -230px 0 0 -230px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(45,227,230,.10), rgba(142,108,255,.07) 40%, transparent 70%);
  transition: opacity .4s ease; opacity: 0;
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
main { position: relative; z-index: 1; }

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05; letter-spacing: -.02em; font-weight: 600;
  margin-top: 18px;
}
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite;
}
.warm-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 0;
  transition: padding .3s var(--ease);
}
.nav-inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 16px 10px 18px; border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(10,14,24,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(8,11,20,.82);
  border-color: var(--border-2);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,.8);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative; flex: none;
  background: var(--grad); box-shadow: 0 0 22px -4px rgba(45,227,230,.6);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 4px;
  background: var(--bg);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  background: var(--grad);
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -.02em; color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 3px auto 0;
  background: var(--grad); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.status-pill {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 100px; border: 1px solid rgba(45,227,230,.3);
  background: rgba(45,227,230,.06);
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(45,227,230,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,227,230,.55); }
  70% { box-shadow: 0 0 0 8px rgba(45,227,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,227,230,0); }
}

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px; flex: none;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1){ top: 15px; }
.burger span:nth-child(2){ top: 20px; }
.burger span:nth-child(3){ top: 25px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #061018; background: var(--grad-warm); box-shadow: 0 10px 30px -10px rgba(255,179,71,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255,179,71,.75); }
.btn-ghost { color: var(--text); border-color: var(--border-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--surface-2); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.6vw, 76px); line-height: .98; letter-spacing: -.03em;
  margin: 22px 0 0;
}
.hero .lead {
  color: var(--muted); font-size: clamp(16px, 1.6vw, 19px);
  margin: 24px 0 0; max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1; letter-spacing: -.02em;
}
.stat .label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}

/* hero showcase card */
.showcase {
  position: relative; perspective: 1200px;
}
.app-card {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: linear-gradient(160deg, var(--surface-2), rgba(8,11,20,.6));
  padding: 18px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .15s ease-out;
}
.app-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: .5; pointer-events: none;
}
.app-card .shot {
  width: 100%; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover;
  display: block; transform: translateZ(40px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.app-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; transform: translateZ(25px);
}
.app-card .ct { display: flex; flex-direction: column; }
.app-card .ct .t { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.app-card .ct .s { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.app-card .badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: rgba(45,227,230,.12);
  color: var(--cyan); border: 1px solid rgba(45,227,230,.3); white-space: nowrap;
}
.float-duck {
  position: absolute; width: 92px; height: 92px; right: -22px; bottom: -22px;
  border-radius: 20px; border: 1px solid var(--border-2); overflow: hidden;
  background: var(--solid); box-shadow: 0 20px 50px -18px rgba(0,0,0,.8);
  transform: translateZ(70px); animation: bob 5s ease-in-out infinite;
}
.float-duck img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 0%,100%{ transform: translateZ(70px) translateY(0) } 50%{ transform: translateZ(70px) translateY(-9px) } }

/* ---------- Capability marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 26px);
  color: var(--muted); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap;
}
.marquee-track span::after { content: "✶"; color: var(--cyan); font-size: 14px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius); padding: 28px 26px;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); margin-bottom: 18px;
  font-size: 22px;
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }
.card .idx { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ---------- Featured app block ---------- */
.feature {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface-2), rgba(8,11,20,.4));
  padding: clamp(26px, 4vw, 50px); overflow: hidden; position: relative;
}
.feature.reverse { grid-template-columns: 1.1fr .9fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img {
  width: 100%; border-radius: var(--radius); display: block;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.9);
}
.feature-media .glow {
  position: absolute; inset: -30% -10% auto -10%; height: 70%; z-index: -1;
  background: radial-gradient(60% 80% at 50% 50%, rgba(45,227,230,.35), transparent 70%);
  filter: blur(40px);
}
.feature.duck .feature-media .glow { background: radial-gradient(60% 80% at 50% 50%, rgba(255,179,71,.35), transparent 70%); }
.feature-body .tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); display: inline-block; padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(45,227,230,.3); background: rgba(45,227,230,.06);
}
.feature.duck .feature-body .tag { color: var(--amber); border-color: rgba(255,179,71,.35); background: rgba(255,179,71,.08); }
.feature-body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -.02em; line-height: 1.05; margin: 16px 0 0;
}
.feature-body p { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 46ch; }
.feature-meta { display: flex; gap: 26px; margin: 24px 0 28px; flex-wrap: wrap; }
.feature-meta .m .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feature-meta .m .v { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 3px; }

/* ---------- Stack / timeline (updates) ---------- */
.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), transparent); opacity: .5; }
.tl-item { position: relative; padding: 0 0 36px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px -2px var(--cyan); }
.tl-item.future .node { border-color: var(--muted); box-shadow: none; }
.tl-item .date { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--cyan); text-transform: uppercase; }
.tl-item.future .date { color: var(--muted); }
.tl-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 6px 0; letter-spacing: -.01em; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* ---------- Social cards (contact) ---------- */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.social-card {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  padding: 24px; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.social-card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.social-card .si {
  width: 58px; height: 58px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.social-card .si img { width: 34px; height: 34px; object-fit: contain; }
.social-card .st .platform { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); }
.social-card .st .handle { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 3px; }
.social-card .go { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.social-card:hover .go { color: var(--cyan); transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); border: 1px solid var(--border-2); overflow: hidden;
  padding: clamp(36px, 6vw, 72px); text-align: center; position: relative;
  background: radial-gradient(120% 140% at 50% 0%, rgba(142,108,255,.18), transparent 60%), var(--surface);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.cta-band p { color: var(--muted); margin: 16px auto 30px; max-width: 48ch; font-size: 17px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand-name { font-size: 22px; }
.footer .tagline { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom .copy { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.foot-socials { display: flex; gap: 12px; }
.foot-socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); transition: transform .25s var(--ease), border-color .25s;
}
.foot-socials a:hover { transform: translateY(-3px); border-color: var(--border-2); }
.foot-socials a img { width: 20px; height: 20px; object-fit: contain; }
.foot-socials a.ig { background: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
.reveal[data-delay="4"]{ transition-delay: .32s; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .showcase { max-width: 380px; }
  .cards { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-media { order: 0; }
  .social-grid { grid-template-columns: 1fr; }

  .burger { display: block; }
  .status-pill { display: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: stretch; gap: 6px; padding: 92px 22px 30px;
    background: rgba(8,11,20,.96); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border); transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 40;
  }
  body.menu-open .nav-links { transform: translateX(0); }
  .nav-links a { font-size: 18px; padding: 12px 16px; }
  .nav-links a.active::after { margin: 6px 0 0; }
  .menu-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .35s; z-index: 39; }
  body.menu-open .menu-scrim { opacity: 1; visibility: visible; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 24px; }
  .nav-cta .btn { display: none; }
}

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

/* focus visibility */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
