:root{
  --bg: #0b0d10;
  --panel: rgba(10,12,16,0.55);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 24px 70px rgba(0,0,0,0.55);
  --accent: #f5a623;
  --accent2: #d48f18;
}

html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  /* prevent iOS overscroll/bounce showing empty area */
  overflow-x: hidden;
}

/* Avoid "rubber-band" overscroll causing the ability to scroll into empty space */
html{
  overscroll-behavior-y: none;
}

.hero{
  position:relative;
  min-height:100vh;
  background-image: url("assets/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* on mobile Safari, avoid scroll past background */
  overflow: hidden;
}

/* Avoid "scrolling into empty space" on mobile (rubber-banding / overscroll) */
html, body{
  overscroll-behavior-y: none;
}

.overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% 35%, rgba(0,0,0,0.35), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(0,0,0,0.35), transparent 65%),
    linear-gradient(90deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.40) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

/* header removed (logo is now within the left content box) */

.logo{
  height: 46px;
  width: auto;
  /* Improve visibility against complex backgrounds without adding a visible frame */
  filter:
    drop-shadow(0 12px 26px rgba(0,0,0,0.55))
    drop-shadow(0 0 18px rgba(255,255,255,0.16))
    brightness(1.10)
    contrast(1.08);
}

/* Logo placement */
.hero-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.logo-badge{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.top-links{
  display:flex;
  gap: 10px;
  align-items:center;
}

.icon-link{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--text);
  text-decoration:none;
}

.icon-link svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.92;
}

.icon-link:hover{
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

.brand-note{
  margin-top: -10px;
  font-size: 13px;
  opacity: 0.9;
}



.content{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: minmax(320px, 640px) 1fr;
  gap: clamp(16px, 4vw, 54px);
  padding: 28px clamp(18px, 4vw, 54px) 54px;
  align-items: start;
}

.left{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.kicker{
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.06em;
  font-weight: 800;
}

.subline{
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 75ch;
}

.form{ display:grid; gap: 14px; }

.row{ display:grid; gap: 6px; }

.label{ font-size: 12px; color: var(--muted); }

.input{
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.input::placeholder{ color: rgba(255,255,255,0.45); }
.input:focus{
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.consent a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent input{ margin-top: 3px; }

.btn{
  height: 46px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%);
  color: #111;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.btn:disabled{ opacity: 0.6; cursor: not-allowed; }

.fineprint{
  margin: 4px 0 0;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
  line-height: 1.45;
}

.status{
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  color: var(--text);
}

.footer{
  margin-top: 22px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
}
.footer a{
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sep{ opacity: 0.4; }
.copy{ margin-left:auto; opacity: 0.7; }

.right{ min-height: 240px; }

.hp{ display:none; }

@media (max-width: 920px){
  .content{ grid-template-columns: 1fr; }
  .copy{ margin-left: 0; }
}

@media (max-width: 520px){
  .content{ padding: 18px 14px 34px; }
  .left{ padding: 20px; border-radius: 16px; }
  h1{ font-size: clamp(34px, 10vw, 50px); }
  .hero-top{ gap: 10px; margin-bottom: 12px; }
  .logo-badge{ padding: 8px 10px; }
  .top-links{ gap: 8px; }
  .icon-link{ width: 36px; height: 36px; }
}

/* Extra: avoid "scrolling into empty" on mobile browsers */
@supports (-webkit-touch-callout: none) {
  body{ overflow-y: auto; }
}
