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

:root {
    --bg: #070C16;
    --bg-2: #0D1525;
    --card: rgba(255, 255, 255, 0.045);
    --card-border: rgba(255, 255, 255, 0.09);
    --accent: #2F86FF;
    --accent-glow: rgba(47, 134, 255, 0.35);
    --accent-light: #5BA3FF;
    --text: #E8EDF7;
    --text-2: #8B9CB8;
    --text-3: #4C607A;
    --moon: #E0B846;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

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

/* ── BACKGROUND AMBIENCE ──────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(47, 134, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(47, 134, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(7, 12, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-logo-wordmark {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-light);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(47, 134, 255, 0.3);
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: rgba(47, 134, 255, 0.12);
    border-color: rgba(47, 134, 255, 0.6);
}

/* ── LAYOUT ───────────────────────────────────────────── */
main {
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 24px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(47, 134, 255, 0.1);
    border: 1px solid rgba(47, 134, 255, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin: 0 auto 36px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
}

.hero-app-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-h1 {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 30%, #8BAEE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    color: var(--text-2);
    max-width: 560px;
    margin-bottom: 44px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #4A99FF;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--text);
}

.hero-platforms {
    margin-top: 64px;
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-platforms::before,
.hero-platforms::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
    max-width: 80px;
}

/* ── FEATURES GRID ────────────────────────────────────── */
.features-section {
    padding-top: 0;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 56px;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(47, 134, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* icon tints */
.tint-blue {
    background: rgba(47, 134, 255, 0.15);
    color: #5BA3FF;
}

.tint-green {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.tint-orange {
    background: rgba(255, 159, 10, 0.15);
    color: #FF9F0A;
}

.tint-purple {
    background: rgba(175, 82, 222, 0.15);
    color: #AF52DE;
}

.tint-teal {
    background: rgba(90, 200, 250, 0.15);
    color: #5AC8FA;
}

/* ── ACCURACY HIGHLIGHT ───────────────────────────────── */
.highlight-section {
    padding-top: 0;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(47, 134, 255, 0.08) 0%, rgba(13, 29, 71, 0.4) 100%);
    border: 1px solid rgba(47, 134, 255, 0.2);
    border-radius: 24px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    gap: 56px;
}

.highlight-text {
    flex: 1;
}

.highlight-text .section-eyebrow {
    margin-bottom: 12px;
}

.highlight-text h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight-text p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 400px;
}

.highlight-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated clock face */
.clock-face {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(47, 134, 255, 0.4);
    background: rgba(7, 12, 22, 0.8);
    position: relative;
    box-shadow: 0 0 40px rgba(47, 134, 255, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.clock-face::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hour markers */
.clock-marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    top: 10px;
    transform-origin: 50% 70px;
    margin-left: -1px;
}

.clock-marker.major {
    height: 14px;
    width: 2.5px;
    background: rgba(255, 255, 255, 0.6);
    top: 8px;
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 2px;
}

.hand-hour {
    width: 3px;
    height: 46px;
    margin-left: -1.5px;
    background: var(--text);
    animation: rotateHour 43200s linear infinite;
}

.hand-min {
    width: 2px;
    height: 58px;
    margin-left: -1px;
    background: var(--text);
    animation: rotateMin 3600s linear infinite;
}

.hand-sec {
    width: 1.5px;
    height: 64px;
    margin-left: -0.75px;
    background: var(--accent);
    animation: rotateSec 60s steps(60, end) infinite;
}

.clock-center {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes rotateHour {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateMin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateSec {
    to {
        transform: rotate(360deg);
    }
}

/* ── BETA CTA ─────────────────────────────────────────── */
.beta-section {
    text-align: center;
}

.beta-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 64px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.beta-card .hero-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 28px;
}

.beta-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.beta-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.beta-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-3);
}

/* ── EMAIL FORM ──────────────────────────────────────── */
.email-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.email-form input[type="email"]::placeholder {
    color: var(--text-3);
}

.email-form input[type="email"]:focus {
    border-color: rgba(47, 134, 255, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.email-form button {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.email-form button:hover {
    background: #4A99FF;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.email-form button:active {
    transform: translateY(0);
}

.email-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.email-form-success {
    font-size: 15px;
    color: #34C759;
    font-weight: 500;
}

.email-form-error {
    margin-top: 10px;
    font-size: 13px;
    color: #FF453A;
}

@media (max-width: 700px) {
    .email-form {
        flex-direction: column;
    }
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--card-border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
}

footer .footer-logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    overflow: hidden;
}

footer .footer-logo-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 700px) {
    nav {
        padding: 0 20px;
    }

    .highlight-card {
        flex-direction: column;
        padding: 40px 28px;
        gap: 36px;
        text-align: center;
    }

    .highlight-text p {
        max-width: 100%;
    }

    .highlight-visual {
        width: 140px;
        height: 140px;
    }

    .clock-face {
        width: 120px;
        height: 120px;
    }

    .clock-marker {
        transform-origin: 50% 53px;
    }

    .clock-marker.major {
        transform-origin: 50% 53px;
    }

    .hand-hour {
        height: 34px;
    }

    .hand-min {
        height: 44px;
    }

    .hand-sec {
        height: 48px;
    }

    .beta-card {
        padding: 44px 24px;
    }

    section {
        padding: 60px 20px;
    }
}