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

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button, input, textarea, select { font: inherit; color: inherit; }
  ul { margin: 0; padding: 0; list-style: none; }
  h1, h2, h3, h4, p { margin: 0; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
}

@layer tokens {
  :root {

    --bg: oklch(0.29 0.016 265);
    --bg-1: oklch(0.355 0.018 265);
    --bg-2: oklch(0.42 0.02 265);
    --ink: oklch(0.97 0.004 265);
    --ink-soft: oklch(0.82 0.013 265);
    --ink-faint: oklch(0.63 0.013 265);
    --line: rgba(255,255,255,.14);
    --line-strong: rgba(255,255,255,.24);
    --scrim: rgba(40,42,49,.8);


    --accent: oklch(0.80 0.16 82);
    --accent-ink: oklch(0.16 0.02 82);
    --accent-soft: oklch(0.80 0.16 82 / 0.16);
    --accent-line: oklch(0.80 0.16 82 / 0.4);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --wrap: 1180px;
    --section-pad: clamp(4.5rem, 9vw, 7.5rem);
    --shadow-lift: 0 20px 60px -20px rgba(0,0,0,.55);
  }

  body.theme-web {
    --accent: oklch(0.78 0.13 199);
    --accent-ink: oklch(0.15 0.02 199);
    --accent-soft: oklch(0.78 0.13 199 / 0.16);
    --accent-line: oklch(0.78 0.13 199 / 0.4);
  }
  body.theme-dj {
    --accent: oklch(0.80 0.16 82);
    --accent-ink: oklch(0.16 0.02 82);
    --accent-soft: oklch(0.80 0.16 82 / 0.16);
    --accent-line: oklch(0.80 0.16 82 / 0.4);
  }
}

@layer base {
  html, body { background: var(--bg); color: var(--ink); }
  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
}

@layer layout {
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  main section { padding-block: var(--section-pad); position: relative; }
  main section + section { border-top: 1px solid var(--line); }
}

@layer components {


  .skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent); color: var(--accent-ink);
    padding: .7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 600;
  }
  .skip-link:focus { left: 0; }


  .lang-toggle {
    position: fixed; top: 1.1rem; right: clamp(1rem, 3vw, 2rem); z-index: 120;
    display: flex; gap: 2px; background: var(--scrim); backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px;
  }
  .lang-btn {
    border: none; background: transparent; color: var(--ink-soft);
    font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    padding: .4rem .75rem; border-radius: 999px; cursor: pointer;
    transition: background .2s ease, color .2s ease;
  }
  .lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }


  .lang-toggle-inline {
    display: flex; gap: 2px; background: var(--bg-1);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex: none;
  }


  .nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--scrim); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
  .logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
  .logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
  .nav-links { display: flex; align-items: center; gap: 2.1rem; }
  .nav-links a { font-size: .92rem; color: var(--ink-soft); transition: color .2s ease; }
  .nav-links a:hover { color: var(--ink); }
  .nav-right { display: flex; align-items: center; gap: 1rem; }
  .nav-toggle-btn { display: none; }


  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 700; font-size: .92rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .18s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
    white-space: nowrap;
  }
  .btn svg { width: 16px; height: 16px; }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { transform: translateY(-2px); opacity: .92; }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }


  .mobile-menu {
    position: fixed; inset: 0; z-index: 150; background: var(--bg);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2rem clamp(1.25rem, 6vw, 3rem);
    transform: translateY(-100%); transition: transform .35s ease;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu > a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); }
  .mobile-menu-close { position: absolute; top: 1.3rem; right: clamp(1.25rem, 4vw, 2.5rem); background: none; border: 1px solid var(--line-strong); width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
  .nav-socials { gap: .5rem; }
  .nav-socials a { width: 32px; height: 32px; }
  .nav-socials svg { width: 15px; height: 15px; }
  .mobile-menu-socials { margin-top: .4rem; }


  .eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
  }
  .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
  .section-title { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.5rem); max-width: 46ch; }
  .section-sub { margin-top: 1rem; color: var(--ink-soft); max-width: 56ch; font-size: 1.05rem; }


  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }


  .panel-card {
    background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 1.7rem; transition: border-color .25s ease, transform .25s ease, background .25s ease;
  }
  .panel-card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--bg-2); }


  .footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
  .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .footer-links { display: flex; gap: 1.6rem; }
  .footer-links a { color: var(--ink-soft); font-size: .92rem; transition: color .2s ease; }
  .footer-links a:hover { color: var(--ink); }
  .socials { display: flex; gap: .7rem; }
  .socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); transition: border-color .2s ease, color .2s ease; }
  .socials a:hover { border-color: var(--accent); color: var(--accent); }
  .socials svg { width: 17px; height: 17px; }
  .footer-fineprint { font-size: .8rem; color: var(--ink-faint); }


  .field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
  .field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
  .field input, .field textarea, .field select {
    background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: .8rem 1rem; color: var(--ink); font-size: .96rem; transition: border-color .2s ease;
  }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
  .field textarea { resize: vertical; min-height: 110px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .date-selects { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: .5rem; }
  .vh { position: absolute; left: -9999px; opacity: 0; height: 0; }
  .form-status { font-size: .88rem; color: var(--ink-soft); min-height: 1.2em; margin-top: .8rem; }
  .form-status[data-state="ok"] { color: var(--accent); }
  .form-status[data-state="err"] { color: oklch(0.72 0.17 25); }


  .faq-list { max-width: 62rem; }
  .faq-item { border-top: 1px solid var(--line); padding-block: 1.3rem; }
  .faq-item:last-child { border-bottom: 1px solid var(--line); }
  .faq-item summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--accent); flex: none; transition: transform .25s ease;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { margin-top: .9rem; color: var(--ink-soft); max-width: 62ch; }


  .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-top: 3rem; }
  .stat-cell { background: var(--bg-1); padding: 1.6rem 1.4rem; }
  .stat-cell b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); color: var(--accent); }
  .stat-cell span { display: block; margin-top: .35rem; font-size: .86rem; color: var(--ink-soft); }
}

@layer utilities {
  .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  @media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-right .btn-primary { display: none; }
    .nav-right .nav-socials { display: none; }
    .nav-toggle-btn {
      display: grid; place-items: center; width: 42px; height: 42px;
      background: none; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
    }
    .nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after {
      content: ""; display: block; width: 16px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease;
    }
    .nav-toggle-btn span::before { position: absolute; top: -5px; }
    .nav-toggle-btn span::after { position: absolute; top: 5px; }
    .form-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
  }
}
