/* LakeAlert — Modern Landing Page */

:root {
    --bg: #030712;
    --bg-raised: #0a0f1a;
    --bg-card: #0f1629;
    --bg-card-hover: #151d33;
    --text: #eef0fc;
    --text-muted: #8b9dc3;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);
    --accent: #60a5fa;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --alert-orange: #f59e0b;
    --alert-glow: rgba(245, 158, 11, 0.3);
    --storm: #ef4444;
    --wind: #f59e0b;
    --ok: #22c55e;
    --border: rgba(255, 255, 255, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* [1] Space Grotesk for headlines — tech character */
h1, h2, h3, h4, .step-num, .tl-badge, .badge, .section-label {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.container-narrow { max-width: 620px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Scroll Animations ---- */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim:nth-child(2) { transition-delay: 0.08s; }
.anim:nth-child(3) { transition-delay: 0.16s; }
.anim:nth-child(4) { transition-delay: 0.24s; }

/* ---- Hero ---- */
.hero {
    position: relative;
    text-align: center;
    padding: 5.5rem 1.5rem 3.5rem;
    overflow: hidden;
}

.hero-glow {
    position: fixed;
    top: -200px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(ellipse at 35% 30%, var(--primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 25%, var(--alert-glow) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hero .container { position: relative; z-index: 1; }

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(59, 130, 246, 0.15);
    letter-spacing: 0.02em;
}

/* Logo mark */
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.logo-svg { width: 56px; height: 56px; }

.hero h1 {
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

/* Brand color split: Lake = blue, Alert = orange */
.grad-blue {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Orange beacon pulse — mimics real storm warning light */
.beacon {
    animation: beaconPulse 2.5s ease-in-out infinite;
}

.beacon-ring {
    animation: beaconRing 2.5s ease-in-out infinite;
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6)); }
    50% { opacity: 0.3; filter: drop-shadow(0 0 0px rgba(245, 158, 11, 0)); }
}

@keyframes beaconRing {
    0%, 100% { opacity: 0.3; r: 9; }
    50% { opacity: 0; r: 12; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .beacon, .beacon-ring { animation: none; }
}

.hero-sub {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
    line-height: 1.5;
}

.hero-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #5e6f8a;
}
.hero-hint a { color: #7a8baa; }

/* ---- Realistic Phone Notifications ---- */
.hero-demo {
    max-width: 380px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* [3] Enhanced glassmorphism — deeper blur, subtler border */
.phone-notif {
    background: rgba(15, 22, 41, 0.55);
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0.9rem;
    text-align: left;
    /* Hidden by default, animated in by JS */
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-notif.notif-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#notif-clear { transition-delay: 0s; }

.pn-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.pn-app-icon {
    width: 18px; height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pn-app-icon svg { width: 12px; height: 12px; }
/* Notification demo — same app icon (realistic), severity via border */
.brand-icon { background: var(--alert-orange); }
.notif-storm { border-left: 3px solid var(--storm); }
.notif-clear { border-left: 3px solid var(--ok); }

.pn-app {
    font-size: 0.65rem;
    font-weight: 700;
    color: #5e6f8a;
    letter-spacing: 0.04em;
    flex: 1;
}

.pn-time {
    font-size: 0.65rem;
    color: #4b5a75;
}

.phone-notif strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.phone-notif span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2.5rem;
    color: #3d4e67;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    animation: bobble 2.5s ease-in-out infinite;
}

.scroll-hint svg { width: 16px; height: 16px; }

@keyframes bobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 8px 35px rgba(59, 130, 246, 0.4); }

.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.btn-icon { width: 20px; height: 20px; }

/* ---- Section helpers ---- */
/* [4] Micro-typography for labels — wider spacing, technical feel */
.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

section h2 {
    text-align: center;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

/* ---- Live dot ---- */
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); }
}

/* ---- Channel teaser ---- */
.channel-section {
    padding: 0.75rem 0;
    text-align: center;
}
.channel-section p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Live Status ---- */
.status-section { padding: 5rem 0 3.5rem; }

.status-pills {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Active warnings — prominent alert cards */
.status-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert-card.storm {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-card.wind {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-card strong { flex: 1; }

.alert-level {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.alert-card.storm .alert-level { color: var(--storm); }
.alert-card.wind .alert-level { color: var(--wind); }

/* Region groups */
.status-region {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.region-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4b5a75;
    min-width: 55px;
    padding-top: 0.55rem;
    text-align: right;
    flex-shrink: 0;
}

.region-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s, transform 0.15s;
}

.pill:hover { transform: translateY(-1px); }

.pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-dot.ok { background: var(--ok); }
.pill-dot.wind { background: var(--wind); animation: pulse 1.5s infinite; }
.pill-dot.storm { background: var(--storm); animation: pulse 1s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.pill.ok { color: var(--text-muted); }
.pill.wind {
    color: var(--wind);
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
    font-weight: 700;
}
.pill.storm {
    color: var(--storm);
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.06);
    font-weight: 700;
}

.status-legend {
    text-align: center;
    font-size: 0.7rem;
    color: #4b5a75;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

.status-loading { color: var(--text-muted); font-size: 0.85rem; padding: 1rem; }
.status-meta {
    text-align: center;
    font-size: 0.75rem;
    color: #4b5a75;
    margin-top: 0.75rem;
}

/* [5] Gradient separator — replaces hard border-top lines */
.section-sep {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-glow), transparent);
    max-width: 400px;
    margin: 0 auto;
}

/* [6] Second atmospheric glow — depth in lower page */
.glow-lower {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60vh;
    background: radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Steps ---- */
.steps-section { padding: 5rem 0; }

.steps {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* [2] Tonal layering — cards defined by bg shift, not borders */
.step {
    flex: 1;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Bento Features ---- */
.features-section { padding: 4rem 0; }

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* [2] Bento cards — tonal layering, ghost border only */
.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 2rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
}

.bento-wide { grid-column: span 3; }

.bento-svg {
    width: 32px; height: 32px;
    stroke: var(--accent);
    margin-bottom: 0.6rem;
}

.bento-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.bento-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ---- CTA Mid ---- */
.cta-mid {
    padding: 2rem 0 3rem;
    text-align: center;
}

/* ---- Roadmap / Timeline ---- */
.roadmap-section { padding: 5rem 0; }

.timeline {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    padding-left: 2.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--ok), var(--primary), #1e293b);
}

.tl-item { position: relative; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -2.25rem;
    top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid #1e293b;
    background: #1e293b;
    z-index: 1;
}

.tl-item.done .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-item.active .tl-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.tl-item.next .tl-dot { background: #1e293b; border-color: #334155; }

.tl-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    transition: background 0.2s;
}

.tl-item:hover .tl-card { background: var(--bg-card-hover); }

.tl-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
}

.tl-badge.done { background: rgba(34, 197, 94, 0.1); color: var(--ok); }
.tl-badge.active { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.tl-badge.next { background: rgba(255,255,255,0.04); color: var(--text-muted); }

.tl-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.tl-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Email Signup ---- */
.signup-section { padding: 3rem 0; }

.signup-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    transition: border-color 0.3s;
}

.signup-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.signup-card > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
}

.signup-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input::placeholder { color: #4b5a75; }
.signup-form input:focus { border-color: var(--primary); }

.signup-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    min-height: 1.5rem;
}
.signup-status.success { color: var(--ok); }
.signup-status.error { color: var(--storm); }

/* Success state */
.signup-success {
    padding: 1rem 0 0;
}

.check-icon {
    width: 52px; height: 52px;
    margin-bottom: 0.75rem;
}

.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.5s ease-out 0.2s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.signup-success p {
    font-size: 0.95rem;
    color: var(--ok);
    font-weight: 600;
}

/* ---- Footer ---- */
.footer {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--bg-raised);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4b5a75;
}

.footer-logo { width: 18px; height: 18px; }

.footer p {
    font-size: 0.75rem;
    color: #3d4e67;
}
.footer p + p { margin-top: 0.2rem; }
.footer a { color: #4b5a75; text-decoration: underline; }

.footer-legal {
    margin-top: 1rem;
    font-size: 0.75rem;
}
.footer-legal a { color: #5e6f8a; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-sep { color: #2d3a4f; margin: 0 0.4rem; }

/* ---- Modal (Privacy) ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal.hidden { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-sheet {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 80dvh;
    overflow-y: auto;
}

@media (min-width: 600px) {
    .modal { align-items: center; }
    .modal-sheet { border-radius: var(--radius); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.modal-head h3 { font-size: 1rem; font-weight: 700; }
.modal-x {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.4rem; cursor: pointer; padding: 0.25rem; line-height: 1;
}

.modal-body {
    padding: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.modal-body h4 {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 1rem 0 0.35rem;
}
.modal-body p + p { margin-top: 0.5rem; }
.modal-body strong { color: var(--text); }

.scroll-hint { cursor: pointer; }

/* ---- Tablet ---- */
@media (max-width: 840px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-wide { grid-column: span 2; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .hero { padding: 3.5rem 1.25rem 2.5rem; }
    .hero-sub { font-size: 1.1rem; }
    .logo-svg { width: 42px; height: 42px; }
    .container { padding: 0 1.25rem; }
    .region-label { min-width: 45px; font-size: 0.6rem; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
    .bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .container { padding: 0 1.25rem; }
    .signup-form { flex-direction: column; }
    .signup-form button { width: 100%; }
    .signup-card { padding: 1.75rem 1.25rem; }
    .scroll-hint { margin-top: 1.5rem; }
}
