/* ==========================================================================
   TorpedoShip — Marketing Site Styles
   Pure CSS, matches the app's primary dark brand (#1a1a2e).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-muted: #eef0f5;
  --ink: #1a1a2e;
  --ink-soft: #3b3b55;
  --ink-muted: #6a6b82;
  --brand: #1a1a2e;
  --accent: #4f8cff;
  --accent-dark: #2f6fe6;
  --border: #e3e6ee;
  --success: #22a06b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-signin { margin-left: 8px; }

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--ink-muted);
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(79, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(79, 140, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.lede {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-bullets {
  list-style: none;
  display: flex;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.hero-bullets li {
  position: relative;
  padding-left: 20px;
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Hero media / video frame */
.hero-media { justify-self: center; width: 100%; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(400px 200px at 50% 30%, rgba(79, 140, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #1a1a2e, #0e0e1f);
  text-align: center;
  padding: 24px;
}
.video-placeholder p { font-weight: 600; font-size: 16px; }
.video-placeholder small { color: #b9bccf; font-size: 12px; }
.video-placeholder code { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 32px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.strip-label {
  color: var(--ink-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 14px;
}
.logos {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo-pill {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Features ---------- */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d5d9e5;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-card p { color: var(--ink-muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-soft); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.12), var(--shadow-md);
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

.plan-price { margin-bottom: 6px; }
.price-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.price-period { color: var(--ink-muted); font-size: 15px; margin-left: 4px; }

.plan-orders {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.plan-features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--success);
  font-weight: 700;
}

.pricing-footnote {
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 28px;
}
.pricing-footnote strong { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial blockquote {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
  quotes: "\201C" "\201D";
}

.testimonial figcaption {
  font-size: 14px;
  color: var(--ink-soft);
}
.testimonial .muted { color: var(--ink-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a52 100%);
  color: #fff;
  padding: 72px 0;
}
.cta-inner {
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.cta-banner p { color: #c7cbe0; margin-bottom: 24px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd2e2;
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #2a2a52; color: var(--accent); }

.footer-tagline {
  margin-top: 10px;
  color: #9aa0bd;
  font-size: 14px;
  max-width: 280px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  color: #9aa0bd;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-legal {
  padding-top: 16px;
  color: #7d83a0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 42px; }
  .section-header h2 { font-size: 30px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.nav-signin) { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .lede { font-size: 17px; }
  .section-header h2 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
