/* =============================================================================
   style.css — Minty Extension Website — Base Stylesheet
   Used by: landing page (index.html) and all app pages
   ============================================================================= */

/* =============================================================================
   1. CSS Reset
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* =============================================================================
   2. Design Tokens (CSS Custom Properties)
   ============================================================================= */

:root {
  /* Brand reds */
  --red:        #bb0a1e;
  --red-dark:   #8a0717;
  --red-dim:    rgba(187, 10, 30, 0.15);

  /* Accent gold */
  --gold:       #d3af37;
  --gold-hover: #e8c840;

  /* Backgrounds */
  --bg:         #0d0d0d;
  --bg-card:    #1a0a0a;
  --bg-nav:     #111111;

  /* Borders */
  --border:       #2e1010;
  --border-light: #3d1520;

  /* Text */
  --text:       #ffffff;
  --text-muted: #888888;
  --text-body:  #cccccc;

  /* Typography scale */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition: 0.18s ease;
}

/* =============================================================================
   3. Base / Global
   ============================================================================= */

body {
  font-family:      var(--font-sans);
  background-color: var(--bg);
  color:            var(--text);
  line-height:      1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

/* =============================================================================
   4. Layout Utilities
   ============================================================================= */

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

/* =============================================================================
   5. Button System
   ============================================================================= */

/* --- Primary (red fill) --- */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  background:      var(--red);
  color:           #ffffff;
  border:          none;
  border-radius:   0;
  padding:         12px 24px;
  font-size:       14px;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
  transition:      background var(--transition), opacity var(--transition);
  white-space:     nowrap;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-primary:active {
  opacity: 0.85;
}

/* --- Outline (white border) --- */
.btn-outline {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  background:      transparent;
  color:           #ffffff;
  border:          1px solid #ffffff;
  border-radius:   0;
  padding:         12px 24px;
  font-size:       14px;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
  transition:      border-color var(--transition), color var(--transition);
  white-space:     nowrap;
}

.btn-outline:hover {
  border-color: var(--gold);
  color:        var(--gold);
}

/* --- Gold fill --- */
.btn-gold {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  background:      var(--gold);
  color:           #000000;
  border:          none;
  border-radius:   0;
  padding:         12px 24px;
  font-size:       14px;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
  transition:      background var(--transition);
  white-space:     nowrap;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

/* =============================================================================
   6. Tag / Pill
   ============================================================================= */

.tag {
  display:        inline-block;
  background:     var(--red-dim);
  color:          var(--red);
  border-radius:  2px;
  padding:        4px 10px;
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height:    1;
}

/* =============================================================================
   7. Section Label
   ============================================================================= */

.section-label {
  display:        block;
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--gold);
  margin-bottom:  12px;
}

/* =============================================================================
   8. Card
   ============================================================================= */

.card {
  background: var(--bg-card);
  border:     1px solid var(--border);
  padding:    24px;
}

.card-sm {
  padding: 16px;
}

/* =============================================================================
   9. Landing: Site Navigation
   ============================================================================= */

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

.nav-inner {
  max-width:       1100px;
  margin:          0 auto;
  padding:         0 24px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          60px;
}

.nav-logo {
  display:         inline-flex;
  align-items:     center;
  gap:             0;
  font-size:       20px;
  font-weight:     700;
  color:           #ffffff;
  text-decoration: none;
  letter-spacing:  -0.5px;
  flex-shrink:     0;
}

.nav-logo-icon {
  width:         28px;
  height:        28px;
  margin-right:  10px;
  object-fit:    cover;
  border-radius: 4px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display:    flex;
  gap:        32px;
  list-style: none;
}

.nav-links a {
  color:           var(--text-muted);
  text-decoration: none;
  font-size:       14px;
  transition:      color var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  display:     flex;
  gap:         12px;
  align-items: center;
  flex-shrink: 0;
}

/* =============================================================================
   10. Landing: Hero Section
   ============================================================================= */

.hero {
  min-height:  100vh;
  display:     flex;
  align-items: center;
  background:  linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #cc1525 100%);
  padding-top: 80px; /* offset for fixed nav */
}

.hero .container {
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: 36px;
}

.hero-content {
  max-width: 640px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-mascot {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45));
}

.hero-eyebrow {
  display:        block;
  font-size:      12px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--gold);
  margin-bottom:  16px;
}

.hero-title {
  font-size:      clamp(2.5rem, 6vw, 4.5rem);
  font-weight:    800;
  line-height:    1.05;
  color:          #ffffff;
  margin-bottom:  20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--gold);
}

.hero-sub {
  font-size:     18px;
  color:         rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width:     480px;
  line-height:   1.6;
}

.hero-actions {
  display:   flex;
  gap:       16px;
  flex-wrap: wrap;
}

.hero-stats {
  display:       flex;
  gap:           40px;
  margin-top:    60px;
  padding-top:   40px;
  border-top:    1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size:   28px;
  font-weight: 700;
  color:       #ffffff;
  line-height: 1;
}

.hero-stat-label {
  font-size:      12px;
  color:          rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top:     4px;
}

/* =============================================================================
   11. Landing: How It Works
   ============================================================================= */

.how-it-works {
  padding:    100px 0;
  background: var(--bg);
}

.how-it-works .section-header {
  text-align: center;
}

.section-title {
  font-size:      clamp(1.6rem, 3vw, 2.2rem);
  font-weight:    800;
  color:          var(--text);
  letter-spacing: -0.5px;
  margin-bottom:  12px;
}

.section-sub {
  font-size:  15px;
  color:      var(--text-muted);
  max-width:  520px;
  margin:     0 auto;
  line-height: 1.6;
}

.steps-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
  margin-top:            48px;
}

.step {
  background: var(--bg-card);
  padding:    32px;
  border-top: 2px solid var(--red);
  position:   relative;
}

.step-num {
  font-size:     48px;
  font-weight:   800;
  color:         rgba(187, 10, 30, 0.3);
  line-height:   1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size:     18px;
  font-weight:   700;
  color:         #ffffff;
  margin-bottom: 10px;
}

.step-desc {
  font-size:   14px;
  color:       var(--text-body);
  line-height: 1.6;
}

/* =============================================================================
   12. Landing: Features Grid
   ============================================================================= */

.features {
  padding:    80px 0;
  background: #0a0a0a;
}

.features .section-header {
  text-align: center;
}

.features-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   2px;
  margin-top:            48px;
}

.feature-card {
  background:   var(--bg-card);
  padding:      28px;
  border-left:  2px solid var(--red);
}

.feature-icon {
  font-size:     28px;
  margin-bottom: 14px;
  line-height:   1;
}

.feature-title {
  font-size:     16px;
  font-weight:   700;
  color:         #ffffff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size:   13px;
  color:       var(--text-body);
  line-height: 1.6;
}

/* =============================================================================
   13. Landing: Tech Strip
   ============================================================================= */

.tech-strip {
  background: var(--red);
  padding:    20px 0;
}

.tech-inner {
  max-width:       1100px;
  margin:          0 auto;
  padding:         0 24px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             12px;
  flex-wrap:       wrap;
}

.tech-label {
  font-size:      12px;
  font-weight:    600;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  white-space:    nowrap;
}

.tech-items {
  display:     flex;
  gap:         24px;
  align-items: center;
  flex-wrap:   wrap;
}

.tech-item {
  font-size:   13px;
  color:       #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.tech-dot {
  color:  rgba(255, 255, 255, 0.4);
  margin: 0 4px;
}

/* =============================================================================
   14. Landing: Footer
   ============================================================================= */

.site-footer {
  background:   #080808;
  padding:      48px 0;
  border-top:   1px solid var(--border);
}

.footer-inner {
  max-width:       1100px;
  margin:          0 auto;
  padding:         0 24px;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             24px;
  flex-wrap:       wrap;
}

.footer-logo {
  font-size:   18px;
  font-weight: 700;
  color:       #ffffff;
  flex-shrink: 0;
}

.footer-logo span {
  color: var(--gold);
}

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

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

.footer-links a:hover {
  color: #ffffff;
}

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

.footer-tether span {
  color:       var(--gold);
  font-weight: 600;
}

/* =============================================================================
   15. Responsive — Landing
   ============================================================================= */

/* Tablet and below */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-mascot {
    width: min(82vw, 360px);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap:            20px;
  }

  .nav-cta .btn-outline {
    display: none; /* collapse secondary CTA on tablet */
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align:     center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap:       wrap;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero {
    padding-top: 70px;
  }
}
