/* ================================================
   Reduzio — Marketing Site Stylesheet
   ================================================ */

/* Google Fonts is loaded via <link> in HTML */

/* ------------------------------------------------
   Custom Properties
   ------------------------------------------------ */
:root {
  /* Colors */
  --color-bg: #0A0C0F;
  --color-surface: #12151A;
  --color-surface-raised: #1A1E26;
  --color-border: #1F2430;
  --color-border-subtle: #161B24;
  --color-text-primary: #E8EAF0;
  --color-text-secondary: #7A8099;
  --color-text-tertiary: #4A5068;
  --color-accent: #3B6FFF;
  --color-accent-hover: #2B5CE6;
  --color-accent-subtle: #1A2A4A;
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-white: #FFFFFF;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 0 0 1px rgba(31,36,48,1);
  --shadow-raised: 0 4px 16px rgba(0,0,0,.5), 0 0 0 1px rgba(31,36,48,1);
  --shadow-accent: 0 0 0 3px rgba(59,111,255,.25);
}

/* ------------------------------------------------
   Reset & Base
   ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
}

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

button {
  font-family: inherit;
}

/* ------------------------------------------------
   Accessibility
   ------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: none;
}

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

/* ------------------------------------------------
   Reduced Motion
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------
   Layout Utilities
   ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.container--xs {
  max-width: 560px;
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: border-bottom-color 0.2s ease;
}

nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Nav CTA — styled as button but is an <a> */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--color-accent-hover);
}

/* ------------------------------------------------
   Buttons (shared)
   ------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-top: var(--space-6);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: var(--space-6);
  max-width: 600px;
}

.hero-cta {
  margin-top: var(--space-10);
}

.hero-microcopy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-tertiary);
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Trust Bar
   ------------------------------------------------ */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 24px;
}

.trust-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.trust-logos-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.trust-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-placeholder {
  width: 80px;
  height: 24px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.trust-stat {
  text-align: center;
}

.trust-stat-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.trust-stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

/* ------------------------------------------------
   Section Shared Styles
   ------------------------------------------------ */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Value Props (#why)
   ------------------------------------------------ */
.why-section {
  padding: 64px 24px;
}

.why-section .section-header {
  margin-bottom: var(--space-12);
}

.why-section .section-header h2 {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------
   How It Works (#how)
   ------------------------------------------------ */
.how-section {
  padding: 64px 24px;
}

.how-section .section-header {
  margin-bottom: var(--space-16);
}

.section-header--how {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-number {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-text h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.step-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------
   Savings Teaser
   ------------------------------------------------ */
.savings-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 24px;
  text-align: center;
}

.savings-inner {
  max-width: 800px;
  margin: 0 auto;
}

.savings-section h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

.savings-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: var(--space-4) auto 0;
}

.stats-callout {
  margin-top: var(--space-12);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-primary);
}

.stat-value--success {
  color: var(--color-success);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ------------------------------------------------
   Waitlist CTA (#waitlist)
   ------------------------------------------------ */
.waitlist-section {
  padding: 64px 24px;
  text-align: center;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-section .section-label {
  margin-bottom: 0;
}

.waitlist-section h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

.waitlist-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-10);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  height: 52px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--color-text-tertiary);
}

.email-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  outline: none;
}

.submit-btn {
  height: 52px;
  padding: 0 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.submit-btn:hover {
  background: var(--color-accent-hover);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  text-align: center;
  max-width: 400px;
  margin: 16px auto 0;
}

.form-status {
  display: none;
  margin-top: 12px;
}

.form-error {
  background: #1A0A0A;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-error);
  text-align: left;
}

/* Success state */
.success-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: var(--space-8);
}

.success-icon {
  width: 32px;
  height: 32px;
  background: #0D2B1A;
  border: 1px solid var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
}

.success-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 380px;
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
  max-width: 200px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

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

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

.footer-links a:focus {
  outline: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ------------------------------------------------
   Tablet (768px+)
   ------------------------------------------------ */
@media (min-width: 768px) {
  .hero {
    padding: 120px 24px 96px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .savings-section h2 {
    font-size: 36px;
  }

  .trust-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .trust-logos-block {
    align-items: flex-start;
  }

  .trust-stat {
    text-align: right;
  }

  .trust-stat-label {
    text-align: right;
  }

  .waitlist-section h2 {
    font-size: 36px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-tagline {
    text-align: left;
  }
}

/* ------------------------------------------------
   Desktop (1024px+)
   ------------------------------------------------ */
@media (min-width: 1024px) {
  .why-section {
    padding: 96px 24px;
  }

  .how-section {
    padding: 96px 24px;
  }

  .waitlist-section {
    padding: 96px 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .waitlist-form {
    flex-direction: row;
  }

  .email-input {
    flex-grow: 1;
    width: auto;
  }

  .stats-callout {
    flex-direction: row;
    padding: 32px 40px;
    gap: 0;
  }

  .stat-item {
    flex: 1;
    padding: 0 32px;
  }

  .stat-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
  }
}
