:root {
  --bg: #08080a;
  --panel: #111114;
  --panel-2: #17171b;
  --field: #1a1a1f;
  --line: #26262c;
  --line-2: #34343c;
  --text: #f0f0f0;
  --muted: #8b8b8b;
  --gold: #f2f2f2;
  --gold-soft: #ffffff;
  --gold-deep: #7d7d7d;
  --gold-grad: linear-gradient(135deg, #ffffff 0%, #f2f2f2 48%, #7d7d7d 100%);
  --btn-grad: linear-gradient(180deg, #ffffff, #bdbdbd);
  --danger: #e5675c;
  --ok: #7cc48a;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }

/* custom scrollbar: gold thumb, no arrows. Chromium/Brave/Edge/Safari use the webkit rules,
   so scrollbar-color/-width are only set for Firefox (in Chromium they would override these). */
::-webkit-scrollbar { width: 14px; height: 14px; background: transparent; }
::-webkit-scrollbar-track { background: #0b0b0d; border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb { border-radius: 99px; border: 4px solid transparent; background: linear-gradient(180deg, #7d7d7d, #4a4a4a) padding-box; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffffff, #f2f2f2) padding-box; }
::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #ffffff, #ffffff) padding-box; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
textarea::-webkit-scrollbar { width: 12px; }
textarea::-webkit-scrollbar-track { background: transparent; border-left: 0; }
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: #6a6a6a #0b0b0d; }
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(255, 255, 255, 0.085), transparent 70%),
    radial-gradient(700px 500px at 100% 40%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(700px 500px at 0% 75%, rgba(255, 255, 255, 0.023), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::after { /* film grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* nothing on the page can be selected or dragged, except what you type in the fields */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, svg, a { -webkit-user-drag: none; }
::selection { background: rgba(255, 255, 255, 0.175); }
a { color: var(--gold-soft); text-decoration-color: rgba(243, 215, 154, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.3); background: rgba(8, 8, 10, .6); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(8, 8, 10, .82); }
.nav .in { max-width: 980px; margin: 0 auto; padding: 0 22px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; text-decoration: none; color: var(--text); font-family: var(--serif); letter-spacing: .2em; font-weight: 600; font-size: .92rem; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .8rem; letter-spacing: .06em; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.cta { color: #0a0a0a; background: var(--btn-grad); font-weight: 600; padding: 8px 16px; border-radius: 99px; }
.nav-links a.cta:hover { filter: brightness(1.07); }

/* hero */
.hero { text-align: center; padding: 70px 0 54px; position: relative; }
.hero .logo-wrap { position: relative; display: inline-block; }
.hero .logo-wrap::before { content: ''; position: absolute; inset: -40px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
.hero img { position: relative; width: min(300px, 64vw); height: auto; animation: float 7s ease-in-out infinite; }
.hero h1 { white-space: nowrap; font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3.9rem); letter-spacing: .24em; margin: 26px 0 10px; font-weight: 600; padding-left: .24em; background: linear-gradient(180deg, #ffffff, #cfcfcf 70%, #8c8c8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { color: var(--muted); letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; margin: 0 0 30px; }
.hero .tag b { color: var(--gold); font-weight: 500; margin: 0 .6em; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 13px 26px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.hero-cta:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.08); } }

/* sections */
section { padding: 40px 0; }
.eyebrow { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 0; }
.lead { color: var(--muted); margin: 14px 0 26px; max-width: 54ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px 140px at 50% -20%, rgba(255, 255, 255, 0.07), transparent); opacity: 0; transition: opacity .35s; }
.card:hover { transform: translateY(-4px); border-color: #4a4a4a; box-shadow: 0 22px 40px -22px rgba(255, 255, 255, 0.175); }
.card:hover::before { opacity: 1; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: var(--gold-soft); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 14px; position: relative; }
.card h3 { font-family: var(--serif); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 6px; position: relative; }
.card p { margin: 0; font-size: .84rem; color: var(--muted); position: relative; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; counter-reset: s; }
.step { padding: 4px 4px 0; position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--serif); font-size: 1.6rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 4px; }
.step b { display: block; font-size: .88rem; font-weight: 600; }
.step span { font-size: .8rem; color: var(--muted); }

/* form */
.panel { position: relative; background: linear-gradient(180deg, #151519, var(--panel)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 40px 70px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .03); }
.panel::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
label { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 11px; color: var(--text);
  font: inherit; font-size: .95rem; padding: 13px 15px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #5c5c5c; }
input:hover, textarea:hover, select:hover { border-color: var(--line-2); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: #1d1d23; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
textarea { min-height: 120px; max-height: 280px; resize: none; line-height: 1.5; padding-right: 10px; }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f2f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select option { background: #1a1a1f; color: var(--text); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.count { float: right; letter-spacing: .08em; color: #5c5c5c; }

.drop { position: relative; border-radius: 14px; padding: 30px 16px; text-align: center; cursor: pointer; margin-bottom: 14px; background: rgba(255, 255, 255, 0.015); outline: none;
  border: 1.5px dashed #707070;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.drop:hover, .drop:focus-visible, .drop.over { background-color: rgba(255, 255, 255, 0.04); border-color: #a8a8a8; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04); }
.drop.over { transform: scale(1.01); }
.drop .up { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: var(--gold-soft); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.125); transition: transform .3s var(--ease); }
.drop:hover .up { transform: translateY(-3px); }
.drop strong { display: block; color: var(--gold-soft); margin-bottom: 3px; font-weight: 600; }
.drop small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.drop input { display: none; }

.files { list-style: none; margin: -2px 0 16px; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; font-size: .86rem; animation: pop .35s var(--ease); }
.files .nt { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--gold-soft); background: rgba(255, 255, 255, 0.05); font-size: 1rem; }
.files .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .s { color: var(--muted); font-size: .74rem; }
.files button { background: none; border: 0; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; transition: color .2s, background .2s; }
.files button:hover { color: var(--danger); background: rgba(229, 103, 92, .1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.btn {
  position: relative; overflow: hidden; width: 100%; border: 0; border-radius: 999px; cursor: pointer; padding: 15px; font-family: var(--sans); font-weight: 700;
  letter-spacing: .22em; font-size: .72rem; text-transform: uppercase; color: #0a0a0a; background: var(--btn-grad);
  box-shadow: 0 12px 32px -10px rgba(255, 255, 255, 0.275); transition: transform .2s var(--ease), filter .2s, box-shadow .2s;
}
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 255, 255, 0.35); }
.btn:hover:not(:disabled)::after { left: 130%; transition: left .7s var(--ease); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.small { width: auto; padding: 10px 18px; letter-spacing: .14em; }
.btn.ghost { background: rgba(255, 255, 255, .02); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; font-weight: 600; }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold); box-shadow: none; }
.btn.danger { background: rgba(229, 103, 92, .05); color: var(--danger); border: 1px solid #5a2a26; box-shadow: none; font-weight: 600; }
.btn.danger:hover:not(:disabled) { background: rgba(229, 103, 92, .14); box-shadow: none; }
.btn:focus-visible, .hero-cta:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.bar { height: 6px; background: var(--field); border-radius: 99px; overflow: hidden; margin-bottom: 14px; display: none; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .15s; box-shadow: 0 0 12px rgba(255, 255, 255, 0.3); }
.msg { border-radius: 12px; padding: 12px 15px; font-size: .88rem; margin-bottom: 16px; display: none; }
.msg.show { display: flex; align-items: center; gap: 10px; animation: pop .3s var(--ease); }
.msg.err { background: rgba(229, 103, 92, .09); border: 1px solid #5a2a26; color: #f0a39b; }
.msg.ok { background: rgba(124, 196, 138, .09); border: 1px solid #2b4a31; color: #a9dcb3; }
.msg.info { background: rgba(255, 255, 255, 0.035); border: 1px solid #444444; color: var(--gold-soft); }

footer { text-align: center; color: var(--muted); font-size: .76rem; padding: 50px 0 56px; letter-spacing: .1em; }
footer img { width: 64px; opacity: .6; display: block; margin: 0 auto 12px; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .cards, .steps, .row { grid-template-columns: 1fr; }
  .nav-links a:not(.cta) { display: none; }
  .nav .in { padding: 0 16px; }
  .brand { font-size: .76rem; letter-spacing: .14em; gap: 10px; }
  .brand img { height: 30px; }
  .nav-links a.cta { padding: 8px 14px; font-size: .74rem; }
  .hero h1 { font-size: clamp(1.6rem, 9.4vw, 2.4rem); letter-spacing: .16em; padding-left: .16em; }
  .hero .tag { letter-spacing: .16em; font-size: .62rem; }
  .hero .tag b { margin: 0 .35em; }
  .panel { padding: 18px; }
  .hero { padding-top: 44px; }
}
