/* ==========================================================================
   Tchêlevo — design tokens
   ========================================================================== */
:root {
  --font-display: "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --orange-400: #ff8a5c;
  --orange-500: #f1592c;
  --orange-600: #dd4419;
  --teal-400: #2dd4c4;
  --teal-500: #0ea99b;
  --teal-600: #0b8a7f;

  --bg: #ffffff;
  --bg-alt: #f8f5f1;
  --bg-raised: #ffffff;
  --text: #1a1523;
  --text-secondary: #635f6d;
  --text-muted: #938e9c;
  --border: #ece7e0;
  --card-bg: #ffffff;
  --card-border: #eee9e2;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 8px 20px -12px rgba(26, 21, 35, 0.25);
  --shadow-lg: 0 24px 48px -20px rgba(26, 21, 35, 0.22);
  --scrim: rgba(26, 21, 35, 0.5);

  --accent: var(--orange-500);
  --accent-2: var(--teal-500);
  --focus-ring: 0 0 0 3px rgba(14, 169, 155, 0.35);

  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container-max: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080d;
    --bg-alt: #0e0e15;
    --bg-raised: #121219;
    --text: #f5f4f7;
    --text-secondary: #aca8b6;
    --text-muted: #726d7d;
    --border: #232230;
    --card-bg: #101017;
    --card-border: #232230;
    --nav-bg: rgba(8, 8, 13, 0.78);
    --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    --scrim: rgba(0, 0, 0, 0.65);

    --accent: #ff7449;
    --accent-2: #21e0cb;
  }
}

:root[data-theme="dark"] {
  --bg: #08080d;
  --bg-alt: #0e0e15;
  --bg-raised: #121219;
  --text: #f5f4f7;
  --text-secondary: #aca8b6;
  --text-muted: #726d7d;
  --border: #232230;
  --card-bg: #101017;
  --card-border: #232230;
  --nav-bg: rgba(8, 8, 13, 0.78);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  --scrim: rgba(0, 0, 0, 0.65);

  --accent: #ff7449;
  --accent-2: #21e0cb;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.text-orange { color: var(--accent); }
.text-teal { color: var(--accent-2); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 0.75rem; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.section-lead { color: var(--text-secondary); max-width: 46ch; font-size: 1.0625rem; }
section[id] { scroll-margin-top: 88px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   Buttons & badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent-2); color: #052a25; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }


/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  background: var(--text); color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  z-index: 1000;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Decorative SVG animations
   ========================================================================== */
.mouse-dot { transform-box: fill-box; transform-origin: center; animation: mouseDot 1.8s ease-in-out infinite; }
@keyframes mouseDot { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(8px); opacity: 0.3; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.logo { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 1.9rem; justify-content: center; }
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.theme-toggle {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.theme-toggle svg {
  position: absolute; width: 19px; height: 19px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.theme-toggle .icon-sun { color: var(--orange-500); opacity: 0; transform: translateY(8px) rotate(-40deg); }
.theme-toggle .icon-moon { color: var(--teal-500); opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(-8px) rotate(40deg); }
.theme-toggle:hover { border-color: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin-inline: auto; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background-color: var(--bg); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1.25fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-logo { width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); margin-bottom: 1.25rem; }
.hero-content h1 { margin-bottom: 1.1rem; }
.hero-lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 40ch; margin-bottom: 1.75rem; }

.hero-visual { position: relative; aspect-ratio: 1536 / 1024; }
.hero-visual-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.hero-visual-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, transparent, var(--bg) 88%);
  pointer-events: none;
}
.hero-visual-fade-left {
  position: absolute; top: 0; left: 0; bottom: 0; width: 26%;
  background: linear-gradient(to right, var(--bg), transparent 88%);
  pointer-events: none;
}
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  background: none; border: none; color: var(--text-muted);
  font-size: 0.8rem; font-weight: 600;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 34px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ==========================================================================
   How it works
   ========================================================================== */
.how {
  position: relative;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(8, 8, 13, 0.62), rgba(8, 8, 13, 0.62)), url('../assets/img/how-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: var(--section-y);
  overflow: hidden;
}
.how::before, .how::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 30%;
  z-index: 0;
  pointer-events: none;
}
.how::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.how::after { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
.how > .container { position: relative; z-index: 1; }
.how-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.how-road-wrap { position: relative; margin-bottom: 1.5rem; }
.how-road img { width: 100%; height: auto; display: block; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.how-step { text-align: center; display: flex; flex-direction: column; align-items: center; }
.how-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
  color: var(--accent-2);
}
.how-icon svg { width: 26px; height: 26px; }
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.how-step p { color: var(--text-secondary); font-size: 0.92rem; max-width: 24ch; }

/* Desktop: steps sit directly on the road image, at the same points as the curve. */
@media (min-width: 881px) {
  .how-steps {
    position: absolute; inset: 0;
    display: block;
    gap: 0;
  }
  .how-step {
    position: absolute;
    display: flex; flex-direction: column; align-items: center;
    width: 190px; text-align: center;
  }
  .how-step p { max-width: 130px; }
  .how-step:nth-child(1) { left: 0%; top: 118%; transform: translate(0%, -100%); align-items: flex-start; text-align: left; }
  .how-step:nth-child(2) { left: 40%; top: 40%; transform: translate(-50%, 0%); }
  .how-step:nth-child(3) { left: 67%; top: 35%; transform: translate(-50%, 0%); }
  .how-step:nth-child(4) { left: 100%; top: 11%; transform: translate(-100%, 0%); align-items: flex-end; text-align: right; }
}

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantages { background-color: var(--bg); padding-block: var(--section-y); }
.advantages-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.advantage-card {
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-2); }
.advantage-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-icon.icon-outline { background: transparent; border: 1.5px solid currentColor; }
.advantage-icon.icon-filled svg { color: #fff; }
.advantage-icon.teal.icon-outline { color: var(--accent-2); }
.advantage-icon.orange.icon-outline { color: var(--accent); }
.advantage-icon.teal.icon-filled { background: var(--accent-2); }
.advantage-icon.orange.icon-filled { background: var(--accent); }
.advantage-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.advantage-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ==========================================================================
   App showcase
   ========================================================================== */
.app-showcase {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(8, 8, 13, 0.4), rgba(8, 8, 13, 0.4)),
    url('../assets/img/app-ribbon.png');
  background-repeat: no-repeat, no-repeat;
  background-position: center, 100% bottom;
  background-size: cover, 100%;
  overflow: hidden;
}
.app-showcase::before, .app-showcase::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  z-index: 0;
  pointer-events: none;
}
.app-showcase::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.app-showcase::after { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding-block: var(--section-y);
}
.app-content p.section-lead { margin-bottom: 1.75rem; margin-top: 1rem; }

.app-features { display: flex; flex-direction: column; gap: 1.25rem; }
.app-features li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(5, 5, 9, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-lg);
}
.app-features .feature-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2);
}
.app-features .feature-icon svg { width: 19px; height: 19px; }
.app-features strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.app-features p { color: var(--text-secondary); font-size: 0.88rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--bg); padding-block: var(--section-y); }
.contact-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.contact-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card svg { width: 24px; height: 24px; color: var(--accent-2); }
.contact-card h3 { font-size: 1rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top { padding-bottom: 3rem; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 0.75rem 0 1.25rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--accent-2); border-color: var(--accent-2); color: #052a25; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .app-inner { grid-template-columns: 1fr 1fr; }
  .app-features { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .app-features li { flex: 1 1 220px; }
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem clamp(20px, 4vw, 48px) 1.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav[data-state="open"] { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 540px; margin-inline: auto; }
  .hero-logo { display: block; margin-inline: auto; width: 120px; height: 120px; }

  .how-steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .how-road { display: none; }

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

  .app-inner { grid-template-columns: 1fr; text-align: center; }
  .app-content { display: flex; flex-direction: column; align-items: center; }
  .app-features { flex-direction: column; }
  .app-features li { flex: none; text-align: left; }

  .app-showcase {
    background-image:
      linear-gradient(rgba(8, 8, 13, 0.25), rgba(8, 8, 13, 0.25)),
      url('../assets/img/app-ribbon.png');
    background-position: 70% bottom, 70% bottom;
    background-size: cover, 220%;
  }
  .app-showcase::before, .app-showcase::after { height: 20%; }

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

@media (max-width: 620px) {
  .how-steps { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { text-align: center; }
  .hero-content { text-align: center; }
  .hero-lead { margin-inline: auto; }
}
