/* ─── Rough to Ready — Marketing Site ─── */

:root {
  /* Neon Marquee brand */
  --bg: #0a0612;
  --bg-elevated: #110d1f;
  --bg-surface: #18122e;
  --border: #261d40;
  --border-lit: #3d2d68;

  /* Brand palette */
  --pink: #ff2d78;
  --cyan: #00f5e4;
  --violet: #9b5cff;

  /* Text */
  --text: #f0eaff;
  --text-secondary: #7a6aaa;
  --text-dim: #3d2d68;

  /* Functional */
  --glow-pink: rgba(255, 45, 120, 0.25);
  --glow-cyan: rgba(0, 245, 228, 0.2);
  --glow-violet: rgba(155, 92, 255, 0.2);
}

/* ─── Reset ─── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #33ffe9; }
img { display: block; max-width: 100%; }

/* ─── Layout ─── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

/* ─── Nav ─── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-badge {
  border: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 800;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: -0.5px;
}

.nav-wordmark {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--glow-cyan);
  transform: translateY(-1px);
  color: var(--bg) !important;
}

/* ─── Hero ─── */

.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--glow-pink) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-lit);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--glow-cyan);
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-lit);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  color: var(--text);
}

/* ─── Phone Mockup ─── */

.phone-frame {
  width: 260px;
  border-radius: 32px;
  border: 3px solid var(--border-lit);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow-violet);
  flex-shrink: 0;
  background: var(--bg);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.phone-frame--sm {
  width: 220px;
  border-radius: 28px;
}

/* ─── Hero Phones ─── */

.hero-phones {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.hero-phones .phone-frame:nth-child(1) { transform: translateY(20px); }
.hero-phones .phone-frame:nth-child(2) { transform: translateY(0); }
.hero-phones .phone-frame:nth-child(3) { transform: translateY(30px); }

/* ─── Section ─── */

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ─── Feature Row ─── */

.feature-row {
  display: flex;
  gap: 60px;
  align-items: center;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-visual {
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-list .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.icon--cyan { background: rgba(0, 245, 228, 0.12); color: var(--cyan); }
.icon--pink { background: rgba(255, 45, 120, 0.12); color: var(--pink); }
.icon--violet { background: rgba(155, 92, 255, 0.12); color: var(--violet); }

/* ─── Theme Showcase ─── */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.theme-card {
  text-align: center;
}

.theme-card .phone-frame {
  width: 100%;
  border-radius: 20px;
  border-width: 2px;
  margin-bottom: 12px;
}

.theme-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.theme-label .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── Flow Showcase (3 phones in a row) ─── */

.flow-showcase {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.flow-step {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.flow-step .phone-frame {
  width: 100%;
  margin-bottom: 14px;
}

.flow-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── Two-phone layout ─── */

.two-phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* ─── CTA Section ─── */

.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--glow-cyan) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Capability pills ─── */

.cap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  justify-content: center;
}

.cap-pill {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-lit);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ─── Footer ─── */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .feature-row, .feature-row--reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .feature-row--reverse .feature-visual {
    order: 0;
  }

  .section-subtitle { margin-left: auto; margin-right: auto; }

  .hero-phones .phone-frame:nth-child(1),
  .hero-phones .phone-frame:nth-child(3) {
    display: none;
  }

  .hero-phones .phone-frame {
    width: 280px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
  }

  .flow-showcase {
    flex-direction: column;
    align-items: center;
  }

  .flow-step .phone-frame { max-width: 260px; margin: 0 auto 14px; }

  .two-phones { flex-direction: column; align-items: center; }
  .two-phones .phone-frame { width: 260px; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .section { padding: 64px 0; }

  .phone-frame { width: 220px; border-radius: 24px; }

  .nav-links a:not(.nav-cta) { display: none; }

  .site-footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-cta-row { flex-direction: column; align-items: center; }
}
