/* ============================================================
   60apps: dark premium studio showcase
   Design system: CSS variables, dark palette, per-app accents
   ============================================================ */

:root {
  /* Base dark palette */
  --bg:            #05060a;
  --bg-elev:       #0b0e17;
  --surface:       #10131f;
  --surface-2:     #161a2b;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  /* Text */
  --text:      #f5f7ff;
  --text-soft: #b7bdd0;
  --text-mute: #808aa6;

  /* Studio accent (neon) */
  --accent:     #7c5cff;
  --accent-2:   #22d3ee;
  --accent-glow: rgba(124,92,255,.45);

  /* Per-app accent tokens */
  --tandem:      #1a7a5e;
  --tandem-lite: #34d399;
  --plant:       #16a34a;
  --plant-lite:  #4ade80;
  --voice:       #7c5cff;
  --voice-lite:  #a78bfa;
  --crm:         #2563eb;
  --crm-lite:    #60a5fa;

  /* Typography */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 20px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-soft); font-size: 1.12rem; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b8bff);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5,6,10,.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand svg, .nav-brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-soft); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  background: linear-gradient(180deg, #ffffff 30%, #b9c0e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline { color: var(--text-soft); font-size: 1.25rem; margin: 26px 0 38px; max-width: 30ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Aurora background */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 520px; height: 520px; left: 6%; top: 4%;  background: radial-gradient(circle, #6d5cff, transparent 60%); animation: drift1 16s var(--ease) infinite alternate; }
.aurora .a2 { width: 460px; height: 460px; right: 8%; top: 0;   background: radial-gradient(circle, #22d3ee, transparent 60%); animation: drift2 19s var(--ease) infinite alternate; }
.aurora .a3 { width: 420px; height: 420px; left: 38%; top: 22%; background: radial-gradient(circle, #1a7a5e, transparent 60%); animation: drift3 22s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(80px, 40px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, 50px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(40px, -50px) scale(1.2); } }

.grid-overlay {
  position: absolute; inset: 0; z-index: 0; 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 80% 60% at 50% 0%, #000 40%, transparent 75%);
}
.hero-inner, .hero .wrap { position: relative; z-index: 1; }

/* Floating icon cluster */
.icon-cluster { position: relative; height: 420px; }
.icon-cluster .tile {
  position: absolute; width: 108px; height: 108px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: grid; place-items: center; padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: float 7s ease-in-out infinite;
}
.icon-cluster .tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.icon-cluster .t1 { top: 12%;  left: 16%; --g: var(--tandem-lite); animation-delay: 0s; }
.icon-cluster .t2 { top: 4%;   right: 14%; --g: var(--plant-lite); animation-delay: .8s; width: 96px; height: 96px; }
.icon-cluster .t3 { bottom: 16%; left: 8%;  --g: var(--voice-lite); animation-delay: 1.6s; width: 96px; height: 96px; }
.icon-cluster .t4 { bottom: 6%; right: 18%; --g: var(--crm-lite); animation-delay: 2.4s; }
.icon-cluster .tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: 26px; z-index: -1;
  background: radial-gradient(circle at 50% 0%, var(--g), transparent 70%); opacity: .5; filter: blur(14px);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; padding: 26px 24px; }
.trust .stat { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: .98rem; }
.trust .stat b { color: var(--text); font-weight: 700; }
.trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* ---------- App showcase ---------- */
.app {
  --accent-app: var(--accent);
  --accent-app-lite: var(--accent-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 110px 0; position: relative;
  overflow: hidden; /* contain decorative glow so it never causes horizontal scroll */
}
.app + .app { border-top: 1px solid var(--border); }
.app.reverse .app-media { order: -1; }
.app-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-app), transparent 62%);
  opacity: .16; filter: blur(50px); z-index: 0; pointer-events: none;
  top: 50%; transform: translateY(-50%);
}
.app:not(.reverse) .app-glow { left: -12%; }
.app.reverse .app-glow { right: -12%; }
.app-body, .app-media { position: relative; z-index: 1; }

.app-body .app-icon {
  width: 56px; height: 56px; border-radius: 14px; padding: 9px;
  background: var(--surface); border: 1px solid var(--border-strong); margin-bottom: 22px;
}
.app-body .app-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-body h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.app-body .one-liner { color: var(--text-soft); font-size: 1.16rem; margin: 16px 0 26px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.feature-list .check {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  background: color-mix(in srgb, var(--accent-app) 24%, transparent);
  color: var(--accent-app-lite); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.app-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent-app) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-app) 40%, transparent);
  color: var(--accent-app-lite);
}
.badge-soon .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-app-lite); box-shadow: 0 0 0 0 var(--accent-app-lite); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-app-lite) 70%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.btn-notify {
  background: linear-gradient(135deg, var(--accent-app), var(--accent-app-lite));
  color: #fff; box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-app) 45%, transparent);
}

/* ---------- Phone mockup ---------- */
.app-media { display: flex; justify-content: center; }
.phone {
  --screen: #0c0f1a;
  position: relative; width: 300px; height: 610px; border-radius: 46px;
  background: linear-gradient(160deg, #1c2033, #0a0c14);
  padding: 13px; border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.03);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #05060a; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--screen); position: relative; display: flex; flex-direction: column;
}
/* Drop-in point for real screenshots later: put <img class="shot"> as first child of .phone-screen */
.phone-screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; }

.screen-status { display: flex; justify-content: space-between; align-items: center; padding: 30px 22px 8px; font-size: .72rem; color: var(--text-mute); font-weight: 600; }
.screen-pad { padding: 8px 18px 18px; flex: 1; overflow: hidden; }
.screen-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 3px; }
.screen-sub { font-size: .78rem; color: var(--text-mute); margin-bottom: 16px; }

/* generic mock components */
.mk-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 10px;
  background: conic-gradient(var(--accent-app) var(--pct,66%), rgba(255,255,255,.08) 0); }
.mk-ring i { width: 74px; height: 74px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1.1rem; }
.mk-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; }
.mk-bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-app), var(--accent-app-lite)); }
.mk-chip { font-size: .68rem; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent-app) 18%, transparent); color: var(--accent-app-lite); font-weight: 600; }
.mk-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-app), var(--accent-app-lite)); flex: none; }
.mk-dot-row { display: flex; gap: 6px; align-items: center; }
.mk-label { font-size: .74rem; color: var(--text-mute); }
.mk-value { font-weight: 800; font-size: .95rem; }
.mk-mini { font-size: .72rem; color: var(--text-soft); }

/* VoiceFlow waveform */
.mk-wave { display: flex; align-items: center; gap: 4px; height: 60px; justify-content: center; margin: 10px 0; }
.mk-wave span { width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-app-lite), var(--accent-app)); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 14px; } 50% { height: 52px; } }

/* ---------- Why 60apps ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.value:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.value .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2); }
.value h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value p { color: var(--text-soft); font-size: .98rem; }
.story { max-width: 760px; color: var(--text-soft); font-size: 1.15rem; line-height: 1.75; margin-top: 8px; }

/* ---------- Notify ---------- */
.notify { background: var(--bg-elev); border-top: 1px solid var(--border); }
.notify-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border-strong); border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.notify-card::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; top:-40%; right:-10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); opacity:.5; filter: blur(40px); pointer-events:none; }
.notify-card > * { position: relative; z-index: 1; }
.notify-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.notify-card .lede { color: var(--text-soft); font-size: 1.1rem; margin: 16px 0 22px; }
.notify-card .contact-line { color: var(--text-mute); font-size: .92rem; margin-top: 22px; }
.notify-card .contact-line a { color: var(--accent-2); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  color: var(--text); font-size: .96rem; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.06); }
.field select option { background: var(--surface); color: var(--text); }
.form .btn-primary { justify-content: center; width: 100%; margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-msg { font-size: .95rem; padding: 13px 16px; border-radius: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: color-mix(in srgb, var(--plant) 18%, transparent); border: 1px solid color-mix(in srgb, var(--plant) 40%, transparent); color: var(--plant-lite); }
.form-msg.err { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-brand { max-width: 320px; }
.footer-brand img, .footer-brand svg { height: 24px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-mute); font-size: .92rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-soft); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: .86rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 150px 24px 100px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-mute); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 12px; }
.legal a { color: var(--accent-2); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--accent-2); font-weight: 600; }

/* ---------- Scroll reveal (JS adds motion; content visible by default) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .icon-cluster { height: 340px; max-width: 420px; margin: 0 auto; }
  .app, .app.reverse { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .app-body, .app-media { min-width: 0; }
  .app-media, .app.reverse .app-media { order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .notify-card { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 560px) {
  .section { padding: 84px 0; }
  .hero { padding: 140px 0 80px; }
  .phone { width: 264px; height: 540px; }
  .notify-card { padding: 30px 20px; }
  .footer-bottom { flex-direction: column; }
}

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