﻿:root {
  --ink: #0A0908;
  --cream: #F8F6F1;
  --surface: #FFFFFF;
  --border: #E8E2D9;
  --ember: #E8612A;
  --ember-light: #F59E6B;
  --ember-bg: #FBE9DF;
  --ember-glow: rgba(232,97,42,0.18);
  --muted: #6B6258;
  --muted2: #A09890;
  --sand: #E0D8CE;
  --green: #16A34A;
  --green-bg: #DCFCE7;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  overflow-x: hidden;
}

/* 
   NAV
 */
nav {
  position: fixed; top:0; left:0; right:0; z-index:500;
  display: flex; align-items:center; justify-content:space-between;
  padding: 0 44px; height:60px;
  transition: background .4s, border-color .4s;
}
nav.bg { background:rgba(10,9,8,.9); backdrop-filter:blur(20px); border-bottom:1px solid rgba(255,255,255,.07); }
.nav-logo { text-decoration:none; font-size:19px; font-weight:800; color:#fff; letter-spacing:-.5px; }
.nav-logo em { color:var(--ember); font-style:normal; }
.nav-links { display:flex; gap:28px; }
.nav-link { font-size:13px; color:rgba(255,255,255,.4); font-weight:600; text-decoration:none; transition:color .2s; }
.nav-link:hover { color:#fff; }
.nav-ctas { display:flex; gap:8px; align-items:center; }
.n-ghost { font-size:12px; font-weight:700; color:rgba(255,255,255,.5); background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); padding:7px 16px; border-radius:7px; font-family:'Bricolage Grotesque',sans-serif; transition:all .2s; }
.n-ghost:hover { color:#fff; border-color:rgba(255,255,255,.3); }
.n-main { font-size:12px; font-weight:800; color:#fff; background:var(--ember); border:none; padding:8px 18px; border-radius:7px; font-family:'Bricolage Grotesque',sans-serif; transition:background .2s; }
.n-main:hover { background:#d4531e; }

/* 
   HERO - Zoom Effect
 */
.zoom-wrapper {
  position: relative;
  height: 136vh;
  background: var(--ink);
}
.zoom-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.zoom-device {
  position: relative; z-index: 1;
  width: 100vw; height: 100vh;
  background: var(--ink);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, border-radius, box-shadow;
}
.device-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 44px;
  background: rgba(20,18,16,.95);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 10; backdrop-filter: blur(10px);
}
.device-chrome.show { opacity: 1; transform: translateY(0); }
.d-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.d-url {
  flex: 1; max-width: 260px; margin: 0 auto;
  background: rgba(255,255,255,.06); border-radius: 6px;
  padding: 5px 14px; font-size: 11px; color: rgba(255,255,255,.25);
  text-align: center; font-family: 'DM Sans', sans-serif;
}

/* Hero Content */
.device-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 0 56px;
}
.device-glow {
  position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 650px;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,97,42,.2) 0%, rgba(232,97,42,.05) 45%, transparent 70%);
  pointer-events: none;
}
.device-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
}
.device-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(10,9,8,.85) 100%);
  pointer-events: none;
}
.device-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: rgba(232,97,42,.15);
  top: -200px; right: -200px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(232,97,42,.1);
  bottom: -100px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 16px 5px 6px;
  background:rgba(232,97,42,.12); border:1px solid rgba(232,97,42,.3);
  border-radius:100px; margin-bottom:28px;
  animation: fadeUp .9s ease both;
  position: relative; z-index: 1;
}
.badge-dot { width:22px; height:22px; border-radius:50%; background:var(--ember); display:flex; align-items:center; justify-content:center; font-size:10px; }
.badge-text { font-size:11px; font-weight:700; color:var(--ember-light); letter-spacing:.5px; }

.device-h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 900; line-height: 1.04; letter-spacing: -3px;
  position: relative; z-index: 1;
  animation: fadeUp .9s .1s ease both;
}
.device-h1 .l1 { display: block; color: rgba(255,255,255,.2); }
.device-h1 .l2 { display: block; color: rgba(255,255,255,.5); }
.device-h1 .l3 { display: block; color: #fff; }
.device-h1 .l3 em { font-style: italic; font-family: 'Instrument Serif', serif; color: var(--ember); font-size: .92em; letter-spacing: -2px; }

.device-sub {
  font-size: 17px; color: rgba(255,255,255,.48);
  max-width: 560px; line-height: 1.7; font-weight: 400;
  margin-top: 28px;
  position: relative; z-index: 1;
  animation: fadeUp .9s .2s ease both;
}
.device-sub strong { color: rgba(255,255,255,.7); font-weight: 600; }

.device-btns {
  display: flex; gap: 12px; margin-top: 32px;
  position: relative; z-index: 1;
  animation: fadeUp .9s .3s ease both;
}
.dev-btn-main {
  padding: 14px 32px; background: var(--ember); color: #fff;
  border: none; border-radius: 9px; font-size: 14px; font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 40px rgba(232,97,42,.4);
  transition: transform .15s, box-shadow .15s;
}
.dev-btn-main:hover { transform: translateY(-2px); box-shadow: 0 4px 48px rgba(232,97,42,.6); }
.dev-btn-main:focus-visible { outline: 2px solid rgba(232,97,42,.9); outline-offset: 2px; }
.dev-btn-sec {
  padding: 14px 28px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65);
  border-radius: 9px; font-size: 14px; font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.dev-btn-sec:hover { background: rgba(255,255,255,.1); color: #fff; }
.dev-btn-sec:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 
   LEGAL CONTENT SECTION
 */
.legal-section {
  background: var(--cream);
  padding: 0 44px 120px;
  position: relative;
}
.legal-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--cream) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.legal-inner { max-width: 900px; margin: 0 auto; }

/* TOC Navigation */
.legal-toc {
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:32px 36px;
  margin-bottom:40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.legal-toc h3 {
  font-size:14px; font-weight:700; color:var(--ink);
  margin-bottom:20px; display:flex; align-items:center; gap:12px;
}
.legal-toc h3::before {
  content:''; width:24px; height:3px; background:var(--ember); border-radius:2px;
}
.legal-toc ul {
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px 28px;
  list-style:none;
}
.legal-toc a {
  font-size:14px; color:var(--muted); text-decoration:none;
  display:flex; align-items:center; gap:10px;
  transition:color .2s;
  font-weight: 500;
}
.legal-toc a:hover { color:var(--ember); }
.legal-toc a::before {
  content:''; width:6px; height:6px; background:var(--sand); border-radius:50%;
  transition:background .2s;
}
.legal-toc a:hover::before { background:var(--ember); }

/* Legal Cards - Zebra striping */
.legal-card { 
  background:#fff; 
  border:1px solid var(--border); 
  border-radius:24px; 
  padding:40px;
  margin-bottom:24px;
  scroll-margin-top:80px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

/* Alternating backgrounds for visual rhythm */
.legal-card:nth-child(odd) {
  background: #fff;
}
.legal-card:nth-child(even) {
  background: var(--surface);
}

/* Special highlight for important cards */
.legal-card:nth-child(4n+2) {
  background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
}
.legal-card:last-child { margin-bottom:0; }
.legal-card h2 { 
  font-size:24px; font-weight:800; margin-bottom:20px;
  display:flex; align-items:center; gap:14px;
  color:var(--ink);
}
.legal-card h2::before {
  content:''; width:32px; height:4px; background:var(--ember); border-radius:2px;
}
.legal-card h3 {
  font-size:17px; font-weight:700; margin:28px 0 14px;
  color:var(--ink);
}
.legal-card p { 
  font-size:15px; line-height:1.85; 
  color: var(--muted); 
  margin-bottom:16px;
}
.legal-card p:last-child { margin-bottom:0; }
.legal-card ul { 
  padding-left:0; 
  margin:18px 0;
  list-style:none;
}
.legal-card li { 
  font-size:15px; line-height:1.85; 
  color: var(--muted);
  padding-left:32px;
  position:relative;
  margin-bottom:12px;
}
.legal-card li::before {
  content:''; position:absolute; left:0; top:11px;
  width:8px; height:8px; background:var(--ember-bg); border:2px solid var(--ember);
  border-radius:50%;
}
.legal-card li:last-child { margin-bottom:0; }
.legal-card strong { color:var(--ink); font-weight:600; }
.legal-card a { color:var(--ember); text-decoration:none; font-weight:600; }
.legal-card a:hover { text-decoration:underline; }

/* Info boxes */
.legal-info {
  background:var(--ember-bg);
  border-left:4px solid var(--ember);
  border-radius:0 16px 16px 0;
  padding:22px 28px;
  margin:24px 0;
}
.legal-info p {
  font-size:15px; color:var(--ink); margin:0;
  line-height: 1.7;
}
.legal-info strong { color:var(--ember); }

.legal-eu {
  background:var(--ember-bg);
  border-left:4px solid var(--ember);
  border-radius:0 16px 16px 0;
  padding:22px 28px;
  margin:24px 0;
}
.legal-eu p {
  font-size:15px; color:var(--ink); margin:0;
  line-height: 1.8;
}
.legal-eu strong { color:var(--ember); }

/* Table */
.legal-table { 
  width:100%; 
  border-collapse:collapse; 
  margin:24px 0;
  font-size:14px;
  border-radius: 12px;
  overflow: hidden;
}
.legal-table th, .legal-table td { 
  border:1px solid var(--border); 
  padding:16px 18px; 
  text-align:left; 
}
.legal-table th { 
  background:var(--ink); 
  color:#fff; 
  font-weight:600;
}
.legal-table td { color:var(--muted); }
.legal-table tr:nth-child(even) { background:rgba(248,246,241,.5); }

/* Rights grid */
.rights-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:24px 0;
}
.rights-item {
  background:var(--cream); border:1px solid var(--border); border-radius:16px;
  padding:24px;
  transition: transform .2s, border-color .2s;
}
.rights-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232,97,42,.3);
}
.rights-item h4 {
  font-size:15px; font-weight:700; color:var(--ink); margin-bottom:10px;
  display:flex; align-items:center; gap:10px;
}
.rights-item h4::before {
  content:''; width:8px; height:8px; background:var(--ember); border-radius:50%;
}
.rights-item p {
  font-size:14px; color:var(--muted); margin:0; line-height:1.65;
}

/* 
   FOOTER
 */
footer { background:#060504; padding:64px 44px 40px; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; margin-bottom:56px; }
.f-logo { text-decoration:none; color:inherit; font-size:22px; font-weight:800; color:#fff; letter-spacing:-.5px; margin-bottom:12px; }
.f-logo em { color:var(--ember); font-style:normal; }
.f-tagline { font-size:13px; color:rgba(255,255,255,.25); line-height:1.6; }
.f-col-title { font-size:9px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,.18); margin-bottom:18px; }
.f-link { display:block; font-size:13px; color:rgba(255,255,255,.35); text-decoration:none; margin-bottom:10px; transition:color .2s; }
.f-link:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.06); padding-top:32px; display:flex; justify-content:space-between; align-items:center; }
.f-copy { font-size:11px; color:rgba(255,255,255,.2); }

/* 
   RESPONSIVE
 */
@media (max-width: 1024px) {
  .legal-toc ul { grid-template-columns:1fr; }
  .rights-grid { grid-template-columns:1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 22px; }
  .nav-links { display: none; }
  .zoom-wrapper { height: 118vh; }
  .device-h1 { font-size: 36px; letter-spacing: -1px; }
  .device-sub { font-size: 15px; }
  .device-btns { flex-direction: column; align-items: center; }
  .legal-section { padding: 0 22px 60px; }
  .legal-toc { padding: 24px; }
  .legal-card { padding:28px; border-radius: 20px; }
  .legal-card h2 { font-size: 20px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 12px 14px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
}

::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--cream); }
::-webkit-scrollbar-thumb { background:var(--sand); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--muted2); }
