@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════
   Design System — Coda-inspired bold dark
   ═══════════════════════════════════════════ */
:root {
  --bg-black: #000000;
  --bg-canvas: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: #141414;

  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);

  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-muted: #666666;

  --accent: #58a6ff;
  --accent-deep: #1f6feb;
  --accent-purple: #bc8cff;
  --accent-green: #3fb950;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════ Reset ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ═══════════ Typography — bold & oversized ═══════════ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); line-height: 1.65; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* ═══════════ Layout ═══════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section--surface { background: var(--bg-surface); }
.section--elevated { background: var(--bg-elevated); }

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .label { margin-bottom: 1rem; display: block; }

.section-header p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  max-width: 540px;
}

.section-header.center p { margin-left: auto; margin-right: auto; }

/* ═══════════ Navbar ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-logo .mark { color: var(--text-primary); }
.nav-logo .dim  { color: var(--text-muted); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: 100px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-black);
  padding: 0.65rem 1.5rem;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,166,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-accent {
  background: var(--accent-deep);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-accent:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,166,255,0.3);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════ Hero — oversized bold text ═══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: float-orb 10s ease-in-out infinite;
}

.hero-orb--1 {
  width: 700px; height: 700px;
  top: -20%; left: 40%;
  background: rgba(31,111,235,0.12);
}

.hero-orb--2 {
  width: 500px; height: 500px;
  bottom: -15%; right: -5%;
  background: rgba(188,140,255,0.07);
  animation-delay: -4s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(63,185,80,0); }
}

.hero h1 { margin-bottom: 1.75rem; }

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════ Marquee — infinite scroll text ═══════════ */
.marquee {
  overflow: hidden;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: color 0.3s;
}

.marquee-item:hover { color: var(--text-primary); }

.marquee-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════ Big cards (Coda-style product cards) ═══════════ */
.big-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.big-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
}

.big-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.big-card:hover::before { opacity: 0.5; }

.big-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.big-card .card-label { margin-bottom: 1.5rem; }

.big-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.big-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  flex-grow: 1;
}

.big-card .card-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
  align-self: flex-end;
}

.big-card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
}

.big-card:hover .card-arrow svg { stroke: #000; }

.big-card .card-arrow svg {
  width: 16px; height: 16px;
  stroke: var(--text-muted);
  transition: stroke 0.3s;
}

/* Featured (wide) card */
.big-card--wide {
  grid-column: span 2;
}

/* ═══════════ Stats — massive numbers ═══════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 0;
  transition: transform 0.4s;
}

.stat-item:hover { transform: scale(1.05); }

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number .accent { color: var(--accent); }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════ Showcase — phone mockups ═══════════ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.showcase-phones {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-end;
  perspective: 1000px;
}

.phone-mockup {
  width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.phone-mockup:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 40px rgba(88,166,255,0.08);
}

.phone-mockup--main {
  width: 230px;
  transform: translateY(-20px);
  z-index: 2;
}

.phone-mockup--main:hover { transform: translateY(-30px); }

.phone-screen {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: linear-gradient(180deg, #1a0f30 0%, #0a0a0a 60%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}

.phone-screen .app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
}

.phone-screen .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .app-name { font-size: 0.8125rem; font-weight: 700; }
.phone-screen .app-tag  { font-size: 0.6875rem; color: var(--text-muted); }

.ui-bars {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.75rem;
}

.ui-bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  animation: bar-pulse 2.5s ease-in-out infinite alternate;
}

.ui-bar:nth-child(2) { width: 70%; animation-delay: 0.2s; }
.ui-bar:nth-child(3) { width: 85%; animation-delay: 0.4s; }
.ui-bar:nth-child(4) { width: 55%; animation-delay: 0.6s; }

.ui-cards-mini {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0.5rem;
}

.ui-card-mini {
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

@keyframes bar-pulse {
  from { opacity: 0.3; }
  to { opacity: 0.7; }
}

.showcase-info h2 { margin-bottom: 1rem; }
.showcase-info > p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }

.showcase-feats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sfeat {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sfeat-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.sfeat-icon svg { width: 14px; height: 14px; }

.sfeat p { font-size: 0.9375rem; line-height: 1.55; }
.sfeat strong { color: var(--text-primary); }

/* ═══════════ Process — Coda numbered steps ═══════════ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.4s;
  align-items: start;
}

.process-row:last-child { border-bottom: 1px solid var(--border); }

.process-row:hover { background: rgba(255,255,255,0.015); }

.process-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.4s, color 0.4s;
}

.process-row:hover .process-num {
  opacity: 1;
  color: var(--accent);
}

.process-body .label { margin-bottom: 0.75rem; }

.process-body h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.process-body p {
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════ CTA — bold, Coda style ═══════════ */
.cta-section {
  text-align: center;
  padding: 10rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31,111,235,0.1) 0%, transparent 65%);
  pointer-events: none;
  animation: cta-pulse 6s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════ Footer — multi-column ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ═══════════ Scroll reveal animations ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 1024px) {
  .big-cards { grid-template-columns: 1fr 1fr; }
  .big-card--wide { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 3rem; }
  .showcase-phones { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 60px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 7rem 1.5rem 3rem; }
  .container { padding: 0 1.25rem; }
  .section { padding: 5rem 0; }

  .big-cards { grid-template-columns: 1fr; }
  .big-card--wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .process-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .process-num { font-size: 2rem; }

  .phone-mockup { width: 150px; }
  .phone-mockup--main { width: 180px; }
  .showcase-phones { gap: 0.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .cta-section { padding: 6rem 1.5rem; }
}

@media (max-width: 480px) {
  .showcase-phones .phone-mockup:not(.phone-mockup--main) { display: none; }
  .phone-mockup--main { width: 220px; }
}
