/* ── Landing Page — Playful Geometric Design System ── */

/* ── Design Tokens (mirrored from style.css) ────────── */
:root {
    --bg:               #FFFDF5;
    --bg-muted:         #F1F5F9;
    --foreground:       #1E293B;
    --muted-fg:         #64748B;
    --accent:           #8B5CF6;
    --accent-fg:        #FFFFFF;
    --secondary:        #F472B6;
    --tertiary:         #FBBF24;
    --quaternary:       #34D399;
    --border:           #E2E8F0;
    --border-dark:      #1E293B;
    --card:             #FFFFFF;

    --radius-sm:        8px;
    --radius-md:        16px;
    --radius-lg:        24px;
    --radius-full:      9999px;

    --border-w:         2px;
    --shadow-pop:       4px 4px 0px 0px #1E293B;
    --shadow-pop-hover: 6px 6px 0px 0px #1E293B;
    --shadow-pop-press: 2px 2px 0px 0px #1E293B;
    --shadow-card:      8px 8px 0px 0px #E2E8F0;
    --shadow-card-pink: 8px 8px 0px 0px #F472B6;
    --shadow-card-mint: 8px 8px 0px 0px #34D399;

    --font-heading:     'Outfit', system-ui, sans-serif;
    --font-body:        'Plus Jakarta Sans', system-ui, sans-serif;
    --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Container ──────────────────────────────────────── */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-bounce);
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-pop-hover);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-pop-press);
}

.btn-secondary {
    background: var(--card);
    color: var(--foreground);
    box-shadow: var(--shadow-pop);
}

.btn-secondary:hover {
    background: var(--tertiary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-pop-hover);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--card);
    border-bottom: var(--border-w) solid var(--border-dark);
    box-shadow: 0 2px 0 var(--border-dark);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-fg);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.nav-links a:hover {
    color: var(--foreground);
    background: var(--bg-muted);
}

.nav-cta {
    padding: 8px 20px;
    font-size: 13px;
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
    padding: 96px 0 80px;
    overflow: hidden;
    position: relative;
}

/* Dot grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #CBD5E1 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ── Hero Text ──────────────────────────────────────── */
.hero-text {
    position: relative;
}

/* Big yellow circle behind hero text */
.hero-text::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--tertiary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-full);
    padding: 6px 16px 6px 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: var(--shadow-pop);
}

.hero-badge-dot {
    width: 24px;
    height: 24px;
    background: var(--quaternary);
    border-radius: 50%;
    border: var(--border-w) solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--foreground);
    margin-bottom: 20px;
}

.hero-heading .accent-word {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

/* Squiggle underline on accent word */
.hero-heading .accent-word::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q10 0 20 3 Q30 6 40 3' fill='none' stroke='%238B5CF6' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 6px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted-fg);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-footnote {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-fg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-footnote::before {
    content: '🔒';
    font-size: 12px;
}

/* ── Hero Illustration ──────────────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dot pattern behind illustration */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: radial-gradient(circle, #94A3B8 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    border-radius: var(--radius-lg);
    border: var(--border-w) solid var(--border);
    z-index: 0;
}

.mockup-card {
    position: relative;
    z-index: 1;
    background: var(--card);
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-pink);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}

.mockup-toolbar {
    height: 44px;
    background: var(--bg-muted);
    border-bottom: var(--border-w) solid var(--border-dark);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--border-dark);
}

.mockup-dot:nth-child(1) { background: var(--secondary); }
.mockup-dot:nth-child(2) { background: var(--tertiary); }
.mockup-dot:nth-child(3) { background: var(--quaternary); }

.mockup-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-fg);
    margin-left: 8px;
}

.mockup-body {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 90px;
    background: var(--bg-muted);
    border-right: var(--border-w) solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-prop {
    height: 8px;
    border-radius: 99px;
    background: var(--border);
}

.mockup-prop:nth-child(1) { width: 70%; background: var(--accent); opacity: 0.4; }
.mockup-prop:nth-child(2) { width: 90%; }
.mockup-prop:nth-child(3) { width: 60%; }
.mockup-prop:nth-child(4) { width: 80%; }
.mockup-btn-mock {
    margin-top: auto;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--accent);
    border: 1.5px solid var(--border-dark);
    box-shadow: 2px 2px 0 var(--border-dark);
}

.mockup-page {
    flex: 1;
    background: white;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.mockup-line {
    height: 8px;
    border-radius: 99px;
    background: var(--border);
}

.mockup-line:nth-child(1) { width: 90%; }
.mockup-line:nth-child(2) { width: 75%; }
.mockup-line:nth-child(3) { width: 82%; }

.mockup-line-selected {
    width: 60%;
    height: 20px;
    border-radius: 4px;
    background: rgba(139,92,246,0.15);
    border: 2px solid var(--accent);
    box-shadow: 2px 2px 0 var(--accent);
    position: relative;
}

.mockup-line-selected::after {
    content: 'Edit me!';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
}

.mockup-line:nth-child(5) { width: 88%; }
.mockup-line:nth-child(6) { width: 70%; }
.mockup-line:nth-child(7) { width: 55%; }

/* Floating cursor indicator */
.mockup-cursor {
    position: absolute;
    top: 76px;
    left: 40px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: var(--border-w) solid var(--border-dark);
    border-radius: 50% 50% 50% 0;
    box-shadow: var(--shadow-pop);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Decorative shapes around illustration */
.hero-deco {
    position: absolute;
    pointer-events: none;
}

.hero-deco-1 {
    top: -20px;
    right: -16px;
    width: 56px;
    height: 56px;
    background: var(--tertiary);
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-sm);
    transform: rotate(18deg);
    box-shadow: var(--shadow-pop);
    z-index: 2;
}

.hero-deco-2 {
    bottom: -16px;
    left: -16px;
    width: 40px;
    height: 40px;
    background: var(--quaternary);
    border: var(--border-w) solid var(--border-dark);
    border-radius: 50%;
    box-shadow: var(--shadow-pop);
    z-index: 2;
}

.hero-deco-3 {
    bottom: 60px;
    right: -24px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 30px solid var(--secondary);
    filter: drop-shadow(2px 2px 0 var(--border-dark));
    z-index: 2;
}

/* ── Features Section ───────────────────────────────── */
.features {
    padding: 96px 0;
    background: var(--bg-muted);
    border-top: var(--border-w) solid var(--border-dark);
    border-bottom: var(--border-w) solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted-fg);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--foreground);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-sub {
    font-size: 17px;
    font-weight: 500;
    color: var(--muted-fg);
    max-width: 520px;
    line-height: 1.65;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-sub { margin: 0 auto; }

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

/* Feature cards — "Sticker" style */
.feature-card {
    background: var(--card);
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 32px 28px 28px;
    position: relative;
    transition: all 0.3s var(--ease-bounce);
}

.feature-card:nth-child(1) { box-shadow: var(--shadow-pop); }
.feature-card:nth-child(2) { box-shadow: var(--shadow-card-pink); }
.feature-card:nth-child(3) { box-shadow: var(--shadow-card-mint); }

.feature-card:hover {
    transform: rotate(-1deg) scale(1.02);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 3px 3px 0 var(--border-dark);
    flex-shrink: 0;
}

.feature-card:nth-child(1) .feature-icon { background: var(--accent); color: white; }
.feature-card:nth-child(2) .feature-icon { background: var(--secondary); color: white; }
.feature-card:nth-child(3) .feature-icon { background: var(--quaternary); color: var(--foreground); }

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-fg);
    line-height: 1.65;
}

/* ── How It Works ───────────────────────────────────── */
.how-it-works {
    padding: 96px 0;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
    position: relative;
}

/* Dashed connector line between steps */
.steps-grid::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    border-top: 3px dashed var(--border);
    pointer-events: none;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border: var(--border-w) solid var(--border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: var(--shadow-pop);
}

.step:nth-child(1) .step-number { background: var(--accent);    color: white; }
.step:nth-child(2) .step-number { background: var(--tertiary);  color: var(--foreground); }
.step:nth-child(3) .step-number { background: var(--secondary); color: white; }

.step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* ── Privacy Strip ──────────────────────────────────── */
.privacy-strip {
    padding: 40px 0;
    background: var(--bg-muted);
    border-top: var(--border-w) solid var(--border);
    border-bottom: var(--border-w) solid var(--border);
}

.privacy-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}

.privacy-icon {
    width: 44px;
    height: 44px;
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 2px 2px 0 var(--border-dark);
}

.privacy-item:nth-child(1) .privacy-icon { background: var(--quaternary); }
.privacy-item:nth-child(2) .privacy-icon { background: var(--accent); color: white; }
.privacy-item:nth-child(3) .privacy-icon { background: var(--tertiary); }

.privacy-label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2px;
}

.privacy-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-fg);
    line-height: 1.4;
}

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #CBD5E1 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.55;
    pointer-events: none;
}

.cta-card {
    position: relative;
    z-index: 1;
    background: var(--card);
    border: var(--border-w) solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-pink);
    padding: 72px 48px;
    text-align: center;
    overflow: hidden;
}

/* Big accent circle decoration */
.cta-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    border-radius: 50%;
    top: -200px;
    right: -120px;
    opacity: 0.06;
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    border-radius: 50%;
    bottom: -150px;
    left: -80px;
    opacity: 0.07;
    pointer-events: none;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--foreground);
    margin-bottom: 16px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.cta-sub {
    font-size: 17px;
    font-weight: 500;
    color: var(--muted-fg);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
    background: var(--foreground);
    color: rgba(255,255,255,0.7);
    border-top: var(--border-w) solid var(--border-dark);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
}

.footer-logo span { color: var(--accent); }

.footer-copy {
    font-size: 13px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover { color: #FFFFFF; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner        { grid-template-columns: 1fr; }
    .hero-visual       { display: none; }
    .features-grid     { grid-template-columns: 1fr; }
    .steps-grid        { grid-template-columns: 1fr; }
    .steps-grid::after { display: none; }
    .cta-card          { padding: 48px 24px; }
    .privacy-inner     { gap: 24px; }
}

@media (max-width: 640px) {
    .hero              { padding: 64px 0 48px; }
    .hero-actions      { flex-direction: column; align-items: flex-start; }
    .nav-links li:not(:last-child) { display: none; }
    .footer-inner      { flex-direction: column; text-align: center; }
}

/* ── Reduced Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
