:root {
    --bg-color: #0c0d11;
    --card-bg: rgba(25, 27, 34, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #f0f0f2;
    /* Soft cinematic white glow */
    --accent-glow: rgba(255, 255, 255, 0.03);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20vw;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(12, 13, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button,
.primary-btn {
    background: var(--text-main);
    color: #000 !important;
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.cta-button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 15, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 32px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    margin: 4rem 5%;
    min-height: 60vh;
}

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

.main-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    color: var(--accent);
    /* For a dynamic gradient */
    background: linear-gradient(135deg, #ffffff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.secondary-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 45%;
}

.hero-img {
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.accent-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent-glow);
    filter: blur(60px);
    z-index: 1;
    border-radius: 50%;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Layout resets for typography */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-img-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
    background: #040405;
    /* Deep rich black */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem 0 2rem;
}

.card-img-wrapper img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 12px 12px 0 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover .card-img-wrapper img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Showcase Section */
.showcase-section {
    padding: 6rem 5%;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.showcase-row:last-child {
    margin-bottom: 0;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.showcase-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 90%;
}

.showcase-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.showcase-img {
    max-width: 320px;
    width: 100%;
    border-radius: 35px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Themes Section */
.themes-section {
    margin: 4rem 5%;
    padding: 4rem;
}

.themes-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.themes-text {
    flex: 1;
}

.themes-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.themes-visuals {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.theme-img {
    position: absolute;
    max-width: 250px;
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0.5s;
}

.theme-img:nth-child(1) {
    transform: translateX(-140px) scale(0.85) rotate(-6deg);
    z-index: 1;
}

.theme-img:nth-child(2) {
    transform: translateX(0) scale(1) rotate(0deg);
    z-index: 3;
}

.theme-img:nth-child(3) {
    transform: translateX(140px) scale(0.85) rotate(6deg);
    z-index: 2;
}

.theme-img:hover {
    transform: scale(1.08) translateY(-15px) rotate(0deg) !important;
    z-index: 10 !important;
}

/* Support Section */
.support-section {
    padding: 4rem 5% 8rem 5%;
    display: flex;
    justify-content: center;
}

.support-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
}

.support-text {
    flex: 1;
}

.support-text .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.support-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 5%;
    background: radial-gradient(circle at center, rgba(25, 27, 34, 0.8) 0%, transparent 70%);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.large-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    margin-top: 4rem;
    background: #08090b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.copyright {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .hero {
        flex-direction: column;
        padding: 2rem 5%;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .hero-image-container {
        max-width: 80%;
    }

    .themes-layout {
        flex-direction: column;
        text-align: center;
    }

    .themes-text .section-title {
        text-align: center;
    }

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

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .support-container {
        flex-direction: column;
        padding: 2.5rem 2rem;
        gap: 2.5rem;
        text-align: center;
    }

    .support-text .section-title {
        text-align: center;
    }

    .submit-btn {
        align-self: center;
        width: 100%;
    }
}
/* ── Co-Reading Rooms Section ─────────────────────────────────────────── */
.coread-section {
    margin: 2rem 5% 4rem;
    padding: 5rem 4rem;
    background: rgba(25, 27, 34, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.coread-inner {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.coread-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coread-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    width: fit-content;
}

.coread-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.coread-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
}

.coread-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.coread-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    position: relative;
}

.coread-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

.coread-image-wrap {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coread-img {
    width: 260px;
    border-radius: 32px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.coread-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

@media (max-width: 768px) {
    .coread-section {
        padding: 3rem 1.5rem;
        margin: 1.5rem 4% 3rem;
    }

    .coread-inner {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }

    .coread-badge {
        align-self: center;
    }

    .coread-desc {
        max-width: 100%;
    }

    .coread-list li {
        text-align: left;
    }

    .coread-img {
        width: 220px;
    }
}

/* ── Hero Badge ──────────────────────────────────────────────────────── */
.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

/* ── iPhone Mockup ───────────────────────────────────────────────────── */
.iphone-duo {
    position: relative;
    width: 340px;
    height: 520px;
}

.iphone-mockup {
    position: absolute;
    width: 220px;
    background: #1c1c1e;
    border-radius: 44px;
    border: 1.5px solid rgba(255,255,255,0.12);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.9),
        0 40px 80px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 14px 10px 18px;
    overflow: visible;
}

.iphone-front {
    bottom: 0;
    right: 0;
    z-index: 2;
}

.iphone-back {
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-6deg);
    opacity: 0.85;
}

/* Dynamic Island */
.iphone-island {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 26px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Screen */
.iphone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    display: block;
    border-radius: 32px;
}

/* Side buttons */
.iphone-btn {
    position: absolute;
    background: #2c2c2e;
    border-radius: 3px;
}

.iphone-btn-right {
    right: -3px;
    top: 120px;
    width: 3px;
    height: 70px;
}

.iphone-btn-left1 {
    left: -3px;
    top: 100px;
    width: 3px;
    height: 40px;
}

.iphone-btn-left2 {
    left: -3px;
    top: 155px;
    width: 3px;
    height: 40px;
}

@media (max-width: 768px) {
    .iphone-duo {
        width: 260px;
        height: 420px;
    }

    .iphone-mockup {
        width: 180px;
    }
}

/* ── Hero Copy & Stats ───────────────────────────────────────────────── */
.hero-copy {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 90%;
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 0.1rem;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-copy {
        max-width: 100%;
    }

    .hero-stats {
        gap: 1rem;
    }
}
