/* === BrainWeave — indigo + teal palette for visual thinking === */
:root {
    --bg: #f5f7fc;              /* soft cool white */
    --bg-alt: #eef1f9;          /* deeper cool blue-grey */
    --card: #ffffff;
    --border: rgba(30, 35, 70, 0.08);
    --text: #1a1f3a;            /* deep ink */
    --text-muted: #5e6480;
    --text-light: #aab0c5;

    --indigo: #5256d4;          /* primary */
    --indigo-deep: #3b40b6;
    --indigo-soft: #e8e9ff;

    --teal: #1a8c6e;            /* secondary */
    --teal-deep: #0f6b53;
    --teal-soft: #dff5ee;

    --violet: #7c3aed;
    --violet-soft: #f1e7ff;

    --orange: #d96b2c;
    --orange-soft: #ffeede;

    --radius: 22px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --shadow: 0 2px 10px rgba(30, 35, 70, 0.05);
    --shadow-card: 0 1px 3px rgba(30, 35, 70, 0.04), 0 8px 28px rgba(30, 35, 70, 0.07);
    --shadow-lg: 0 12px 40px rgba(30, 35, 70, 0.14);

    --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--indigo); }

/* === Buttons === */
.btn-primary {
    display: inline-block;
    font-size: 0.95rem; font-weight: 600;
    padding: 13px 26px; border-radius: 999px;
    background: var(--indigo); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 6px 18px rgba(82, 86, 212, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--indigo-deep);
    box-shadow: 0 10px 24px rgba(82, 86, 212, 0.35);
}
.btn-primary.btn-on-dark {
    background: #fff; color: var(--indigo);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-primary.btn-on-dark:hover { background: #f0f1ff; color: var(--indigo-deep); }

.btn-secondary {
    display: inline-block;
    font-size: 0.95rem; font-weight: 600;
    padding: 12px 24px; border-radius: 999px;
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    background: var(--indigo-soft);
}

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245, 247, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-muted); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: var(--indigo-soft); color: var(--indigo); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.85rem; font-weight: 600;
    padding: 9px 20px; border-radius: 999px;
    background: var(--indigo); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--indigo-deep); box-shadow: 0 6px 18px rgba(82, 86, 212, 0.35); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; background: transparent; border: 0; cursor: pointer; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
}

/* === Hero === */
.hero {
    padding: 148px 0 72px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; top: -180px; right: -200px;
    width: 580px; height: 580px; border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 86, 212, 0.22), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; bottom: -140px; left: -160px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 140, 110, 0.16), transparent 70%);
    pointer-events: none;
}
.hero-content {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 6px 14px; border-radius: 999px;
    background: var(--indigo-soft); color: var(--indigo-deep);
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}
.hero h1 .text-accent { color: var(--indigo); }
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-muted);
    line-height: 1.65; margin-bottom: 32px;
    max-width: 56ch;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--indigo); letter-spacing: -0.01em; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* Hero visual — icon with floating node dots */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-app-icon {
    width: 320px; height: 320px; border-radius: 72px;
    box-shadow:
        0 30px 60px rgba(82, 86, 212, 0.30),
        0 12px 28px rgba(30, 35, 70, 0.12);
    transition: transform 0.5s ease;
}
.hero-app-icon:hover { transform: translateY(-6px) scale(1.02) rotate(-1deg); }

.node-dot {
    position: absolute; pointer-events: none;
    width: 22px; height: 22px; border-radius: 50%;
    box-shadow: 0 4px 14px rgba(30, 35, 70, 0.18);
    animation: float 4s ease-in-out infinite;
}
.dot-1 { top: 6%;  left: 6%;  background: var(--indigo); animation-delay: 0s; }
.dot-2 { top: 22%; right: 4%; background: var(--teal); animation-delay: 0.8s; width: 16px; height: 16px; }
.dot-3 { bottom: 14%; left: 2%; background: var(--violet); animation-delay: 1.6s; width: 18px; height: 18px; }
.dot-4 { bottom: 4%;  right: 8%; background: var(--orange); animation-delay: 2.4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50%      { transform: translateY(-8px); opacity: 1; }
}

@media (max-width: 860px) {
    .hero { padding: 128px 0 56px; }
    .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-app-icon { width: 220px; height: 220px; border-radius: 50px; }
}

/* === Section shared === */
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 5px 14px; border-radius: 999px;
    background: var(--indigo-soft); color: var(--indigo-deep);
    margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 14px;
}
.section-header p {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 60ch; margin: 0 auto; line-height: 1.65;
}

/* === Why grid === */
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.why-card {
    background: var(--card); padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s, box-shadow 0.25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.why-card h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.why-card p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 860px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* === Features === */
.features { background: var(--bg-alt); }
.feature-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    max-width: 880px; margin-left: auto; margin-right: auto;
    transition: box-shadow 0.25s;
}
.feature-block:hover { box-shadow: var(--shadow-card); }
.feature-block-title {
    font-family: var(--display);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--indigo);
    margin-bottom: 16px;
}
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
    font-size: 0.96rem; color: var(--text);
    padding-left: 26px; position: relative;
    line-height: 1.6;
}
.feature-list li::before {
    content: ""; position: absolute; left: 4px; top: 0.55em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--indigo);
}
.feature-list li strong { color: var(--text); font-weight: 700; }
@media (max-width: 640px) {
    .feature-block { padding: 24px; }
}

/* === Screenshots === */
.screenshots { padding-bottom: 96px; overflow: hidden; }
.screenshots .section-header { margin-bottom: 40px; }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 22px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex-shrink: 0;
    width: 640px;            /* landscape 16:10 macOS screenshots */
    scroll-snap-align: start;
    text-align: center;
}
.screenshot-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-item img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.screenshot-caption {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.scroll-btn {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    box-shadow: var(--shadow);
}
.scroll-btn:hover { background: var(--indigo); color: #fff; border-color: transparent; }
@media (max-width: 860px) {
    .screenshot-item { width: 480px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
    .scroll-btn { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
    .screenshot-item { width: 320px; }
}

/* === Pro / Pricing === */
.pro { padding: 96px 0; }
.pro-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #2c1b5c 100%);
    color: #fff;
    border-radius: 32px;
    padding: 64px; max-width: 1080px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.pro-card::before {
    content: ""; position: absolute; top: -25%; right: -10%;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 86, 212, 0.42), transparent 70%);
    pointer-events: none;
}
.pro-card::after {
    content: ""; position: absolute; bottom: -30%; left: -10%;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 140, 110, 0.28), transparent 70%);
    pointer-events: none;
}
.pro-card > * { position: relative; z-index: 1; }

.pro-header { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.pro-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12); color: #c8caff;
    margin-bottom: 20px;
}
.pro-card h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 14px;
}
.pro-lede {
    font-size: 1.05rem; color: rgba(255,255,255,0.78);
    line-height: 1.65;
}

.pro-body {
    display: grid; grid-template-columns: minmax(0, 360px) 1fr;
    gap: 48px; align-items: start;
    margin-bottom: 40px;
}

.pricing { display: flex; flex-direction: column; gap: 14px; }
.pricing-tile {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 26px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.pricing-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}
.pricing-tile.featured {
    background:
        linear-gradient(135deg, rgba(82, 86, 212, 0.45), rgba(124, 58, 237, 0.30));
    border-color: rgba(200, 202, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(200, 202, 255, 0.20),
        0 18px 40px rgba(82, 86, 212, 0.35);
}
.pricing-flag {
    position: absolute; top: -11px; left: 26px;
    background: var(--teal); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 10px; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(26, 140, 110, 0.45);
}
.pricing-period {
    font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.78);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.save-pill {
    background: var(--teal); color: #fff;
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    letter-spacing: 0.04em;
}
.pricing-price {
    font-family: var(--display);
    font-size: 2rem; font-weight: 800;
    color: #fff; letter-spacing: -0.025em;
    line-height: 1;
}
.pricing-price span {
    font-size: 0.9rem; font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-left: 4px;
    letter-spacing: 0;
}
.pricing-blurb {
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
}

.pro-features-list {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    list-style: none; padding: 0; margin: 0;
}
.pro-feature {
    display: flex; gap: 14px; align-items: flex-start;
}
.pro-feature-check {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 202, 255, 0.30), rgba(82, 86, 212, 0.35));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
    box-shadow: inset 0 0 0 1px rgba(200, 202, 255, 0.30);
}
.pro-feature h4 {
    font-family: var(--display);
    font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
    margin-bottom: 4px; color: #fff;
}
.pro-feature p {
    font-size: 0.9rem; color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

.pro-disclosure {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    max-width: 70ch;
    text-align: center;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.pro-disclosure a { color: #c8caff; text-decoration: underline; }

@media (max-width: 960px) {
    .pro-body { grid-template-columns: 1fr; gap: 36px; }
    .pricing { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
    .pro-card { padding: 44px 24px; border-radius: 24px; }
    .pro-features-list { grid-template-columns: 1fr; gap: 20px; }
}

/* === Privacy Promise === */
.privacy-promise { background: var(--bg-alt); }
.privacy-content { text-align: center; max-width: 760px; margin: 0 auto; }
.privacy-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--teal-soft); color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.privacy-content h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.privacy-content p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.privacy-content a { color: var(--indigo); text-decoration: underline; }
.privacy-pills {
    margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.privacy-pill {
    padding: 14px 18px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
    font-size: 0.88rem; font-weight: 600; color: var(--text);
}
@media (max-width: 760px) {
    .privacy-pills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .privacy-pills { grid-template-columns: 1fr; }
}

/* === CTA / Download === */
.cta { padding: 80px 0 96px; text-align: center; }
.cta-card {
    text-align: center;
    padding: 64px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #5256d4 0%, #7c3aed 100%);
    color: #fff;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
}
.cta-card::after {
    content: ""; position: absolute; top: -50%; right: -10%;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20), transparent 70%);
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30);
}
.cta-card h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.cta-card p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 28px; }

/* === Footer === */
.footer {
    padding: 36px 0; background: var(--bg-alt);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow); }
.footer-copy { font-size: 0.85rem; }
.footer-copy a { color: var(--indigo); }
.footer-copy a:hover { text-decoration: underline; }
