/* ========================================
   Boutly – Global Styles
   ======================================== */

/* VARIABLES */
:root {
  --red: #DC1A1A;
  --red-bright: #FF2020;
  --black: #080808;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --white: #F5F5F5;
  --white-dim: rgba(245, 245, 245, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

/* NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-display {
  font-family: 'Oswald', sans-serif;
}

.font-oswald {
  font-family: 'Oswald', sans-serif;
}

.font-russo {
  font-family: 'Russo One', sans-serif;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 2rem;
  width: auto;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--red-bright) !important;
  color: var(--white) !important;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

.btn-coming-soon {
  opacity: 0.7;
  cursor: default;
}

.btn-coming-soon:hover {
  transform: none;
  background: var(--red);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dim);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(245, 245, 245, 0.15);
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(245, 245, 245, 0.4);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 6vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 900px;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(220, 26, 26, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(220, 26, 26, 0.08) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: 0.25;
  transform: skewX(-8deg);
}

.hero-eyebrow {
  font-family: 'Russo One', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 48ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

/* ========================================
   STATS STRIP
   ======================================== */
.stats-strip {
  background: var(--black-2);
  border-top: 1px solid rgba(220, 26, 26, 0.3);
  border-bottom: 1px solid rgba(220, 26, 26, 0.3);
  padding: 2rem 6vw;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Russo One', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
}

.stat-num span {
  color: var(--red);
}

.stat-label {
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.25rem;
}

/* ========================================
   SECTIONS (shared)
   ======================================== */
section {
  padding: 6rem 6vw;
}

.section-label {
  font-family: 'Russo One', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ========================================
   FEATURES
   ======================================== */
#features {
  background: var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  background: rgba(220, 26, 26, 0.2);
}

.feature-card {
  background: var(--black-2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.4s ease;
}

.feature-card:hover {
  background: var(--black-3);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
#how {
  background: var(--black-2);
  position: relative;
  overflow: hidden;
}

#how::before {
  content: 'BOUTLY';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 18vw;
  color: rgba(220, 26, 26, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.steps {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.step {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: 'Russo One', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(220, 26, 26, 0.25);
  min-width: 4rem;
  transition: color 0.3s;
}

.step:hover .step-num {
  color: var(--red);
}

.step-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ========================================
   SHARE SECTION
   ======================================== */
#share {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.share-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 42ch;
}

.share-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scorecard-image {
  max-width: 100%;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(220, 26, 26, 0.2);
  transform: rotate(-2deg);
}

/* ========================================
   DISCLAIMER
   ======================================== */
#disclaimer {
  background: var(--black-2);
  border-top: 1px solid rgba(220, 26, 26, 0.2);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--black);
  text-align: center;
  padding: 8rem 6vw;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(220, 26, 26, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  position: relative;
}

.cta-section h2 span {
  color: var(--red);
}

.cta-section .section-label {
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white-dim);
  margin: 1.5rem auto 2.5rem;
  max-width: 50ch;
  position: relative;
}

.cta-section .btn-primary {
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.cta-coming-soon {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.3);
  position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding: 3rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
}

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

.site-footer p {
  font-size: 0.8rem;
  color: var(--white-dim);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ========================================
   ERROR PAGE (404)
   ======================================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.error-page p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 40ch;
}

.error-page .btn-primary {
  margin-top: 2.5rem;
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
  padding-top: 8rem;
}

.legal-content {
  margin-top: 3rem;
  max-width: 700px;
}

.legal-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--red-bright);
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.form-status {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Red underline decoration */
.red-line {
  display: inline-block;
  position: relative;
}

.red-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 3rem;
    text-align: left;
  }

  .hero-image {
    margin-top: 3rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  #share {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }

  /* Mobile nav toggle */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
    background: #080808;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--white);
  }

  .nav-cta {
    padding: 0.75rem 2rem;
    font-size: 1.2rem !important;
  }

  section {
    padding: 4rem 1.5rem;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}
