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

:root {
    --bg-color: #0b081c;
    --card-bg: rgba(28, 25, 52, 0.55);
    --card-border: rgba(90, 75, 211, 0.18);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #5a4bd3;
    --accent-soft: rgba(90, 75, 211, 0.15);
    --accent-glow: rgba(90, 75, 211, 0.35);
    --success: #2eb36b;
    --success-soft: rgba(46, 179, 107, 0.15);
    --warning: #f59e0b;
    --danger: #dc3c3c;
    
    /* Cairn Harmony 3-Stone Identity Tokens */
    --brand-indigo: #5a4bd3;   /* Mind & Health (Top Stone) */
    --brand-coral: #ff6f61;    /* Relationships & Connections (Middle Stone) */
    --brand-teal: #2eb36b;     /* Money & Time Foundation (Bottom Stone) */
    --brand-amber: #d98324;
    --brand-gold: #f59e0b;
    
    --sunset-gradient: linear-gradient(135deg, #5a4bd3 0%, #ff6f61 50%, #d98324 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --bg-gradient: radial-gradient(circle at top center, #1e1554 0%, #080614 65%, #04030a 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--sunset-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 20px 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 8, 28, 0.75);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.cairn-logo-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .cairn-logo-svg {
    transform: scale(1.08) translateY(-1px);
}

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

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

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

.lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 70px 0 60px 0;
    text-align: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: var(--accent-soft);
    color: #c4b5fd;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(90, 75, 211, 0.35);
    box-shadow: 0 4px 12px rgba(90, 75, 211, 0.15);
}

.hero h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px auto;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 54px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--sunset-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(90, 75, 211, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 71, 156, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0b081c;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* iPhone 16 Pro Native Chassis & Screen */
.mockup-container {
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 120%;
    background: radial-gradient(circle, rgba(90, 75, 211, 0.35) 0%, rgba(255, 111, 97, 0.18) 35%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.mockup-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mockup-tab-pill {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-tab-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.mockup-tab-pill.active {
    background: var(--sunset-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(90, 75, 211, 0.4);
}

.iphone-chassis {
    width: 100%;
    background: #000;
    border-radius: 54px;
    border: 4px solid #322b54;
    box-shadow: 
        0 0 0 2px #151128,
        0 30px 80px rgba(0, 0, 0, 0.85),
        0 0 60px rgba(90, 75, 211, 0.3);
    padding: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.iphone-screen {
    flex: 1;
    background: #000;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.mockup-real-screen {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 44px;
    transition: opacity 0.2s ease-in-out;
}

.mockup-authenticity-badge {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(46, 179, 107, 0.1);
    border: 1px solid rgba(46, 179, 107, 0.25);
    padding: 6px 14px;
    border-radius: 99px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Free Money Wedge Banner */
.free-hook {
    background: linear-gradient(135deg, rgba(46, 179, 107, 0.12) 0%, rgba(28, 25, 52, 0.6) 100%);
    border: 1px solid rgba(46, 179, 107, 0.35);
    border-radius: 24px;
    padding: 36px 40px;
    margin: 60px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.free-hook-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success-soft);
    color: #86efac;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(46, 179, 107, 0.4);
}

.free-hook h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.free-hook p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    line-height: 1.6;
}

.free-hook-action {
    flex-shrink: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 14px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 75, 211, 0.4);
    box-shadow: 0 14px 28px rgba(90, 75, 211, 0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 22px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.card-tag {
    margin-top: 16px;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* Pillar colors */
.card-money .card-icon { background: rgba(46, 179, 107, 0.15); color: var(--brand-teal); }
.card-time .card-icon { background: rgba(90, 75, 211, 0.15); color: var(--brand-indigo); }
.card-relationship .card-icon { background: rgba(255, 111, 97, 0.15); color: var(--brand-coral); }
.card-health .card-icon { background: rgba(192, 71, 156, 0.15); color: #c0479c; }
.card-goal .card-icon { background: rgba(217, 131, 36, 0.15); color: var(--brand-amber); }

/* Cross-Pillar Harmony Showcase */
.harmony-section {
    padding: 60px 0 100px 0;
}

.harmony-banner {
    background: linear-gradient(135deg, rgba(90, 75, 211, 0.15) 0%, rgba(255, 111, 97, 0.12) 50%, rgba(46, 179, 107, 0.1) 100%);
    border: 1px solid rgba(168, 154, 246, 0.25);
    border-radius: 28px;
    padding: 50px 44px;
    position: relative;
    overflow: hidden;
}

.harmony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.harmony-item {
    background: rgba(18, 14, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    transition: transform 0.2s ease;
}

.harmony-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.harmony-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.tag-money-mood {
    background: rgba(255, 111, 97, 0.2);
    color: #fca5a5;
}

.tag-time-goal {
    background: rgba(90, 75, 211, 0.25);
    color: #c4b5fd;
}

.tag-isolation {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.harmony-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.harmony-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Privacy & Deterministic Math Section */
.privacy-wedge {
    background: linear-gradient(135deg, rgba(28, 25, 52, 0.7) 0%, rgba(11, 8, 28, 0.85) 100%);
    border: 1px solid rgba(168, 154, 246, 0.2);
    border-radius: 28px;
    padding: 60px 48px;
    margin-bottom: 90px;
}

.privacy-content {
    max-width: 750px;
}

.privacy-content h2 {
    font-size: 34px;
    margin-bottom: 16px;
}

.privacy-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.privacy-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.priv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.priv-item span {
    color: var(--success);
}

/* Pricing Grid (3 Columns) */
.pricing {
    padding: 90px 0;
    background: rgba(90, 75, 211, 0.03);
}

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

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: rgba(90, 75, 211, 0.6);
    box-shadow: 0 16px 36px rgba(90, 75, 211, 0.2);
    background: linear-gradient(180deg, rgba(38, 32, 74, 0.7) 0%, rgba(22, 19, 46, 0.7) 100%);
}

.price-card.featured::after {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--sunset-gradient);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(192, 71, 156, 0.4);
}

.price-card.lifetime {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12);
    background: linear-gradient(180deg, rgba(42, 34, 46, 0.7) 0%, rgba(20, 16, 32, 0.7) 100%);
}

.price-card.lifetime::after {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gold-gradient);
    color: #0b081c;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.price-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.price-card .price-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 38px;
}

.price-card .price {
    font-size: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1;
}

.price-card .price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-features-list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.price-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.5;
}

.price-features-list li span.check {
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(90, 75, 211, 0.35);
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 40px 0;
    background-color: #060410;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

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

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

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

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

/* Legal view stylesheet (for privacy / terms pages) */
.legal-wrapper {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 24px;
}

.legal-wrapper h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.legal-wrapper .date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-wrapper h2 {
    font-size: 22px;
    margin: 32px 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.legal-wrapper p {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.legal-wrapper ul {
    margin-left: 24px;
    margin-bottom: 24px;
    color: #cbd5e1;
}

.legal-wrapper li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 40px auto 0 auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 320px;
    }
    .free-hook {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .privacy-wedge {
        padding: 40px 24px;
    }
    .harmony-banner {
        padding: 36px 20px;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
