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

/* Design tokens: identical to flof.codes (dark-first, red accent). */
:root {
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --bg-card: #16161a;
  --red: #d63031;
  --red-glow: #e6393a;
  --red-dim: #8b1a1a;
  --text: #e8e6e3;
  --text-dim: #7f8694;
  --text-bright: #ffffff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Outfit', sans-serif;
  --border: #222228;
}
[data-theme="light"] {
  --bg: #f5f4f1;
  --bg-raised: #edecea;
  --bg-card: #ffffff;
  --red: #c0392b;
  --red-glow: #d63031;
  --red-dim: #e8c4c0;
  --text: #2d2d2d;
  --text-dim: #6b7280;
  --text-bright: #111111;
  --border: #ddd9d4;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s;
}
::selection { background: var(--red); color: white; }
a { color: var(--red); }
img { max-width: 100%; height: auto; }

/* === NAV === */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
[data-theme="light"] nav { background: rgba(245, 244, 241, 0.85); }
nav.scrolled { border-bottom-color: var(--border); }
.nav-logo { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--text-bright); text-decoration: none; }
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim);
  text-decoration: none; text-transform: lowercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }

/* === HERO (home) === */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--red-dim) 0%, transparent 70%); opacity: 0.15; pointer-events: none;
}
[data-theme="light"] .hero::before { opacity: 0.3; }
.hero-inner { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-text { z-index: 1; }
.hero-label {
  font-family: var(--mono); font-size: 0.8rem; color: var(--red); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; color: var(--text-bright); line-height: 1.15;
  margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s ease 0.35s forwards;
}
.hero-title .accent { color: var(--red); }
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; color: var(--text);
  margin-top: -0.5rem; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s ease 0.42s forwards;
}
.hero-desc { font-size: 1.1rem; color: var(--text-dim); max-width: 520px; margin-bottom: 2.5rem; font-weight: 300; opacity: 0; animation: fadeUp 0.6s ease 0.5s forwards; }
.hero-desc strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s ease 0.65s forwards; }
.hero-cta, .btn {
  display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-size: 0.85rem;
  padding: 0.85rem 1.75rem; background: var(--red); color: white; text-decoration: none; border-radius: 4px; transition: all 0.25s;
}
.hero-cta:hover, .btn:hover { background: var(--red-glow); box-shadow: 0 0 30px rgba(214, 48, 49, 0.3); transform: translateY(-1px); }
.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red-dim); }
.btn.ghost:hover { background: var(--red); color: white; }
.hero-image { display: flex; justify-content: center; align-items: center; opacity: 0; animation: fadeIn 0.8s ease 0.4s forwards; }
.hero-image img {
  width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); filter: drop-shadow(0 0 60px rgba(214, 48, 49, 0.18));
}
[data-theme="light"] .hero-image img { filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.15)); }

/* === PAGE HERO (subpages) === */
.page-hero { padding: 9rem 2rem 3rem; max-width: 1100px; margin: 0 auto; }
.page-hero .hero-label, .page-hero .hero-title, .page-hero .hero-desc, .page-hero .hero-actions { animation-delay: 0.1s; }
.page-hero .hero-title { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .hero-desc { max-width: 680px; font-size: 1.05rem; }
.page-hero.with-image { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.page-hero.with-image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--border);
  opacity: 0; animation: fadeIn 0.8s ease 0.3s forwards;
}
.crumb { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); margin-bottom: 1rem; }
.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--red); }

/* === SECTIONS === */
section { padding: 5.5rem 2rem; max-width: 1100px; margin: 0 auto; }
section.tight { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-label { font-family: var(--mono); font-size: 0.75rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
.section-title { font-size: 2rem; font-weight: 600; color: var(--text-bright); margin-bottom: 2.5rem; line-height: 1.2; }
.section-intro { font-size: 1.05rem; color: var(--text-dim); font-weight: 300; max-width: 720px; margin: -1.5rem 0 2.5rem; line-height: 1.75; }
.section-intro strong, .prose strong { color: var(--text); font-weight: 500; }
.divider { border: none; height: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 1.02rem; font-weight: 300; color: var(--text-dim); line-height: 1.75; margin-bottom: 1.1rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-bright); margin: 2rem 0 0.75rem; }
.prose a { color: var(--red); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col img { width: 100%; border-radius: 6px; border: 1px solid var(--border); object-fit: cover; aspect-ratio: 4 / 3; }
.note { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); border-left: 2px solid var(--red-dim); padding: 0.6rem 1rem; margin: 1.5rem 0; line-height: 1.6; }

/* === CARDS === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: 0; transition: opacity 0.3s; z-index: 1; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--red-dim); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
[data-theme="light"] .card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-family: var(--mono); font-size: 0.7rem; color: var(--red); margin-bottom: 0.75rem; }
.card h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.75rem; }
.card p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.75rem; color: var(--red); text-decoration: none; margin-top: auto; padding-top: 1rem; transition: gap 0.2s; }
.card-link:hover { gap: 0.7rem; }

/* === PILLARS (brain-centered list) === */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.pillar h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; }
.pillar .idx { font-family: var(--mono); font-size: 0.7rem; color: var(--red); display: block; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.92rem; color: var(--text-dim); font-weight: 300; line-height: 1.65; }

/* === AUDIENCE === */
.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2rem; }
.audience { border-left: 2px solid var(--red-dim); padding: 0.25rem 0 0.25rem 1.25rem; }
.audience h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; }
.audience p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }

/* === STEPS === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 1.75rem; position: relative; }
.step-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--red); opacity: 0.35; margin-bottom: 0.5rem; display: block; }
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.6rem; }
.step p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }
.step .price { font-family: var(--mono); font-size: 0.8rem; color: var(--red); margin-top: 0.75rem; display: block; }

/* === STATS === */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.stat { border-top: 1px solid var(--border); padding-top: 1rem; }
.stat .n { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1.1; }
.stat .t { font-size: 0.88rem; color: var(--text-dim); font-weight: 300; margin-top: 0.4rem; }
.stat .s { font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim); opacity: 0.8; margin-top: 0.3rem; display: block; }

/* === WOBBLE BANNER === */
.wobble-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px; padding: 3rem; overflow: hidden; position: relative;
}
.wobble-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }
.wobble-banner img { width: 100%; border-radius: 6px; object-fit: cover; max-height: 320px; border: 1px solid var(--border); }
.wobble-banner h3 { font-size: 1.4rem; font-weight: 600; color: var(--text-bright); margin-bottom: 1rem; }
.wobble-banner p { font-size: 0.95rem; color: var(--text-dim); font-weight: 300; margin-bottom: 1.25rem; }

/* === PRICE TABLE === */
.price-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; background: var(--bg-raised); }
.price-table td.p { font-family: var(--mono); color: var(--red); white-space: nowrap; font-weight: 500; }
.price-table td small { display: block; color: var(--text-dim); font-weight: 300; font-size: 0.85rem; margin-top: 0.2rem; }
.price-table tr:last-child td { border-bottom: 0; }
.price-wrap { overflow-x: auto; }

/* === FAQ === */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--text-bright); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq p { font-size: 0.95rem; color: var(--text-dim); font-weight: 300; line-height: 1.7; margin-top: 0.75rem; }
.faq a { color: var(--red); text-decoration: none; }

/* === CITY GRID === */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.city { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 2rem; text-decoration: none; color: inherit; transition: all 0.3s; position: relative; overflow: hidden; }
.city::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: 0; transition: opacity 0.3s; }
.city:hover::before { opacity: 1; }
.city:hover { border-color: var(--red-dim); transform: translateY(-2px); }
.city h3 { font-size: 1.3rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; }
.city p { font-size: 0.92rem; color: var(--text-dim); font-weight: 300; margin-bottom: 0.75rem; }
.city .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1rem; }
.city .tags span, .tags span { font-family: var(--mono); font-size: 0.65rem; padding: 0.2rem 0.5rem; background: var(--bg); border-radius: 2px; color: var(--text-dim); }

/* === ABOUT === */
.about-inner { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: start; }
.about-image { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.about-image img { width: 280px; max-width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; transition: transform 0.4s ease; }
.about-image img.photo { padding: 0; background: none; object-fit: cover; aspect-ratio: 4 / 5; }
.about-image img:hover { transform: scale(1.02); }
.about-content { max-width: 640px; }
.about-content p { font-size: 1.05rem; font-weight: 300; color: var(--text-dim); margin-bottom: 1.25rem; line-height: 1.75; }
.about-content p:last-child { margin-bottom: 0; }
.about-content strong { color: var(--text); font-weight: 500; }
.about-content a { color: var(--red); text-decoration: none; }
.about-content a:hover { text-decoration: underline; }
.cert-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.5rem 2rem; }
.cert-list li { font-size: 0.92rem; color: var(--text-dim); font-weight: 300; padding-left: 1.1rem; position: relative; }
.cert-list li::before { content: '›'; position: absolute; left: 0; color: var(--red); font-family: var(--mono); }
.cert-list li strong { color: var(--text); font-weight: 500; }

/* === MASCOT === */
.mascot {
  --frames: 25; --frame-ms: 80ms;
  width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 1.5rem;
  background: url("/IMG/mascot-wave.webp") no-repeat 0 0 / calc(var(--frames) * 100%) 100%;
  filter: drop-shadow(0 0 60px rgba(214, 48, 49, 0.2));
}
[data-theme="light"] .mascot { filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.15)); }
.mascot:hover, .mascot.playing { animation: mascot-wave calc(var(--frames) * var(--frame-ms)) steps(var(--frames), jump-none) forwards; }
@keyframes mascot-wave { from { background-position-x: 0%; } to { background-position-x: 100%; } }

/* === CTA BAND + CONTACT === */
.cta-band { text-align: center; padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.cta-band .section-title { margin-bottom: 1rem; }
.contact-section { text-align: center; padding: 7rem 2rem; }
.contact-section .section-title { margin-bottom: 1rem; }
.contact-desc { color: var(--text-dim); font-weight: 300; font-size: 1.05rem; margin: 0 auto 2.5rem; max-width: 560px; }
.contact-email {
  font-family: var(--mono); font-size: 1.2rem; color: var(--red); text-decoration: none; padding: 1rem 2.5rem;
  border: 1px solid var(--red-dim); border-radius: 4px; display: inline-block; transition: all 0.3s;
}
.contact-email:hover { background: var(--red); color: white; box-shadow: 0 0 30px rgba(214, 48, 49, 0.3); }
.contact-links { margin-top: 2rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-links a { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.contact-links a:hover { color: var(--text); }

/* === LEGAL === */
.legal-page { padding: 8rem 2rem 4rem; max-width: 800px; margin: 0 auto; min-height: 70vh; }
.legal-page h1 { font-size: 2rem; font-weight: 600; color: var(--text-bright); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.15rem; font-weight: 600; color: var(--text-bright); margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); line-height: 1.75; margin-bottom: 0.75rem; }

/* === FOOTER === */
footer { padding: 2rem; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-left { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); }
.footer-left a { color: var(--text-dim); text-decoration: none; }
.footer-left a:hover { color: var(--text); }
.footer-right { display: flex; align-items: center; gap: 1.5rem; }
.footer-right a { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 3px; padding: 0.25rem 0.5rem; cursor: pointer; font-size: 0.8rem; line-height: 1; transition: all 0.2s; color: var(--text-dim); }
.theme-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.lang-btn { font-family: var(--mono); font-size: 0.65rem; padding: 0.25rem 0.5rem; background: transparent; color: var(--text-dim); border: none; cursor: pointer; transition: all 0.2s; }
.lang-btn.active { background: var(--red); color: white; }
.lang-btn:not(.active):hover { color: var(--text); }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) { .nav-links { gap: 1rem; } .nav-links a { font-size: 0.7rem; } }
@media (max-width: 768px) {
  nav { padding: 0.75rem 1.25rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 320px; aspect-ratio: 4 / 3; }
  .page-hero { padding: 7rem 1.25rem 2rem; }
  .page-hero.with-image { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
  .two-col, .city-grid, .wobble-banner { grid-template-columns: 1fr; }
  .wobble-banner { padding: 2rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-image img { width: 220px; }
  .contact-section { padding: 5rem 1.25rem; }
  .mascot { width: 170px; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) { .nav-links { display: none; } }
