/* === Base === */
:root {
    --accent: #5500DF;
    --accent-light: #7B33FF;
    --accent-glow: rgba(85, 0, 223, 0.15);
    --accent-bg: #F3EDFF;
    --teal: #3BA8A8;
    --plum: #9B4D8C;
    --bg: #FAFAFA;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --card-bg: #FFFFFF;
    --radius: 20px;
    --radius-sm: 12px;
}

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

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Nav === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 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.1rem;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0 24px 16px;
    gap: 12px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(170deg, #F8F0FF 0%, #EDE4FF 30%, #E8F4F8 60%, #FFF5F9 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--teal);
    bottom: -10%;
    left: -10%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--plum);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
}

.hero-logo {
    border-radius: 22.37%;
    box-shadow: 0 20px 60px rgba(85, 0, 223, 0.2), 0 0 0 1px rgba(255,255,255,0.5);
    margin-bottom: 32px;
    animation: logoIn 1s ease-out;
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-badges {
    animation: fadeUp 0.8s ease-out 0.6s both;
    margin-bottom: 16px;
}

.badge-link img {
    transition: transform 0.2s;
}

.badge-link:hover img {
    transform: scale(1.05);
}

.hero-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeUp 0.8s ease-out 0.7s both;
}

.hero-platforms .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    opacity: 0.4;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 48px;
}

.section-features,
.section-steps {
    text-align: center;
}

/* === Library split === */
.section-library {
    background: var(--card-bg);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 16px;
}

.split-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.feature-list .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Phone screenshot */
.split-visual {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    background: #1A1A2E;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(85, 0, 223, 0.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: rotate(2deg);
}

.phone-screenshot {
    width: 100%;
    display: block;
    border-radius: 26px;
}

/* === Features grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card:nth-child(2).revealed { transition-delay: 0.08s; }
.feature-card:nth-child(3).revealed { transition-delay: 0.16s; }
.feature-card:nth-child(4).revealed { transition-delay: 0.24s; }
.feature-card:nth-child(5).revealed { transition-delay: 0.32s; }
.feature-card:nth-child(6).revealed { transition-delay: 0.4s; }
.feature-card:nth-child(7).revealed { transition-delay: 0.48s; }
.feature-card:nth-child(8).revealed { transition-delay: 0.56s; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}


.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === Steps === */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
}

.step {
    flex: 1;
    max-width: 220px;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(30px);
}

.step.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step:nth-child(3).revealed { transition-delay: 0.15s; }
.step:nth-child(5).revealed { transition-delay: 0.3s; }
.step:nth-child(7).revealed { transition-delay: 0.45s; }

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-bg), var(--accent), var(--accent-bg));
    margin-top: 26px;
    flex-shrink: 0;
    border-radius: 1px;
}

/* === Sync banner === */
.sync-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 40px 48px;
    background: linear-gradient(135deg, #EDE4FF 0%, #E8F4F8 100%);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(30px);
}

.sync-banner.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sync-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: var(--accent);
}

.sync-icon svg {
    width: 100%;
    height: 100%;
}

.sync-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.sync-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Privacy === */
.section-privacy {
    background: var(--card-bg);
}

.privacy-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

.privacy-content.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.privacy-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, var(--accent-bg), #F0F7F7);
    border-radius: var(--radius-sm);
    padding: 28px;
    margin-bottom: 36px;
    border-left: 4px solid var(--accent);
}

.privacy-shield {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--accent);
}

.privacy-highlight p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.privacy-content h3 {
    font-size: 1.15rem;
    margin: 28px 0 10px;
    color: var(--text);
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.privacy-content ul {
    list-style: none;
    margin-bottom: 12px;
}

.privacy-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.privacy-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* === Contact === */
.section-contact {
    text-align: center;
}

.contact-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-logo {
    border-radius: 20px;
    margin-bottom: 20px;
}

.contact-card h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-email {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(85, 0, 223, 0.3);
}

.contact-small {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-brand img {
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card-accent {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .split-visual {
        order: -1;
    }
    .phone-frame {
        width: 240px;
        transform: rotate(0deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card-accent {
        grid-column: span 1;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .step-connector {
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, var(--accent-bg), var(--accent), var(--accent-bg));
        margin: 0;
    }
    .step {
        max-width: 300px;
    }

    .sync-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .privacy-highlight {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-card {
        padding: 32px 24px;
    }

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

@media (max-width: 480px) {
    .section { padding: 64px 0; }
    .hero-content { padding: 100px 16px 60px; }
    .section-title { font-size: 1.6rem; }
}
