/* RupiRamp replica — neon glassmorphism
   Tuned for iPhone 15 Pro/Max and laptop widths
*/
:root{
  --bg-1: #0b0f25;
  --bg-2: #1c1244;
  --bg-3: #0a0922;
  --text: #e9eefc;
  --muted: #c8d0f0;
  --brand-a: #00c2ff;
  --brand-b: #7a5cff;
  --brand-c: #b16fff;
  --glow-a: rgba(88, 135, 255, .7);
  --glow-b: rgba(0, 205, 255, .7);
  --glass: rgba(18, 21, 56, .72);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-outer: 0 8px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  --shadow-neon: 0 0 14px rgba(120,99,255,.45), 0 0 28px rgba(0,200,255,.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #1f1760 0%, rgba(31,23,96,0) 55%),
              radial-gradient(900px 900px at 80% 110%, #2b0a5d 0%, rgba(43,10,93,0) 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-3));
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg::before, .bg::after{
  content:"";
  position: fixed;
  inset: -10% -10% -10% -10%;
  pointer-events:none;
}
/* subtle star field using box-shadows */
.bg::after{
  top:0; left:0; right:0; bottom:0;
  background: radial-gradient(2px 2px at 10% 30%, rgba(122,145,255,.8), transparent 60%),
              radial-gradient(2px 2px at 80% 60%, rgba(0,215,255,.8), transparent 60%),
              radial-gradient(2px 2px at 40% 80%, rgba(154,120,255,.8), transparent 60%);
  opacity:.35;
  filter: blur(.3px);
}

.topbar{
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 2;
  display:flex;
  justify-content:center;
  padding: 16px clamp(12px, 3vw, 24px);
}
.topbar-inner{
  width: min(1120px, 100%);
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 14, 40, .5);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  outline: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.35);
}
.brand{
  display:flex; gap:10px; align-items:center;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration:none; color: var(--text);
  font-weight: 700;
}
.brand img{ display:block; border-radius:8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 14px rgba(0, 200, 255, .3); }
.nav{ display:flex; gap: clamp(16px, 3vw, 28px); }
.nav a{
  color: var(--muted); text-decoration:none; font-weight:600; letter-spacing:.1px;
  padding: 6px 10px; border-radius: 10px;
}
.nav a:hover{ color: var(--text); }

.hero{
  width: min(1120px, 100%);
  margin: clamp(18px, 3vh + 1rem, 42px) auto;
  padding: 0 clamp(12px, 3vw, 24px);
  display:flex; flex-direction:column; align-items:center; gap: 18px;
}
.hero-title{
  text-align:center; line-height: .98;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: clamp(16px, 5vh, 40px) 0 8px;
}
.hero-title .grad{
  display:block;
  background: linear-gradient(90deg, var(--brand-a) 10%, var(--brand-b) 55%, var(--brand-c) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(120, 99, 255, .35));
}

.card{
  position:relative;
  width: min(760px, 100%);
  padding: clamp(18px, 3.4vw, 32px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(22,18,58,.85), rgba(14,12,38,.85));
  outline: 1.2px solid rgba(163,150,255,.18);
  box-shadow:
    0 2px 0 rgba(255,255,255,.08) inset,
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 20px 60px rgba(0,0,0,.55),
    0 0 60px rgba(112, 74, 255, .25);
}
.card::before{
  /* neon rim */
  content:"";
  position:absolute; inset: -2px;
  border-radius: 38px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0,220,255,.8), rgba(122,99,255,.8), rgba(255,128,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
  filter: blur(10px) saturate(140%);
  opacity:.7;
}
.card-title{
  text-align:center;
  font-size: clamp(24px, 4.5vw, 44px);
  margin: 8px 0 22px;
  font-weight: 800;
  letter-spacing: .3px;
}

.field{ display:block; margin: 14px 0 18px; }
.label{ display:block; color: var(--muted); font-weight:600; margin: 4px 8px 10px; font-size: clamp(14px, 2.5vw, 18px); }
.input{
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  padding: 18px 20px;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10,18,56,.35), rgba(10,18,56,.35)) padding-box,
    linear-gradient(90deg, rgba(0,215,255,.65), rgba(112,95,255,.65)) border-box;
  box-shadow:
    inset 0 0 22px rgba(0, 180, 255, .08),
    0 6px 24px rgba(0,0,0,.45);
  outline: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.input::placeholder{ color: rgba(220,230,255,.8); opacity:.9; }

.button{
  display:block;
  width: 100%;
  padding: 18px 22px;
  border-radius: 20px;
  font-weight: 800;
  font-size: clamp(18px, 3.8vw, 28px);
  border: none;
  cursor: pointer;
  letter-spacing:.2px;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}
.primary{
  color: #0b0e22;
  background: linear-gradient(90deg, #57d0ff 0%, #8c7bff 55%, #d080ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 10px 24px rgba(0,0,0,.45),
    0 18px 60px rgba(122, 99, 255, .35);
}
.primary:hover{ transform: translateY(-1px); filter: saturate(110%); }
.primary:active{ transform: translateY(0); filter: saturate(100%); }

.secondary{
  width: min(520px, 88vw);
  margin-top: clamp(14px, 3vh, 22px);
  color: #0b0e22;
  background: linear-gradient(90deg, #6ad0ff 0%, #8e7bff 80%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.2),
    0 10px 24px rgba(0,0,0,.45);
}

.legal{
  width: min(1120px, 100%);
  margin: clamp(20px, 6vh, 40px) auto 24px;
  padding: 0 clamp(12px, 3vw, 24px);
  display:flex; align-items:center; gap: 12px; color: var(--muted);
}
.legal .spacer{ flex:1; }
.legal a{ color: var(--muted); text-decoration:none; }
.legal a:hover{ color: var(--text); }

/* iPhone 15 Pro/Max specific tweaks */
@supports (height: 100svh){
  body{ min-height: 100svh; }
}

@media (max-width: 480px){
  .topbar-inner{ gap: 8px; }
  .nav{ gap: 10px; }
  .nav a{ font-size: 14px; padding: 6px 6px; }
  .brand span{ font-size: 16px; }
  .card{ border-radius: 28px; }
}

@media (min-width: 1024px){
  .hero{ gap: 22px; }
  .card{ padding: 40px; }
  .button{ font-size: 24px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .button{ transition: none; }
  .hero-title .grad{ filter: none; }
}
