/* gate.css — Email capture gate styles
   Vibe: dark atmospheric, amber accent, premium fitness health
   Fonts: Syne (display) + DM Sans (body) — matches LowLineOS design system
*/

:root {
  --bg: #0a0a0e;
  --bg-card: #111118;
  --bg-surface: #18181f;
  --fg: #f0ede8;
  --fg-muted: #8a8899;
  --accent: #F59E0B;
  --accent-dim: #92650a;
  --border: #22222e;
  --error: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Ambient background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.gate-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle amber top line */
.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.gate-badge {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.gate-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 14px;
}

.gate-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input::placeholder {
  color: var(--fg-muted);
}

.gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.gate-input--error {
  border-color: var(--error);
}

.gate-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 2px;
}

.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0e;
  border: none;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.gate-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.gate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.gate-btn svg {
  transition: transform 0.2s;
}

.gate-btn:hover svg {
  transform: translateX(3px);
}

.gate-privacy {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

/* Ambient glow behind card */
.gate-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 540px) {
  .gate-card { padding: 36px 24px; }
  .gate-container { padding: 16px; }
}