/* ==========================================================================
   Stromprofi Wolf — Design System
   7 cascade layers: reset → tokens → base → layout → components → sections → utilities
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, utilities;

/* Self-hosted fonts (GDPR — no external requests) */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-700.woff2") format("woff2");
}

/* ==========================================================================
   LAYER: Reset
   ========================================================================== */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    min-height: 100dvh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

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

  button {
    cursor: pointer;
    border: none;
    background: none;
  }

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

  ul,
  ol {
    list-style: none;
  }

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

  p {
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  fieldset {
    border: none;
  }

  [hidden] {
    display: none !important;
  }
}

/* ==========================================================================
   LAYER: Tokens (Design Tokens / Custom Properties)
   ========================================================================== */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* Greens (energy, nature) — warmer hue for approachability */
    --color-green-50: oklch(0.97 0.025 152);
    --color-green-100: oklch(0.93 0.05 152);
    --color-green-200: oklch(0.87 0.1 152);
    --color-green-300: oklch(0.78 0.14 152);
    --color-green-400: oklch(0.7 0.16 155);
    --color-green-500: oklch(0.6 0.17 155);
    --color-green-600: oklch(0.5 0.15 155);
    --color-green-700: oklch(0.42 0.12 155);
    --color-green-800: oklch(0.34 0.09 155);
    --color-green-900: oklch(0.26 0.06 155);

    /* Blues (trust, reliability) */
    --color-blue-50: oklch(0.97 0.015 235);
    --color-blue-100: oklch(0.93 0.035 235);
    --color-blue-200: oklch(0.87 0.07 235);
    --color-blue-300: oklch(0.78 0.11 235);
    --color-blue-400: oklch(0.68 0.14 235);
    --color-blue-500: oklch(0.56 0.15 235);
    --color-blue-600: oklch(0.46 0.14 235);
    --color-blue-700: oklch(0.38 0.12 235);
    --color-blue-800: oklch(0.3 0.09 235);
    --color-blue-900: oklch(0.22 0.06 235);

    /* Amber/Gold (CTAs, warmth, energy) */
    --color-amber-50: oklch(0.97 0.03 85);
    --color-amber-100: oklch(0.93 0.07 85);
    --color-amber-200: oklch(0.87 0.13 85);
    --color-amber-300: oklch(0.82 0.15 82);
    --color-amber-400: oklch(0.78 0.17 80);
    --color-amber-500: oklch(0.7 0.17 78);
    --color-amber-600: oklch(0.6 0.15 75);
    --color-amber-700: oklch(0.5 0.13 70);

    /* Neutrals (slightly warm-tinted for a friendlier feel) */
    --color-neutral-50: oklch(0.98 0.004 260);
    --color-neutral-100: oklch(0.955 0.006 260);
    --color-neutral-200: oklch(0.91 0.008 260);
    --color-neutral-300: oklch(0.85 0.01 260);
    --color-neutral-400: oklch(0.71 0.012 260);
    --color-neutral-500: oklch(0.56 0.012 260);
    --color-neutral-600: oklch(0.46 0.012 260);
    --color-neutral-700: oklch(0.36 0.012 260);
    --color-neutral-800: oklch(0.26 0.012 260);
    --color-neutral-900: oklch(0.19 0.012 260);
    --color-neutral-950: oklch(0.14 0.01 260);

    /* Semantic colors (light-dark) */
    --color-bg: light-dark(var(--color-neutral-50), var(--color-neutral-950));
    --color-bg-alt: light-dark(white, var(--color-neutral-900));
    --color-bg-elevated: light-dark(white, var(--color-neutral-800));
    --color-surface: light-dark(var(--color-neutral-100), var(--color-neutral-900));
    --color-text: light-dark(var(--color-neutral-900), var(--color-neutral-100));
    --color-text-muted: light-dark(var(--color-neutral-500), var(--color-neutral-400));
    --color-text-inverse: light-dark(white, var(--color-neutral-950));
    --color-border: light-dark(var(--color-neutral-200), var(--color-neutral-700));
    --color-border-subtle: light-dark(var(--color-neutral-100), var(--color-neutral-800));
    --color-primary: light-dark(var(--color-green-600), var(--color-green-400));
    --color-primary-hover: light-dark(var(--color-green-700), var(--color-green-300));
    --color-primary-subtle: light-dark(var(--color-green-50), oklch(0.26 0.06 155 / 0.3));
    --color-accent: var(--color-amber-400);
    --color-accent-hover: var(--color-amber-500);
    --color-hero-from: light-dark(oklch(0.2 0.06 235), oklch(0.12 0.05 235));
    --color-hero-to: light-dark(oklch(0.28 0.08 160), oklch(0.16 0.06 160));
    --color-error: oklch(0.63 0.22 27);
    --color-success: oklch(0.62 0.2 150);

    /* Typography */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

    --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.9375rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
    --text-xl: clamp(1.3125rem, 1.15rem + 0.8vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
    --text-3xl: clamp(1.875rem, 1.55rem + 1.6vw, 2.75rem);
    --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.5rem);
    --text-5xl: clamp(2.75rem, 2.1rem + 3.25vw, 4.25rem);

    /* Spacing */
    --space-2xs: clamp(0.125rem, 0.1rem + 0.15vw, 0.25rem);
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-md: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    --space-lg: clamp(1rem, 0.8rem + 1vw, 1.75rem);
    --space-xl: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
    --space-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-3xl: clamp(3rem, 2rem + 5vw, 6rem);
    --space-section: clamp(4.5rem, 3.5rem + 5vw, 8rem);

    /* Layout */
    --max-width: 72rem;
    --content-padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

    /* Borders & Shadows */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px oklch(0.2 0.01 240 / 0.06), 0 1px 2px oklch(0.2 0.01 240 / 0.04);
    --shadow-md: 0 4px 6px oklch(0.2 0.01 240 / 0.06), 0 2px 4px oklch(0.2 0.01 240 / 0.04);
    --shadow-lg: 0 10px 25px oklch(0.2 0.01 240 / 0.08), 0 4px 10px oklch(0.2 0.01 240 / 0.04);
    --shadow-xl: 0 20px 50px oklch(0.2 0.01 240 / 0.1), 0 8px 20px oklch(0.2 0.01 240 / 0.05);
    --shadow-glow: 0 0 30px oklch(0.62 0.2 150 / 0.2), 0 0 60px oklch(0.62 0.2 150 / 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
  }
}

/* ==========================================================================
   LAYER: Base
   ========================================================================== */
@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  a {
    transition: color var(--duration-fast) var(--ease-out);

    &:hover {
      color: var(--color-primary);
    }
  }

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

  ::selection {
    background: light-dark(oklch(0.5 0.15 155 / 0.2), oklch(0.7 0.16 155 / 0.2));
    color: var(--color-text);
  }

  /* Skip link */
  .skip-link {
    position: absolute;
    top: -100%;
    left: var(--content-padding);
    z-index: 1000;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    transition: top var(--duration-fast) var(--ease-out);

    &:focus {
      top: var(--space-sm);
    }
  }
}

/* ==========================================================================
   LAYER: Layout
   ========================================================================== */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--content-padding);
  }

  .section {
    padding-block: var(--space-section);
    position: relative;
  }

  .section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
  }

  .section__subtitle {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    padding: 0.3em 1em;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-full);
  }

  .section__title {
    margin-bottom: var(--space-md);
  }

  .section__description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 38rem;
    margin-inline: auto;
    line-height: 1.7;
  }
}

/* ==========================================================================
   LAYER: Components
   ========================================================================== */
@layer components {
  /* --- Buttons --- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875em 2em;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition:
      background-color var(--duration-fast) var(--ease-out),
      color var(--duration-fast) var(--ease-out),
      transform var(--duration-fast) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
    min-height: 3rem;
    cursor: pointer;

    &:hover {
      transform: translateY(-2px);
    }

    &:active {
      transform: translateY(0);
      transition-duration: 50ms;
    }
  }

  .btn--primary {
    background: linear-gradient(135deg, var(--color-amber-400), var(--color-amber-500));
    color: var(--color-neutral-950);
    box-shadow:
      0 2px 8px oklch(0.78 0.17 80 / 0.25),
      inset 0 1px 0 oklch(1 0 0 / 0.15);

    &:hover {
      background: linear-gradient(135deg, var(--color-amber-300), var(--color-amber-400));
      color: var(--color-neutral-950);
      box-shadow:
        0 6px 20px oklch(0.78 0.17 80 / 0.35),
        inset 0 1px 0 oklch(1 0 0 / 0.2);
    }
  }

  .btn--secondary {
    background: transparent;
    color: inherit;
    border: 2px solid oklch(from currentColor l c h / 0.4);

    &:hover {
      background: oklch(from currentColor l c h / 0.08);
      border-color: oklch(from currentColor l c h / 0.6);
      color: inherit;
    }
  }

  .btn--lg {
    padding: 1.05em 2.5em;
    font-size: var(--text-lg);
    min-height: 3.5rem;

    @media (max-width: 40em) {
      padding: 0.875em 1.5em;
      font-size: var(--text-base);
      min-height: 3rem;
    }
  }

  .btn__icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
  }

  /* --- Cards --- */
  .card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition:
      transform var(--duration-normal) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out);

    /* Accent bar at top */
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
      opacity: 0;
      transition: opacity var(--duration-normal) var(--ease-out);
    }
  }

  .card--hover {
    &:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);

      &::before {
        opacity: 1;
      }
    }
  }

  .card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);

    & svg {
      width: 1.75rem;
      height: 1.75rem;
    }
  }

  .card__title {
    margin-bottom: var(--space-sm);
  }

  .card__text {
    color: var(--color-text-muted);
    line-height: 1.75;
  }

  /* --- Form inputs --- */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .form-label {
    font-weight: 600;
    font-size: var(--text-sm);
  }

  .form-input {
    width: 100%;
    padding: 0.85em 1.1em;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    min-height: 3rem;
    transition:
      border-color var(--duration-fast) var(--ease-out),
      box-shadow var(--duration-fast) var(--ease-out);

    &::placeholder {
      color: var(--color-neutral-400);
    }

    &:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 4px light-dark(oklch(0.5 0.15 155 / 0.12), oklch(0.7 0.16 155 / 0.12));
    }

    &[aria-invalid="true"] {
      border-color: var(--color-error);

      &:focus {
        box-shadow: 0 0 0 4px oklch(0.63 0.22 27 / 0.12);
      }
    }
  }

  textarea.form-input {
    resize: vertical;
    min-height: 8em;
  }

  .form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    font-weight: 500;
    min-height: 1.3em;
  }

  /* --- Badge --- */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.45em 1em;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: oklch(1 0 0 / 0.12);
    color: inherit;
    backdrop-filter: blur(8px);
    border: 1px solid oklch(1 0 0 / 0.1);
  }

  .badge__icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   LAYER: Sections
   ========================================================================== */
@layer sections {
  /* =========================================
     Navigation
     ========================================= */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: var(--space-md);
    transition:
      background-color var(--duration-normal) var(--ease-out),
      padding var(--duration-normal) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out);
  }

  .nav--scrolled {
    background: light-dark(
      oklch(0.98 0.004 260 / 0.92),
      oklch(0.14 0.01 260 / 0.92)
    );
    backdrop-filter: blur(16px) saturate(1.2);
    padding-block: var(--space-sm);
    box-shadow: var(--shadow-sm);

    & .nav__brand {
      color: var(--color-text);
    }

    & .nav__link {
      color: var(--color-text-muted);

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

    & .nav__logo {
      color: var(--color-primary);
    }

    & .nav__toggle span {
      background: var(--color-text);
    }
  }

  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    z-index: 101;
    letter-spacing: -0.01em;
    transition: color var(--duration-normal) var(--ease-out);
  }

  .nav__logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    transition: color var(--duration-normal) var(--ease-out);
  }

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

  .nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
    padding: 0.25em 0;

    &::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--color-primary);
      transition: width var(--duration-normal) var(--ease-out);
      border-radius: 1px;
    }

    &:hover,
    &.nav__link--active {
      color: var(--color-text);

      &::after {
        width: 100%;
      }
    }
  }

  .nav__cta {
    font-size: var(--text-sm);
  }

  /* Hamburger — large touch target */
  .nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 101;
    border-radius: var(--radius-sm);
    padding: 0.5rem;

    & span {
      display: block;
      width: 1.5rem;
      height: 2px;
      background: var(--color-text);
      border-radius: 2px;
      transition:
        transform var(--duration-normal) var(--ease-out),
        opacity var(--duration-fast) var(--ease-out),
        background var(--duration-normal) var(--ease-out);
      transform-origin: center;
    }
  }

  .nav__toggle--open {
    & span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    & span:nth-child(2) {
      opacity: 0;
    }
    & span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
  }

  @media (max-width: 48em) {
    .nav__toggle {
      display: flex;
    }

    .nav__links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100dvh;
      flex-direction: column;
      justify-content: center;
      gap: var(--space-xl);
      padding-top: 5rem;
      background: var(--color-bg);
      transform: translateX(100%);
      transition: transform var(--duration-slow) var(--ease-out);
    }

    .nav__links--open {
      transform: translateX(0);
    }

    .nav__link {
      font-size: var(--text-2xl);
      padding: var(--space-sm) 0;
    }

    .nav__cta {
      font-size: var(--text-lg);
      margin-top: var(--space-md);
    }
  }

  /* Mobile: always show solid nav background */
  @media (max-width: 48em) {
    .nav {
      background: light-dark(
        oklch(0.98 0.004 260 / 0.92),
        oklch(0.14 0.01 260 / 0.92)
      );
      backdrop-filter: blur(16px) saturate(1.2);
      padding-block: var(--space-sm);
    }
  }

  /* Desktop only: transparent nav on hero (white text, no bg) */
  @media (min-width: 48.01em) {
    .nav:not(.nav--scrolled) {
      & .nav__brand {
        color: white;
      }

      & .nav__link {
        color: oklch(1 0 0 / 0.75);

        &:hover,
        &.nav__link--active {
          color: white;
        }
      }

      & .nav__logo {
        color: white;
      }
    }
  }

  /* =========================================
     Hero
     ========================================= */
  .hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--color-hero-from) 0%, var(--color-hero-to) 100%);
    color: white;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: var(--space-2xl);
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;

    /* Animated ambient orbs */
    &::before,
    &::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      animation: hero-float 20s var(--ease-in-out) infinite alternate;
    }

    &::before {
      width: min(50vw, 600px);
      height: min(50vw, 600px);
      background: oklch(0.5 0.15 155 / 0.2);
      top: -15%;
      right: -10%;
    }

    &::after {
      width: min(45vw, 550px);
      height: min(45vw, 550px);
      background: oklch(0.65 0.15 80 / 0.12);
      bottom: -20%;
      left: -15%;
      animation-delay: -10s;
    }
  }

  /* Decorative wolf watermark */
  .hero__watermark {
    position: absolute;
    right: -3%;
    bottom: -5%;
    width: min(55vw, 480px);
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    color: white;

    @media (min-width: 64em) {
      right: 5%;
      bottom: 5%;
      width: min(40vw, 420px);
      opacity: 0.05;
    }
  }

  @keyframes hero-float {
    to {
      translate: -4% 6%;
      scale: 1.08;
    }
  }

  .hero__content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
  }

  .hero__headline {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
    color: white;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero__subheadline {
    font-size: var(--text-lg);
    color: oklch(1 0 0 / 0.82);
    margin-bottom: var(--space-xl);
    max-width: 34rem;
    line-height: 1.7;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
  }

  .hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  @media (max-width: 40em) {
    .hero__actions {
      flex-direction: column;

      & .btn {
        width: 100%;
      }
    }
  }

  /* =========================================
     How It Works (Steps)
     ========================================= */
  .steps {
    background: var(--color-surface);

    /* Subtle top-edge decoration */
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-accent) 50%,
        var(--color-primary) 100%
      );
    }
  }

  .steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);

    @media (min-width: 48em) {
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-xl);
    }
  }

  .step {
    text-align: center;
    position: relative;
  }

  .step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-green-500));
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 12px light-dark(oklch(0.5 0.15 155 / 0.25), oklch(0.7 0.16 155 / 0.25));
  }

  .step__icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-primary);

    & svg {
      width: 2.5rem;
      height: 2.5rem;
    }
  }

  .step__title {
    margin-bottom: var(--space-sm);
  }

  .step__text {
    color: var(--color-text-muted);
    max-width: 22rem;
    margin-inline: auto;
    line-height: 1.7;
  }

  /* Connecting line between steps on desktop */
  @media (min-width: 48em) {
    .step:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 1.75rem;
      left: calc(50% + 2.5rem);
      width: calc(100% - 5rem);
      height: 2px;
      background: linear-gradient(90deg, var(--color-border), var(--color-primary), var(--color-border));
      opacity: 0.5;
    }
  }

  /* =========================================
     Calculator
     ========================================= */
  .calculator {
    position: relative;
    overflow: hidden;

    /* Decorative background dots */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(light-dark(oklch(0.5 0.15 155 / 0.06), oklch(0.7 0.16 155 / 0.06)) 1px, transparent 1px);
      background-size: 24px 24px;
      pointer-events: none;
    }
  }

  .calculator__card {
    position: relative;
    background: light-dark(oklch(1 0 0 / 0.8), oklch(0.26 0.012 260 / 0.8));
    backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid light-dark(oklch(0.91 0.008 260 / 0.5), oklch(0.36 0.012 260 / 0.5));
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    max-width: 56rem;
    margin-inline: auto;
    box-shadow: var(--shadow-xl);

    @media (min-width: 40em) {
      padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    }
  }

  .calculator__household {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  .calculator__household-btn {
    padding: 0.65em 1.4em;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    min-height: 2.75rem;
    transition:
      background var(--duration-fast) var(--ease-out),
      border-color var(--duration-fast) var(--ease-out),
      color var(--duration-fast) var(--ease-out),
      transform var(--duration-fast) var(--ease-out);

    &:hover {
      border-color: var(--color-primary);
      color: var(--color-text);
      transform: translateY(-1px);
    }

    &[aria-pressed="true"] {
      background: var(--color-primary);
      border-color: var(--color-primary);
      color: white;
      box-shadow: 0 2px 8px light-dark(oklch(0.5 0.15 155 / 0.3), oklch(0.7 0.16 155 / 0.3));
    }
  }

  .calculator__inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .calculator__input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* "Add gas" link */
  .calculator__add-gas {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out);

    &:hover {
      color: var(--color-primary);
    }

  }

  /* Gas inputs: dynamically shown when gas > 0 */
  .calculator__gas-inputs {
    &:not([hidden]) {
      animation: gas-reveal var(--duration-slow) var(--ease-out);
    }
  }

  @keyframes gas-reveal {
    from {
      opacity: 0;
      transform: translateY(-0.5rem);
    }
  }

  .calculator__input-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: var(--text-base);

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--color-primary);
      flex-shrink: 0;
    }
  }

  .calculator__range-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .calculator__range {
    flex: 1;
    min-width: 8rem;
    height: 8px;
    appearance: none;
    background: var(--color-border);
    border-radius: 4px;
    outline: none;

    &::-webkit-slider-thumb {
      appearance: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--color-primary);
      cursor: pointer;
      box-shadow: 0 2px 6px oklch(0 0 0 / 0.2);
      border: 3px solid white;
      transition: transform var(--duration-fast) var(--ease-spring);

      &:hover {
        transform: scale(1.2);
      }
    }

    &::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 3px solid white;
      background: var(--color-primary);
      cursor: pointer;
      box-shadow: 0 2px 6px oklch(0 0 0 / 0.2);
    }

    &:focus-visible {
      outline: none;

      &::-webkit-slider-thumb {
        box-shadow: 0 0 0 4px light-dark(oklch(0.5 0.15 155 / 0.2), oklch(0.7 0.16 155 / 0.2));
      }
    }
  }

  .calculator__number {
    width: 6.5rem;
    padding: 0.55em 0.7em;
    text-align: right;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    min-height: 2.75rem;

    &:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 4px light-dark(oklch(0.5 0.15 155 / 0.12), oklch(0.7 0.16 155 / 0.12));
    }
  }

  .calculator__unit {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
  }

  .calculator__results {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--color-border);
  }

  .calculator__comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .calculator__result {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .calculator__result-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    font-weight: 500;
  }

  .calculator__result-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .calculator__result-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
  }

  /* Savings result: the visual climax */
  .calculator__result--savings {
    background: light-dark(
      oklch(0.62 0.2 150 / 0.06),
      oklch(0.62 0.2 150 / 0.1)
    );
    border: 2px solid light-dark(
      oklch(0.62 0.2 150 / 0.15),
      oklch(0.62 0.2 150 / 0.2)
    );
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-md);

    & .calculator__result-value {
      color: var(--color-success);
      font-size: var(--text-4xl);
    }

    & .calculator__result-label {
      color: var(--color-success);
      font-weight: 600;
    }
  }

  .calculator__cta {
    text-align: center;
    margin-top: var(--space-xl);

    @media (max-width: 40em) {
      & .btn {
        width: 100%;
      }
    }
  }

  .calculator__disclaimer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.6;
  }

  /* =========================================
     Benefits
     ========================================= */
  .benefits {
    background: var(--color-surface);
  }

  .benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);

    @media (min-width: 40em) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 64em) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* =========================================
     About
     ========================================= */
  .about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;

    @media (min-width: 48em) {
      grid-template-columns: 1fr 1.6fr;
    }
  }

  .about__photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-2xl);
    background:
      linear-gradient(160deg, var(--color-green-100) 0%, var(--color-blue-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 18rem;
    margin-inline: auto;
    box-shadow: var(--shadow-lg);
    position: relative;

    /* Decorative corner accent */
    &::after {
      content: "";
      position: absolute;
      bottom: -1px;
      right: -1px;
      width: 40%;
      height: 40%;
      background: linear-gradient(135deg, transparent 50%, light-dark(oklch(0.5 0.15 155 / 0.08), oklch(0.7 0.16 155 / 0.08)) 50%);
      border-radius: 0 0 var(--radius-2xl) 0;
    }

    @media (min-width: 48em) {
      max-width: none;
    }
  }

  .about__photo-placeholder {
    font-size: var(--text-4xl);
    color: var(--color-green-500);
    opacity: 0.35;
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    padding: var(--space-lg);
    letter-spacing: 0.05em;
  }

  .about__text {
    & p {
      color: var(--color-text-muted);
      margin-bottom: var(--space-md);
      line-height: 1.8;
    }
  }

  .about__name {
    margin-bottom: var(--space-xs);
  }

  .about__role {
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-lg);
  }

  .about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--color-border);
  }

  .about__stat {
    text-align: center;
  }

  .about__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
  }

  .about__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    line-height: 1.4;
  }

  .about__cta {
    margin-top: var(--space-xl);

    @media (max-width: 48em) {
      text-align: center;
    }
  }

  /* =========================================
     FAQ
     ========================================= */
  .faq {
    background: var(--color-surface);
  }

  .faq__list {
    max-width: 48rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-elevated);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-out);

    &[open] {
      box-shadow: var(--shadow-md);
      border-color: light-dark(oklch(0.5 0.15 155 / 0.25), oklch(0.7 0.16 155 / 0.25));
    }
  }

  .faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-lg) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    min-height: 3.5rem;
    user-select: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::marker {
      content: "";
    }

    &:hover {
      color: var(--color-primary);
    }
  }

  .faq__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
    color: var(--color-primary);
  }

  .faq__item[open] .faq__icon {
    transform: rotate(45deg);
  }

  .faq__answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-muted);
    line-height: 1.8;
    animation: faq-open var(--duration-normal) var(--ease-out);
  }

  @keyframes faq-open {
    from {
      opacity: 0;
      translate: 0 -0.5rem;
    }
  }

  /* =========================================
     Contact
     ========================================= */
  .contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);

    @media (min-width: 48em) {
      grid-template-columns: 1fr 1.3fr;
      align-items: start;
    }
  }

  .contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }

  .contact__intro {
    color: var(--color-text-muted);
    line-height: 1.8;
  }

  .contact__channels {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .contact__channel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid transparent;
    min-height: 3.5rem;
    transition:
      background var(--duration-fast) var(--ease-out),
      border-color var(--duration-fast) var(--ease-out);

    & > *:not(.contact__channel-icon) {
      min-width: 0;
    }

    &:hover {
      background: var(--color-primary-subtle);
      border-color: light-dark(oklch(0.5 0.15 155 / 0.15), oklch(0.7 0.16 155 / 0.15));
    }
  }

  .contact__channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    flex-shrink: 0;

    & svg {
      width: 1.25rem;
      height: 1.25rem;
    }
  }

  .contact__channel-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }

  .contact__channel-value {
    font-weight: 600;
    font-size: var(--text-base);
    overflow-wrap: break-word;
  }

  .contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);

    @media (min-width: 40em) {
      padding: var(--space-2xl);
    }
  }

  .contact__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);

    @media (min-width: 40em) {
      grid-template-columns: 1fr 1fr;
    }
  }

  .contact__form-submit {
    align-self: start;
    margin-top: var(--space-sm);
  }

  .contact__form-success {
    display: none;
    text-align: center;
    padding: var(--space-xl);

    &.is-visible {
      display: block;
      animation: faq-open var(--duration-slow) var(--ease-out);
    }
  }

  .contact__form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: oklch(0.62 0.2 150 / 0.1);
    color: var(--color-success);
    margin-bottom: var(--space-lg);

    & svg {
      width: 2.25rem;
      height: 2.25rem;
    }
  }

  /* =========================================
     Footer
     ========================================= */
  .footer {
    background: var(--color-neutral-900);
    color: var(--color-neutral-300);
    padding-block: var(--space-2xl) var(--space-lg);
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-neutral-700);
    margin-bottom: var(--space-lg);

    @media (min-width: 48em) {
      grid-template-columns: 2fr 1fr 1fr;
    }
  }

  .footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
  }

  .footer__logo {
    width: 2rem;
    height: 2rem;
    color: white;
  }

  .footer__description {
    font-size: var(--text-sm);
    color: var(--color-neutral-400);
    max-width: 24rem;
    line-height: 1.7;
  }

  .footer__heading {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
  }

  .footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer__link {
    font-size: var(--text-sm);
    color: var(--color-neutral-400);
    transition: color var(--duration-fast) var(--ease-out);
    padding: var(--space-2xs) 0;

    &:hover {
      color: white;
    }
  }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
  }

  .footer__attribution {
    & a {
      text-decoration: underline;
      text-underline-offset: 2px;

      &:hover {
        color: var(--color-neutral-300);
      }
    }
  }

  /* =========================================
     Floating Mobile CTA (phone button)
     ========================================= */
  .mobile-cta {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber-400), var(--color-amber-500));
    color: var(--color-neutral-950);
    box-shadow:
      0 4px 16px oklch(0.78 0.17 80 / 0.35),
      0 0 0 0 oklch(0.78 0.17 80 / 0.3);
    transition:
      transform var(--duration-fast) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out);
    animation: mobile-cta-pulse 3s var(--ease-in-out) infinite;
    opacity: 0;
    pointer-events: none;

    &.is-visible {
      opacity: 1;
      pointer-events: auto;
    }

    &:hover {
      transform: scale(1.1);
    }

    &:active {
      transform: scale(0.95);
    }

    & svg {
      width: 1.5rem;
      height: 1.5rem;
    }

    @media (min-width: 48em) {
      display: none;
    }
  }

  @keyframes mobile-cta-pulse {
    0%, 100% {
      box-shadow:
        0 4px 16px oklch(0.78 0.17 80 / 0.35),
        0 0 0 0 oklch(0.78 0.17 80 / 0.2);
    }
    50% {
      box-shadow:
        0 4px 16px oklch(0.78 0.17 80 / 0.35),
        0 0 0 10px oklch(0.78 0.17 80 / 0);
    }
  }

  /* =========================================
     Scroll-driven animations
     ========================================= */
  .reveal {
    opacity: 0;
    translate: 0 1.5rem;
    transition:
      opacity var(--duration-slower) var(--ease-out),
      translate var(--duration-slower) var(--ease-out);
  }

  .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }

  /* Staggered reveals for grids */
  .reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
  .reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
  .reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
  .reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
  .reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      translate: 0 1.5rem;
      animation: reveal-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
      transition: none;
    }

    @keyframes reveal-scroll {
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    .reveal.is-visible {
      animation: none;
      opacity: 1;
      translate: 0 0;
    }

    /* Stagger delays don't apply with scroll-driven animations */
    .reveal-stagger > .reveal {
      transition-delay: 0ms;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      translate: 0 0;
      animation: none;
      transition: none;
    }

    .hero__bg::before,
    .hero__bg::after {
      animation: none;
    }

    .faq__answer {
      animation: none;
    }

    .mobile-cta {
      animation: none;
    }
  }
}

/* ==========================================================================
   LAYER: Utilities
   ========================================================================== */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

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