:root{
  --bg: #0b0e14;
  --bg-elev: #121826;
  --text: #eaf0ff;
  --muted: #b6c2e4;
  --primary: #5b8dff;
  --primary-strong: #3a6cff;
  --accent: #7bdcb5;
  --error: #ff6b6b;
  --success: #1ecb65;
  --border: rgba(255,255,255,.12);
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height:1.5;
}
a{color:var(--primary); text-decoration: none;}
a:hover{ text-decoration: underline;}

.container{ width:min(1080px, 92%); margin-inline:auto; }

.site-header{
  position: sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:700; color:var(--text); }
.brand img{ filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); border:1px solid var(--border); }
.top-nav a{ margin-left: 1rem; }

.hero{ position:relative; padding: clamp(3rem, 6vw, 6rem) 0 2.4rem; overflow:hidden; }
.hero.has-bg::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(52,81,255,.25), transparent 60%),
    radial-gradient(1200px 600px at 110% 10%, rgba(11,200,130,.22), transparent 60%),
    url("../img/hero-texture.svg");
  background-size: auto, auto, cover;
  background-position: center;
  filter: saturate(105%);
  opacity: .8;
  z-index:-2;
}
.hero.has-bg::after{
  content:""; position:absolute; width:50vw; height:50vw; max-width:700px; max-height:700px;
  left:-10vw; top:-10vw; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(58,108,255,.35), transparent 60%);
  filter: blur(30px);
  animation: float1 16s ease-in-out infinite;
  z-index:-1;
}
@keyframes float1{ 0%,100%{ transform:translateY(0)} 50%{ transform:translateY(20px)} }

.hero-inner{ display:grid; gap:1rem; }
.hero h1{ font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); margin:.2rem 0 .4rem; text-shadow: 0 2px 30px rgba(0,0,0,.35);}
.hero-points{ display:flex; flex-wrap:wrap; gap:.6rem 1rem; padding:0; margin:0; list-style:none; color:var(--muted); }

.card{
  background: color-mix(in oklab, var(--bg-elev) 92%, #000 8%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 1.6vw, 1.6rem);
  backdrop-filter: blur(2px);
}

.form-section{ padding: 1rem 0 3rem; }
.progress{ height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow:hidden; margin-bottom: 1rem; }
.progress-bar{ height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); width:20%; }
.shimmer{ position:relative; }
.shimmer::after{
  content:""; position:absolute; inset:0 0 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.2s linear infinite;
  mix-blend-mode: screen;
}
@keyframes shimmer{ to{ transform: translateX(100%);} }

h2{ margin: .2rem 0 1rem; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
.grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-photos{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .grid-photos{ grid-template-columns: 1fr; }
}

.field{ display:flex; flex-direction:column; gap:.35rem; }
.field label{ font-weight:600; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="file"],
.field textarea,
.field select{
  appearance:none;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elev) 92%, #000 8%);
  color: var(--text);
  padding: .8rem .9rem;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: color-mix(in oklab, var(--primary) 60%, var(--text) 40%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 25%, transparent);
}
.field .hint{ color: var(--muted); font-size: .9rem; }

.file-field .preview{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:.4rem;
  padding:.2rem 0;
}
.file-field .preview .thumb{
  display:block; width:100%; aspect-ratio:1/1; border-radius:8px; border:1px dashed var(--border);
  background-size: cover; background-position:center; overflow:hidden;
}

.checkbox{ flex-direction: row; align-items:flex-start; gap:.6rem; }
.checkbox input{ margin-top:.2rem; }

.actions{ display:flex; justify-content:flex-end; gap:.6rem; margin-top: .8rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.75rem 1rem; border-radius: 10px; border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elev) 92%, #000 8%);
  color:var(--text); cursor:pointer; font-weight:600;
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.btn-primary{
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 6px 18px color-mix(in oklab, var(--primary) 30%, transparent);
}
.btn-primary:hover{ filter: brightness(1.05); }

.form-note{ color: var(--muted); margin-top: .6rem; }

.site-footer{ border-top:1px solid var(--border); padding: 1.2rem 0; color:var(--muted); }
.site-footer .link{ margin-right: 1rem; }

.noscript{
  margin: 1rem auto; padding: .8rem 1rem;
  background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; border-radius: 10px;
  width:min(900px, 92%);
}

.thankyou{ padding: clamp(3rem, 6vw, 6rem) 0; }

/* Simple reveal on scroll */
.reveal{ opacity:0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.visible{ opacity:1; transform: translateY(0); }
