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

/* ── Dark mode (default) ── */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #2a2a2a;
    --card-bg: #1a1a1a;
    --card-hover: #202020;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --header-bg: rgba(10, 10, 10, 0.8);
    --header-bg-scrolled: rgba(10, 10, 10, 0.95);
    --header-shadow: rgba(0, 0, 0, 0.3);
    --mockup-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --mockup-notch: #0a0a0a;
}

/* ── Light mode ── */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #ececec;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #e4e4e7;
    --card-bg: #ffffff;
    --card-hover: #fafafa;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    --header-shadow: rgba(0, 0, 0, 0.08);
    --mockup-bg: linear-gradient(135deg, #d4d4d8, #e4e4e7);
    --mockup-notch: #f0f0f0;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 2px 20px var(--header-shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; }

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-icon { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }

.nav-brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-brand-link:hover .nav-brand-name { color: var(--text-primary); }

.nav-sep { color: var(--border-color); font-size: 1.25rem; font-weight: 300; margin: 0 0.1rem; }

.nav-page-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    transition: border-color 0.3s, color 0.3s;
}

.theme-toggle:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Hero ── */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { animation: fadeInUp 0.8s ease-out; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #111111, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; }

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--mockup-bg);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px var(--shadow-color);
    position: relative;
    transition: transform 0.3s ease;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: var(--mockup-notch);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* ── Story ── */
.story {
    padding: 80px 0;
    background: var(--bg-primary);
}

.story-card {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: box-shadow 0.3s;
}

.story-card:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.story-quote {
    font-size: 6rem;
    line-height: 0.6;
    color: var(--accent-primary);
    opacity: 0.4;
    font-family: Georgia, serif;
    flex-shrink: 0;
    user-select: none;
}

.story-body { display: flex; flex-direction: column; gap: 1rem; }

.story-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.story-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.story-conclusion {
    font-style: italic;
    color: var(--accent-primary) !important;
    font-weight: 500;
}

@media (max-width: 640px) {
    .story-card { padding: 2rem; gap: 1rem; }
    .story-quote { font-size: 4rem; }
    .story-title { font-size: 1.25rem; }
    .story-body p { font-size: 0.975rem; }
}

/* ── Features ── */
.features { padding: 100px 0; background: var(--bg-secondary); }

.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); line-height: 1.8; }

/* ── Screenshots ── */
.screenshots { padding: 100px 0; background: var(--bg-primary); }

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-item { text-align: center; }

.screenshot-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.screenshot-wrapper:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.screenshot-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.screenshot-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.screenshot-item p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ── How It Works ── */
.how-it-works { padding: 100px 0; background: var(--bg-secondary); }

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.step:hover { border-color: var(--accent-primary); transform: translateY(-5px); }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.step p { color: var(--text-secondary); }
.step-arrow { font-size: 2rem; color: var(--accent-primary); }

/* ── Use Cases ── */
.use-cases { padding: 100px 0; background: var(--bg-primary); }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.case-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); }
.case-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.case-card p { color: var(--text-secondary); }

/* ── Download ── */
.download { padding: 100px 0; background: var(--bg-secondary); text-align: center; }

.download-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 3rem; }

.download-buttons { display: flex; justify-content: center; gap: 2rem; }

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.download-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.download-btn svg { width: 40px; height: 40px; }
.download-small { font-size: 0.75rem; color: var(--text-secondary); text-align: left; }
.download-large { font-size: 1.25rem; font-weight: 600; text-align: left; }

/* ── Footer ── */
.footer {
    background: var(--bg-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; margin-bottom: 0.25rem; }

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }

.footer-column h4 { margin-bottom: 1rem; color: var(--text-primary); font-size: 0.95rem; font-weight: 600; }
.footer-column ul { list-style: none; }

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-column a:hover { color: var(--accent-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; }
    .phone-mockup { width: 250px; height: 500px; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .download-buttons { flex-direction: column; align-items: center; }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
    .nav-menu { gap: 1rem; }
    .nav-menu a { font-size: 0.85rem; }
    .nav-brand-name { display: none; }
    .hero { padding: 120px 0 80px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .features-grid, .cases-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; gap: 2rem; }
    .btn { padding: 0.875rem 1.5rem; font-size: 0.9rem; }
}
