@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

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

:root {
    --deep-navy: #0a1628;
    --navy-mid: #0f2248;
    --medium-blue: #1a4080;
    --accent-blue: #2673d9;
    --accent-light: #5a9ff5;
    --red: #e64040;
    --green: #33cc73;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #edf2f8;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.3);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--deep-navy);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ---- AMBIENT BACKGROUND ---- */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(26, 64, 128, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(38, 115, 217, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- GRAIN OVERLAY ---- */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    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 WRAPPER ---- */
.page-content {
    position: relative;
    z-index: 2;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #fff;
}

/* ---- NAV ---- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 28px 0;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-logo:hover {
    text-decoration: none;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 450;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* ---- HERO ---- */
.hero {
    text-align: center;
    padding: 120px 28px 80px;
    max-width: 680px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 58px);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #fff;
}

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

.hero .tagline {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 44px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 350;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--deep-navy);
    padding: 15px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
    color: var(--deep-navy);
    text-decoration: none;
}
.hero-cta svg {
    width: 20px;
    height: 20px;
}

/* ---- DIVIDER ---- */
.divider {
    max-width: 960px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--card-border);
}

/* ---- FEATURES ---- */
.features {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 28px;
}

.features-header {
    text-align: center;
    margin-bottom: 56px;
}

.features-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 36px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.features-header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 350;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
}

.feature-cell {
    background: var(--deep-navy);
    padding: 36px 32px;
}

.feature-cell .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(38, 115, 217, 0.1);
    border: 1px solid rgba(38, 115, 217, 0.15);
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 18px;
}

.feature-cell h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.feature-cell p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 350;
}

/* ---- SHOWCASE ---- */
.showcase {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    padding: 36px 0;
    overflow: visible;
}

/* Normal: text right-aligned toward phone, phone tilted right */
.showcase-text {
    justify-self: end;
    padding-right: 40px;
}

.showcase-phone {
    display: flex;
    justify-content: center;
    perspective: 800px;
}

.showcase-phone img {
    width: 250px;
    border-radius: 28px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        -4px 0 30px rgba(38, 115, 217, 0.08);
    transform: rotate(-3deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-phone img:hover {
    transform: rotate(-1deg) translateY(-4px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        -6px 0 36px rgba(38, 115, 217, 0.12);
}

/* Reversed: phone on left tilted opposite, text hugs from right */
.showcase-item--reverse {
    direction: rtl;
}
.showcase-item--reverse > * {
    direction: ltr;
}

.showcase-item--reverse .showcase-text {
    justify-self: start;
    padding-right: 0;
    padding-left: 40px;
}

.showcase-item--reverse .showcase-phone img {
    transform: rotate(3deg);
}

.showcase-item--reverse .showcase-phone img:hover {
    transform: rotate(1deg) translateY(-4px);
}

.showcase-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    background: rgba(38, 115, 217, 0.1);
    border: 1px solid rgba(38, 115, 217, 0.15);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.showcase-text h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.showcase-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 350;
    max-width: 380px;
}

@media (max-width: 768px) {
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 32px 0;
    }

    .showcase-item--reverse {
        direction: ltr;
    }

    .showcase-text {
        justify-self: center;
        padding-right: 0;
    }

    .showcase-item--reverse .showcase-text {
        padding-left: 0;
    }

    .showcase-text p {
        max-width: 100%;
        margin: 0 auto;
    }

    .showcase-phone img {
        width: 200px;
        transform: rotate(-2deg);
    }

    .showcase-item--reverse .showcase-phone img {
        transform: rotate(2deg);
    }
}

/* ---- PRICING ---- */
.pricing {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 80px 28px;
}

.pricing h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 36px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #fff;
}

.pricing .subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 36px;
    font-weight: 350;
}

.pricing-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 32px 28px;
    flex: 1;
    max-width: 240px;
    text-align: left;
    transition: border-color 0.2s;
}
.price-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.price-card.highlight {
    border-color: var(--accent-blue);
    background: rgba(38, 115, 217, 0.06);
}

.price-card .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.price-card .price {
    font-family: var(--font-display);
    font-size: 34px;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.price-card .period {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 350;
    margin-bottom: 14px;
}

.price-card .note {
    font-size: 13px;
    color: var(--green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---- FOOTER ---- */
footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 28px 48px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .footer-copy {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 350;
}

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

footer .footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
footer .footer-links a:hover {
    color: var(--text-primary);
}

/* ---- LEGAL PAGES ---- */
.legal {
    max-width: 660px;
    margin: 0 auto;
    padding: 72px 28px 100px;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: #fff;
}

.legal .last-updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 48px;
    font-weight: 350;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-top: 44px;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.legal h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal p,
.legal li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
    font-weight: 350;
}

.legal ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 6px;
}

.legal strong {
    color: var(--text-primary);
    font-weight: 550;
}

.legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(90, 159, 245, 0.4);
}
.legal a:hover {
    text-decoration-color: rgba(90, 159, 245, 0.8);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.7s ease-out both;
}

.fade-up-1 { animation-delay: 0s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        max-width: 100%;
        width: 100%;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav { padding: 24px 20px 0; }
    .hero { padding: 80px 20px 60px; }
    .features { padding: 60px 20px; }
    .pricing { padding: 60px 20px; }
    .legal { padding: 48px 20px 80px; }
    footer { padding: 32px 20px 40px; }
}
