/* PhasePilot marketing site — shared styles.
   Visual DNA mirrors the mobile app: dark navy foundation, electric cyan,
   teal/green, restrained orange, white type, layered depth. */

:root {
  --bg: #07090c;
  --surface: #0e141b;
  --surface-2: #121a23;
  --surface-3: #17212c;
  --border: #23303d;
  --border-strong: #33445540;
  --ink: #f2f5f8;
  --ink-2: #c3ccd6;
  --muted: #8a94a0;
  --cyan: #00e5ff;
  --green: #00e676;
  --orange: #ff6b00;
  --slate-blue: #9db4ff;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 10px 0 8px;
  line-height: 1.12;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .word { font-weight: 800; font-size: 19px; letter-spacing: 0.4px; }
.brand .word .p2 { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--cyan); }
.nav-cta {
  border: 1px solid var(--border-strong) !important;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #05141b !important;
  font-weight: 800 !important;
}
.nav-cta:hover { background: linear-gradient(90deg, var(--cyan), var(--green)) !important; opacity: 0.92; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  border: 1.5px solid var(--border-strong);
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--green)); color: #05141b; border: none; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Badge / pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--orange);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 72px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 1) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.035;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.16), rgba(0, 230, 118, 0.05) 45%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 0.98;
  margin: 20px 0 0;
}
.hero h1 .accent { color: var(--green); }
.hero .tagline { font-size: clamp(19px, 2.6vw, 26px); font-weight: 700; margin: 18px 0 6px; }
.hero .descriptor { color: var(--cyan); font-weight: 600; font-size: 16px; }
.hero .lede { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-head { margin-bottom: 34px; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
}
.card.accent { border-left: 3px solid var(--cyan); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; border: 1px solid;
}
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px;
}

/* colored icon tints */
.i-cyan { color: var(--cyan); border-color: rgba(0,229,255,.4); background: linear-gradient(135deg, rgba(0,229,255,.22), rgba(0,229,255,.05)); }
.i-green { color: var(--green); border-color: rgba(0,230,118,.4); background: linear-gradient(135deg, rgba(0,230,118,.22), rgba(0,230,118,.05)); }
.i-orange { color: var(--orange); border-color: rgba(255,107,0,.4); background: linear-gradient(135deg, rgba(255,107,0,.22), rgba(255,107,0,.05)); }
.i-slate { color: var(--slate-blue); border-color: rgba(157,180,255,.4); background: linear-gradient(135deg, rgba(157,180,255,.22), rgba(157,180,255,.05)); }

/* ---------- Photo intelligence tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.tier { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.tier .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.tier .desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tier.t1 { border-left: 3px solid var(--green); } .tier.t1 .lbl { color: var(--green); }
.tier.t2 { border-left: 3px solid var(--cyan); } .tier.t2 .lbl { color: var(--cyan); }
.tier.t3 { border-left: 3px solid var(--slate-blue); } .tier.t3 .lbl { color: var(--slate-blue); }
.tier.t4 { border-left: 3px solid var(--orange); } .tier.t4 .lbl { color: var(--orange); }

/* ---------- Callout / panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.note {
  border-left: 3px solid var(--orange);
  background: rgba(255,107,0,.06);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- Contact list ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.contact-card h3 { margin: 0 0 4px; font-size: 16px; }
.contact-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.mail {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 700; font-size: 14.5px;
}

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal p { color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #06080b;
  padding: 48px 0 34px;
  margin-top: 20px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .word { font-weight: 800; font-size: 18px; margin-top: 12px; }
.footer-brand .word .p2 { color: var(--green); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.footer-cols { display: flex; gap: 54px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-cols a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--muted); font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .contact-grid, .tiers { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 54px; }
  .footer-cols { gap: 32px; }
}
