/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f6f9f9;
    --bg-alt: #edf1f2;
    --text: #212121;
    --text-muted: #5a6872;
    --accent: #ff5d2a;
    --accent-hover: #e84d1a;
    --sky: #33b5e5;
    --sky-deep: #1a8fc4;
    --card-bg: #ffffff;
    --card-border: rgba(33, 33, 33, 0.06);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111315;
        --bg-alt: #1a1d20;
        --text: #f6f9f9;
        --text-muted: #8a949c;
        --accent: #ff6005;
        --accent-hover: #ff7a2e;
        --card-bg: #1c1f22;
        --card-border: rgba(246, 249, 249, 0.08);
        --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== Layout ===== */
header,
main,
footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
header {
    padding-top: 20px;
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 100%;
    background: var(--bg);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--card-border);
}

nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ===== Hero ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding: 100px 0 120px;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sky-deep);
    background: rgba(51, 181, 229, 0.12);
    margin-bottom: 28px;
}

@media (prefers-color-scheme: dark) {
    .hero-badge {
        background: rgba(51, 181, 229, 0.15);
        color: #5cc8f0;
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-icon {
    position: relative;
    flex-shrink: 0;
}

.app-icon {
    width: 240px;
    height: 240px;
    border-radius: 54px;
    box-shadow:
        0 4px 16px rgba(51, 181, 229, 0.15),
        0 12px 40px rgba(51, 181, 229, 0.1),
        0 0 0 1px rgba(51, 181, 229, 0.05);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 70px;
    background: radial-gradient(circle, rgba(51, 181, 229, 0.2) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 93, 42, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--card-border);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: transparent;
}

/* ===== Features ===== */
.features {
    padding: 80px 0 100px;
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-header h2 em {
    font-style: italic;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(24px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 60ms; }
.feature-card:nth-child(3) { transition-delay: 120ms; }
.feature-card:nth-child(4) { transition-delay: 180ms; }
.feature-card:nth-child(5) { transition-delay: 240ms; }
.feature-card:nth-child(6) { transition-delay: 300ms; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--card-border);
}

@media (prefers-color-scheme: dark) {
    .feature-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--card-border);
    }
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(51, 181, 229, 0.1), rgba(51, 181, 229, 0.05));
    color: var(--sky);
    margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
    .feature-icon {
        background: linear-gradient(135deg, rgba(51, 181, 229, 0.15), rgba(51, 181, 229, 0.05));
    }
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Native Section ===== */
.native-section {
    padding: 80px 0 100px;
    max-width: 1120px;
    margin: 0 auto;
}

.native-content {
    background: linear-gradient(135deg, #1a8fc4 0%, #33b5e5 50%, #4ac5f0 100%);
    border-radius: 24px;
    padding: 72px 64px;
    color: #fff;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.native-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.native-content::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.native-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    margin-bottom: 24px;
}

.native-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 480px;
}

.native-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 540px;
    margin-bottom: 32px;
}

.native-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    max-width: 520px;
}

.native-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.native-list svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 40px 0 120px;
    max-width: 1120px;
    margin: 0 auto;
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-card h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-card > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto 32px;
}

.notify-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 240px;
    background: var(--bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--sky);
}

.input-prefix {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 4px;
    user-select: none;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.cta-footnote {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 16px;
    opacity: 0.7;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 24px;
    margin-top: 0;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-proto {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-proto a {
    color: var(--sky);
    text-decoration: none;
}

.footer-proto a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 0 80px;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .app-icon {
        width: 180px;
        height: 180px;
        border-radius: 40px;
    }

    .icon-glow {
        width: 220px;
        height: 220px;
        border-radius: 55px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .native-content {
        padding: 48px 32px;
    }

    .native-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .app-icon {
        width: 140px;
        height: 140px;
        border-radius: 32px;
    }

    .icon-glow {
        width: 180px;
        height: 180px;
        border-radius: 45px;
    }

    .native-content {
        padding: 40px 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-form .btn {
        width: 100%;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(51, 181, 229, 0.25);
    color: var(--text);
}
