/* ============================================================
   Greenline Golf Simulators — Landing Page
   Palette: Deep emerald green + warm neutral surfaces
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
   ============================================================ */

/* --- Design Tokens --- */
:root,
[data-theme='light'] {
  /* Surfaces — warm off-white */
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f0ec;
  --color-surface-offset: #ebeae5;
  --color-divider: #e0ded9;
  --color-border: #d4d2cc;

  /* Text */
  --color-text: #1a1f1c;
  --color-text-muted: #6b6f6a;
  --color-text-faint: #a8aca6;
  --color-text-inverse: #f8f7f4;

  /* Primary — Deep Emerald */
  --color-primary: #1a6b4a;
  --color-primary-hover: #155440;
  --color-primary-active: #0f3d2e;
  --color-primary-light: #e8f3ee;

  /* Accent — Bright Golf Green */
  --color-accent: #3ba776;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 31, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 31, 28, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 31, 28, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1120px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --text-3xl: clamp(3rem, 1rem + 6vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

[data-theme='dark'] {
  --color-bg: #121512;
  --color-surface: #1a1d1b;
  --color-surface-alt: #222624;
  --color-surface-offset: #262a28;
  --color-divider: #2e3330;
  --color-border: #363c39;

  --color-text: #e4e6e3;
  --color-text-muted: #949899;
  --color-text-faint: #5e6260;
  --color-text-inverse: #121512;

  --color-primary: #4caf7d;
  --color-primary-hover: #5dc090;
  --color-primary-active: #3a9468;
  --color-primary-light: #1e2d26;

  --color-accent: #4caf7d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-image {
  max-width: 10%;
  max-width: 5px;
  height: 10%;
  border-radius: 2px;
  object-fit: cover;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
  max-width: 72ch;
}

ul[role='list'] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: color-mix(in oklab, var(--color-primary) 25%, transparent);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section__header {
  text-align: center;
  max-width: var(--content-narrow);
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

.section__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background-color: var(--color-surface-alt);
}

.btn--light {
  background-color: #ffffff;
  color: #1a1f1c;
  border-color: #ffffff;
}

.btn--light:hover {
  background-color: var(--color-surface-offset);
  transform: translateY(-1px);
}

.btn--ghost-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__text {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.theme-toggle:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-text);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.nav__close {
  display: none;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__cta {
  color: var(--color-text-inverse);
}

/* --- Hero --- */
.hero {
  padding-top: clamp(var(--space-12), 5vw, var(--space-20));
  padding-bottom: clamp(var(--space-16), 6vw, var(--space-24));
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero__stats {
  display: flex;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}


.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface-offset);
  box-shadow: var(--shadow-lg);
}

.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
}

.hero-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color var(--transition), transform var(--transition);
}

.hero-carousel__button:hover {
  background-color: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-carousel__button--previous {
  left: var(--space-4);
}

.hero-carousel__button--next {
  right: var(--space-4);
}

.hero-carousel__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  z-index: 2;
  display: flex;
  gap: var(--space-2);
  transform: translateX(-50%);
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.55);
  transition: transform var(--transition), background-color var(--transition);
}

.hero-carousel__dot:hover,
.hero-carousel__dot.is-active {
  background-color: #ffffff;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .hero-carousel {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .hero-carousel__button {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .hero-carousel__button--previous {
    left: var(--space-3);
  }

  .hero-carousel__button--next {
    right: var(--space-3);
  }
}



/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

/* --- Cards --- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
}

/* --- Steps --- */
.step {
  position: relative;
  padding-top: var(--space-6);
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}

.step__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item--large {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__item--large img {
  aspect-ratio: 4 / 5;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* --- Split Section --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.split__content .section__title {
  text-align: left;
}

.split__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checklist {
  list-style: none;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist li {
  position: relative;
  padding-left: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: none;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a6b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

[data-theme='dark'] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234caf7d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --- Testimonials --- */
.testimonial {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  max-width: none;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}

.testimonial__author strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.testimonial__author span {
  color: var(--color-text-muted);
}

/* --- CTA --- */
.cta {
  background-color: var(--color-primary);
  padding-block: clamp(var(--space-16), 6vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: var(--content-narrow);
}

.cta__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.cta__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-10);
  max-width: 48ch;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    aspect-ratio: 16 / 10;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery__item--large {
    grid-row: auto;
  }

  .gallery__item--large img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-16) var(--space-8) var(--space-8);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 200;
    gap: var(--space-6);
  }

  .nav--open {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-base);
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__close {
    display: flex;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text);
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .footer__inner {
    text-align: center;
    align-items: center;
  }

  .footer__nav {
    justify-content: center;
  }
}
