@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg: #f3f8ff;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --text: #0b1f4d;
    --muted: #5a6a8a;
    --border: #e4eaf4;
    --accent: #0b1f4d;
    --accent-dark: #1a3a7c;
    --accent-soft: #e8f0ff;
    --gold: #d4af37;
    --shadow: 0 4px 24px rgba(11, 31, 77, 0.07);
    --shadow-soft: 0 2px 12px rgba(11, 31, 77, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f8ff;
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   TOP NAVBAR
========================= */

.top-navbar {
    width: 100%;
    min-height: 72px;
    background: #0b1f4d;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: 0 4px 24px rgba(11, 31, 77, 0.22);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: min(92%, 1180px);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4af37;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

/* =========================
   FEATURES HERO
========================= */

.features-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 54px;
    text-align: center;
}

.features-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 920px;
    height: 920px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.18) 0%,
        rgba(37, 99, 235, 0.08) 35%,
        rgba(37, 99, 235, 0) 72%
    );
    pointer-events: none;
}

.features-hero .hero-wrap {
    position: relative;
    z-index: 1;
    width: min(92%, 1180px);
    margin: 0 auto;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.features-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.08;
    color: #0f172a;
    max-width: 980px;
    margin: 0 auto 18px;
}

.features-hero p {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--muted);
}

/* =========================
   FEATURE SECTION
========================= */

.features-section {
    width: min(92%, 1180px);
    margin: 0 auto;
    padding: 18px 0 60px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: #111827;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.feature-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.feature-card li {
    position: relative;
    padding-left: 22px;
    color: #374151;
    font-size: 0.95rem;
}

.feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* =========================
   HIGHLIGHT SECTION
========================= */

.highlight-section {
    width: min(92%, 1180px);
    margin: 0 auto;
    padding: 6px 0 58px;
}

.highlight-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 42px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.highlight-box::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 72%);
}

.highlight-content {
    position: relative;
    z-index: 1;
}

.highlight-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    margin-bottom: 14px;
    color: #0f172a;
}

.highlight-content p {
    color: var(--muted);
    margin-bottom: 18px;
}

.highlight-points {
    display: grid;
    gap: 12px;
}

.highlight-point {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    color: #374151;
    box-shadow: var(--shadow-soft);
}

.highlight-visual {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.visual-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
}

.visual-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.visual-card {
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.visual-card strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

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

.visual-lines {
    display: grid;
    gap: 10px;
}

.visual-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dbeafe, #eef4ff);
}

.visual-line.short {
    width: 55%;
}

.visual-line.mid {
    width: 76%;
}

.visual-line.full {
    width: 100%;
}

/* =========================
   CTA
========================= */

.final-cta {
    width: min(92%, 1180px);
    margin: 0 auto 80px;
}

.cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 44px 28px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    color: #0f172a;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 22px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .features-grid,
    .highlight-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .features-hero {
        padding-top: 64px;
    }
}

@media (max-width: 560px) {
    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .btn {
        min-height: 42px;
        padding: 0 16px;
    }

    .feature-card,
    .highlight-box,
    .highlight-visual,
    .cta-box {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================
   FEATURES PAGE LAYOUT
========================= */

.features-page {
    width: min(92%, 1180px);
    margin: 0 auto;
    padding: 0 0 80px;
}

.features-hero {
    padding: 64px 0 40px;
    text-align: center;
}

.features-kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.features-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    color: #0f172a;
    max-width: 860px;
    margin: 0 auto 16px;
}

.features-subtext {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 28px;
}

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

.primary-cta-btn,
.secondary-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.22s ease;
}

.primary-cta-btn {
    background: #0b1f4d;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 31, 77, 0.2);
}

.primary-cta-btn:hover {
    background: #1a3a7c;
    transform: translateY(-1px);
}

.secondary-cta-btn {
    background: rgba(11, 31, 77, 0.07);
    color: #0b1f4d;
    border: 1px solid rgba(11, 31, 77, 0.14);
}

.secondary-cta-btn:hover {
    background: rgba(11, 31, 77, 0.12);
}

/* =========================
   FEATURE GRID SECTION
========================= */

.feature-grid-section {
    padding: 20px 0 48px;
}

.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #0f172a;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtext {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

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

/* =========================
   PLANS SECTION
========================= */

.compare-section {
    padding: 12px 0 80px;
}

/* =========================
   SIDE-BY-SIDE PLAN CARDS
========================= */

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 860px;
    margin: 36px auto 0;
}

/* ── Shared card base ── */
.pricing-card {
    border-radius: 22px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ── Free card ── */
.pricing-card-feature {
    background: #ffffff;
    border: 1.5px solid #e2eaf8;
    box-shadow: 0 4px 20px rgba(11, 31, 77, 0.07);
}

/* ── Premium card ── */
.pricing-card-premium {
    background: #0b1f4d;
    border: 1.5px solid #1a3a7c;
    box-shadow: 0 8px 32px rgba(11, 31, 77, 0.28);
}

.plan-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37;
    color: #0b1f4d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Tier label ── */
.plan-tier-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pricing-card-feature .plan-tier-label {
    color: #5a6a8a;
}

.pricing-card-premium .plan-tier-label {
    color: #d4af37;
}

/* ── Price ── */
.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-card-feature .plan-price {
    color: #0b1f4d;
}

.pricing-card-premium .plan-price {
    color: #ffffff;
}

.plan-period {
    font-size: 1rem;
    font-weight: 500;
}

.pricing-card-feature .plan-period {
    color: #5a6a8a;
}

.pricing-card-premium .plan-period {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Description ── */
.plan-desc {
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.55;
}

.pricing-card-feature .plan-desc {
    color: #5a6a8a;
}

.pricing-card-premium .plan-desc {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Feature list ── */
.plan-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
    flex: 1;
}

.plan-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    line-height: 1.4;
}

.plan-feature-list li i {
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Free card rows */
.pricing-card-feature .feat-yes {
    color: #111827;
}

.pricing-card-feature .feat-yes i {
    color: #16a34a;
}

.pricing-card-feature .feat-no {
    color: #c0c8d8;
}

.pricing-card-feature .feat-no i {
    color: #dde3ee;
}

/* Premium card rows */
.pricing-card-premium .feat-yes {
    color: rgba(255, 255, 255, 0.82);
}

.pricing-card-premium .feat-yes i {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-card-premium .feat-gold {
    color: #ffffff;
}

.pricing-card-premium .feat-gold i {
    color: #d4af37;
}

/* ── CTA button ── */
.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.22s ease;
    margin-top: auto;
}

.plan-cta-free {
    background: #f3f8ff;
    color: #0b1f4d;
    border: 1.5px solid #c8d8ef;
}

.plan-cta-free:hover {
    background: #e4edf8;
    border-color: #a0b8d8;
}

.plan-cta-premium {
    background: #d4af37;
    color: #0b1f4d;
    border: 1.5px solid #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.plan-cta-premium:hover {
    background: #c9a432;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

/* login-status helper */
.login-status {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .compare-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .pricing-card-premium {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 32px 24px 28px;
    }
}