:root {
    /* Warm-ink palette */
    --bg-color: #0a0812;       /* warm void (purple-tinted near-black) */
    --bg-raised: #13101f;
    --card-bg: #161221;
    --card-bg-hover: #1c1730;
    --text-main: #f5f0ff;      /* slight violet-white */
    --text-muted: #9990a8;
    --text-faint: #6b6377;

    /* Brand */
    --accent-purple: #b06bff;
    --accent-purple-deep: #8a3ff0;
    --accent-glow: rgba(176, 107, 255, 0.35);
    --accent-gold: #e0b667;    /* candle gold */
    --accent-gold-soft: rgba(224, 182, 103, 0.18);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --border-gold: rgba(224, 182, 103, 0.25);

    /* Type scale */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-feature-settings: "ss01", "cv11";
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SITE NAV --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    border-bottom-color: var(--border-subtle);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

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

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

.nav-cta {
    background: #fff;
    color: #000;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px var(--accent-glow);
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-inner { gap: 16px; padding: 10px 16px; }
    .nav-logo { width: 28px; height: 28px; }
    .nav-cta { padding: 7px 14px; font-size: 0.85rem; }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    color: var(--text-main);
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 600;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 18px 0;
}

.eyebrow-accent {
    color: var(--accent-gold);
}

.text-gradient {
    background: linear-gradient(100deg, var(--text-main) 20%, var(--accent-purple) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px auto;
    line-height: 1.55;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 60px auto;
    text-align: center;
    line-height: 1.55;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 100px;
    padding-bottom: 0px;
    text-align: center;
}

/* The "Arcane Glow" Background */
.glow-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(ellipse 75vw 55vh at 50% 38%, var(--accent-glow) 0%, transparent 62%);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* Floating Animation for Icon */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating { animation: float 6s ease-in-out infinite; }


/* --- BUTTONS --- */
.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.store-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-glow);
}


/* --- SHOWCASE (PHONES) --- */
.showcase-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
    perspective: 1000px; /* Adds 3D depth */
}

.device-frame {
    width: 300px;
    aspect-ratio: 9/19.5;
    background: #000;
    border: 8px solid #1a1a1a;
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    /* Bezel shine + soft drop shadow */
    box-shadow:
        0 0 0 2px #333,
        0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.device-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Stagger the phones for visual interest */
.offset-up { transform: translateY(0); }
.offset-down { transform: translateY(40px); }

@media (max-width: 768px) {
    .offset-down { transform: translateY(0); }
    .showcase-grid { gap: 20px; }
}


/* --- SECTION PRIMITIVES --- */
.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    text-align: center;
    margin: 0 auto 20px auto;
    max-width: 820px;
}

/* --- HOW IT WORKS --- */
.hiw-section {
    padding: 140px 0 80px 0;
    position: relative;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hiw-steps::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-highlight) 20%, var(--border-highlight) 80%, transparent);
    z-index: 0;
}

.hiw-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hiw-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bg-raised), var(--bg-color));
    border: 1px solid var(--border-highlight);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 32px rgba(176, 107, 255, 0.08);
}

.hiw-step h3 {
    margin-bottom: 12px;
}

.hiw-step p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hiw-steps { grid-template-columns: 1fr; gap: 56px; }
    .hiw-steps::before { display: none; }
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 100px 0 80px 0;
}

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

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

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

@media (max-width: 900px) {
    .features-grid-primary,
    .features-grid-utility { grid-template-columns: 1fr; }
}

/* THE CARD UI (Matches your App's Cards) */
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 34px 30px;
    border-radius: 20px;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 400px 200px at 50% 0%, rgba(176, 107, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    background-color: var(--card-bg-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-card-utility {
    padding: 24px 24px;
    border-radius: 16px;
}

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

.feature-card-utility p {
    font-size: 0.95rem;
}

.feature-card-utility .card-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-bottom: 14px;
}

.card-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 20px;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: block;
}

/* --- HERO CTA --- */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 24px var(--accent-glow);
    margin-bottom: 8px;
}

.hero-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 44px var(--accent-glow);
}

.hero-cta-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 36px 0;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

/* --- PRICING --- */
.pricing-section {
    padding: 100px 0 120px 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}

.pricing-grid-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
}

.tier-card {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px 28px 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.tier-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
}

.tier-card-gold {
    border-color: var(--border-gold);
    background:
        linear-gradient(180deg, var(--accent-gold-soft) 0%, transparent 35%),
        var(--card-bg);
}

.tier-card-featured {
    border-color: rgba(176, 107, 255, 0.35);
    background:
        linear-gradient(180deg, rgba(176, 107, 255, 0.18) 0%, transparent 40%),
        var(--card-bg);
    box-shadow: 0 0 60px -20px rgba(176, 107, 255, 0.4);
}

.tier-badge {
    position: absolute;
    top: -11px;
    left: 28px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border-highlight);
    color: var(--text-muted);
}

.tier-card-gold .tier-badge {
    color: var(--accent-gold);
    border-color: var(--border-gold);
}

.tier-card-featured .tier-badge {
    color: var(--accent-purple);
    border-color: rgba(176, 107, 255, 0.35);
}

.tier-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.tier-price {
    margin: 0 0 4px 0;
    line-height: 1;
}

.tier-price .price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.tier-price .per {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-left: 6px;
}

.tier-alt {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin: 0 0 18px 0;
}

.tier-summary {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 18px 0 20px 0;
    line-height: 1.5;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.tier-features li {
    position: relative;
    padding-left: 26px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.45;
}

.tier-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b06bff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.tier-card-gold .tier-features li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0b667' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
}

.tier-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tier-cta:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
}

.tier-cta-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.tier-cta-primary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.02);
    box-shadow: 0 0 35px var(--accent-glow);
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .floating { animation: none; }
}


/* --- FOOTER --- */
footer {
    padding: 80px 0 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

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

.copyright { color: var(--text-muted); font-size: 0.9rem; }

.disclaimer {
    font-size: 0.75rem;
    color: #555;
    max-width: 600px;
    margin: 20px auto 0 auto;
    line-height: 1.4;
}

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