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

:root {
    --bg: #0d1424;
    --bg-soft: #131b30;
    --card: #1a2340;
    --card-2: #202b4d;
    --line: #2a3557;
    --text: #e2e6f3;
    --muted: #9aa3bf;
    --accent: #8b8bff;
    --accent-strong: #6c63ff;
    --accent-soft: rgba(139, 139, 255, 0.14);
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(108, 99, 255, 0.18), transparent 60%),
                radial-gradient(900px 500px at 0% 30%, rgba(16, 185, 129, 0.07), transparent 55%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

/* ─── TOP BAR (sticky) ─── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 20, 36, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

.lang-bar { display: flex; gap: 6px; }
.lang-bar button {
    background: none;
    border: 1.5px solid var(--line);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted);
    transition: 0.2s ease;
}
.lang-bar button.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.lang-content { display: none; }
.lang-content.active { display: block; }

/* ─── HERO ─── */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    padding: 48px 0 32px;
}
.hero-copy h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}
.hero-copy h1 .grad {
    background: linear-gradient(90deg, #a5a1ff, #6c63ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-copy .tagline {
    font-size: 17px;
    color: var(--muted);
    margin: 14px 0 18px;
    max-width: 480px;
    line-height: 1.55;
}
.hero-checks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text);
}
.hero-checks li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    margin-right: 7px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, #7b73ff, #6c63ff);
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 40px;
    font-size: 15px;
    transition: filter 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(108, 99, 255, 0.35);
}
.btn-download:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-download.secondary {
    background: var(--card);
    color: var(--accent);
    border: 1.5px solid var(--accent);
    box-shadow: none;
}
.btn-download.secondary:hover { background: var(--card-2); }
.btn-download.btn-download-sm { font-size: 14px; padding: 9px 22px; }
.cta-arrow { color: var(--muted); font-size: 18px; }
.steps-hint {
    font-size: 13px;
    color: var(--orange);
    margin-top: 14px;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 9px 13px;
    display: inline-block;
}
.hero-subnote { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Phone mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0;
}
.phone {
    width: min(270px, 80%);
    background: #0a0f1e;
    border: 3px solid var(--line);
    border-radius: 34px;
    padding: 9px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 70px rgba(108, 99, 255, 0.22);
    position: relative;
    z-index: 2;
}
.phone img, .phone video {
    width: 100%;
    display: block;
    border-radius: 25px;
}
.phone video { object-fit: cover; }
.phone.mini {
    width: 100%;
    max-width: 250px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 44px rgba(108, 99, 255, 0.14);
}
.phone.mini.big {
    max-width: 320px;
}
.float-chip {
    position: absolute;
    z-index: 3;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--muted);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    text-align: center;
    animation: float 5s ease-in-out infinite;
}
.float-chip .big { display: block; font-size: 17px; font-weight: 700; }
.float-chip.c1 { top: 8%; left: 0; color: var(--muted); }
.float-chip.c1 .big { color: #5ac8fa; }
.float-chip.c2 { top: 42%; right: -2%; animation-delay: 1.2s; }
.float-chip.c2 .big { color: var(--green); }
.float-chip.c3 { bottom: 10%; left: 2%; animation-delay: 2.4s; }
.float-chip.c3 .big { color: var(--accent); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
    .float-chip { animation: none; }
}

/* ─── SECTIONS ─── */
.section { padding: 34px 0 8px; }
.section > h2, .section-head h2 {
    font-size: 27px;
    font-weight: 800;
    color: #fff;
    text-align: center;
}
.section-head { text-align: center; margin-bottom: 26px; }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Showcase rows: screenshot + text */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 26px 0;
}
.showcase .shot { display: flex; justify-content: center; }
.showcase .info h3 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.showcase .info p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.showcase .info ul {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}
.showcase .info ul li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    margin-right: 8px;
}
.showcase.flip .shot { order: 2; }
.showcase.flip .info { order: 1; }

/* Compact feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 8px;
}
.feature-card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    transition: transform 0.15s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-card .icon { font-size: 26px; line-height: 1; }
.feature-card .icon.goodreads-icon { display: block; width: 32px; height: 32px; font-size: 0; }
.feature-card .icon.goodreads-icon svg { width: 100%; height: 100%; display: block; }
.feature-card .title { font-weight: 700; font-size: 15px; color: #fff; margin-top: 8px; }
.feature-card .desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* Screenshot gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0;
}
.screenshot-item {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.screenshot-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    background: #0a0f1e;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
}
.screenshot-item .label {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    background: var(--bg-soft);
    flex-shrink: 0;
    border-top: 1px solid var(--line);
}
.screenshot-item .label .sub {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

/* ─── STATS DEMO ─── */
.stats-panel {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 22px 18px;
    margin: 8px 0 22px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
.stats-grid .stat-box {
    background: var(--card);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
}
.stats-grid .stat-box .number { font-size: 22px; font-weight: 800; color: #fff; }
.stats-grid .stat-box .label { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-box.c-purple { border-top-color: var(--accent); }
.stat-box.c-purple .number { color: var(--accent); }
.stat-box.c-blue   { border-top-color: #3b82f6; }
.stat-box.c-blue   .number { color: #3b82f6; }
.stat-box.c-green  { border-top-color: var(--green); }
.stat-box.c-green  .number { color: var(--green); }
.stat-box.c-orange { border-top-color: var(--orange); }
.stat-box.c-orange .number { color: var(--orange); }
.stat-box.c-cyan   { border-top-color: #06b6d4; }
.stat-box.c-cyan   .number { color: #06b6d4; }
.stat-box.c-violet { border-top-color: #8b5cf6; }
.stat-box.c-violet .number { color: #8b5cf6; }

.chart-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 4px; }
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    height: 140px;
    margin-top: 10px;
    padding: 0 4px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.bar-chart .bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.bar-chart .bar-item .bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, #8b8bff, #6c63ff);
    border-radius: 5px 5px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}
.bar-chart .bar-item .bar-label { font-size: 9px; color: var(--muted); margin-top: 4px; }
.bar-chart .bar-item .bar-value { font-size: 9px; color: var(--muted); margin-bottom: 2px; }

/* ─── TESTIMONIALS ─── */
.testimonials-section {
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.testimonial-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testimonial-card .quote {
    font-size: 14.5px;
    color: var(--text);
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.55;
}
.testimonial-card .source { font-size: 12px; color: var(--muted); }

/* ─── PRIVACY HIGHLIGHT ─── */
.privacy-highlight {
    background: rgba(16, 185, 129, 0.06);
    border-radius: 18px;
    padding: 22px 24px;
    margin: 26px 0;
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.privacy-highlight .icon { font-size: 26px; }
.privacy-highlight .title { font-weight: 800; font-size: 19px; color: var(--green); }
.privacy-highlight .desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.privacy-highlight .desc span.highlight { font-weight: 600; color: #fff; }
.privacy-highlight a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ─── NOTIFY CTA ─── */
.cta-notify {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.14), rgba(108, 99, 255, 0.04));
    border-radius: 20px;
    padding: 26px 24px;
    margin: 26px 0;
    border: 1px solid var(--accent);
    text-align: center;
}
.cta-notify h2 { font-size: 21px; color: #fff; margin-bottom: 6px; }
.cta-notify p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.notify-form { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.notify-form .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 460px;
}
.notify-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--text);
    outline: none;
}
.notify-form input[type="email"]:focus { border-color: var(--accent); }
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    color: var(--muted);
}
.captcha-row input {
    width: 60px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    text-align: center;
}
.captcha-row input:focus { border-color: var(--accent); }
.captcha-row .captcha-question {
    background: var(--card);
    padding: 5px 14px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text);
}
.notify-btn {
    background: linear-gradient(135deg, #7b73ff, #6c63ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 11px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
    font-family: inherit;
}
.notify-btn:hover { filter: brightness(1.1); }
.notify-btn:disabled { opacity: 0.6; cursor: default; filter: none; }
.notify-status { font-size: 13px; }
.notify-status.ok  { color: var(--green); }
.notify-status.err { color: var(--red); }
.notify-status.loading { color: var(--orange); }

/* ─── DEMO BACKUP ─── */
.demo-backup {
    background: var(--card);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 20px 0 8px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
}
.demo-backup .db-title { font-size: 15px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.demo-backup p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.55; }
.demo-backup .steps { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.demo-backup .steps .steps-title { font-weight: 600; color: var(--text); }

/* ─── LINKS GRID ─── */
.links-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.links-grid .link-box {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    flex: 1;
    min-width: 140px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.links-grid .link-box:hover { transform: translateY(-2px); }
.links-grid .link-box .icon { width: 32px; height: 32px; }
.links-grid .link-box .icon svg { width: 100%; height: 100%; fill: var(--muted); }
.links-grid .link-box .text { font-size: 14px; color: var(--text); }
.links-grid .link-box .text .sub { font-size: 11px; color: var(--muted); }

.link-box.x { border-color: rgba(29, 161, 242, 0.5); }
.link-box.x .icon svg { fill: #1DA1F2; }
.link-box.x:hover { border-color: #1DA1F2; background: #14243a; }

.link-box.reddit { border-color: rgba(255, 69, 0, 0.5); }
.link-box.reddit:hover { border-color: #FF4500; background: #2a1a12; }

.link-box.playstore { border-color: rgba(52, 168, 83, 0.5); }
.link-box.playstore:hover { border-color: #34A853; background: #14281c; }

.link-box.github { border-color: rgba(139, 92, 246, 0.5); }
.link-box.github:hover { border-color: #8B5CF6; background: #1c1433; box-shadow: 0 0 12px rgba(139, 92, 246, 0.3); }

.privacy-text {
    background: var(--card);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--line);
}
.privacy-text span.highlight { font-weight: 600; color: #fff; }

/* ─── CONTACT FORM ─── */
.page-hero { text-align: center; padding: 36px 0 10px; }
.page-hero h1, .page-hero .h1 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}
.page-hero .tagline { font-size: 15px; color: var(--muted); margin-top: 8px; }

.contact-section {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(108, 99, 255, 0.03));
    border-radius: 20px;
    padding: 24px;
    margin: 24px auto 16px;
    border: 1px solid var(--accent);
    max-width: 640px;
}
.contact-section h2 { color: var(--accent); }
.feedback-form { display: flex; flex-direction: column; gap: 12px; }
.fb-input, .fb-textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.fb-input:focus, .fb-textarea:focus { border-color: var(--accent); }
.fb-input::placeholder, .fb-textarea::placeholder { color: #6b7492; }
.fb-btn {
    background: linear-gradient(135deg, #7b73ff, #6c63ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
    font-family: inherit;
}
.fb-btn:hover { filter: brightness(1.1); }
.fb-btn:disabled { opacity: 0.5; cursor: default; filter: none; }
.fb-status { font-size: 13px; }
.fb-status.ok  { color: var(--green); }
.fb-status.err { color: var(--red); }

h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

.footer {
    margin-top: 40px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.footer a { color: var(--muted); }

/* ─── MEDIA QUERIES ─── */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
    .hero-copy .tagline { margin-left: auto; margin-right: auto; }
    .hero-checks { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-visual { padding-top: 20px; }
    .showcase { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .showcase.flip .shot { order: 0; }
    .showcase .info ul { align-items: center; }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); }
    .testimonials-section { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-copy h1 { font-size: 31px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-section { grid-template-columns: 1fr; gap: 12px; }
    .float-chip { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 12px 16px; }
    .topbar-inner { padding: 8px 12px; gap: 8px; }
    .nav-links { gap: 2px; }
    .nav-links a { font-size: 12.5px; padding: 5px 8px; }
    .brand { font-size: 15px; }
    .hero-copy h1 { font-size: 27px; }
    .hero-copy .tagline { font-size: 15px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-card { padding: 12px; }
    .feature-card .icon { font-size: 21px; }
    .feature-card .title { font-size: 13.5px; }
    .feature-card .desc { font-size: 12px; }
    .screenshot-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .screenshot-item .label { font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stats-grid .stat-box { padding: 9px; }
    .stats-grid .stat-box .number { font-size: 18px; }
    .bar-chart { height: 100px; gap: 4px; }
    .bar-chart .bar-item .bar { max-width: 20px; }
    .links-grid .link-box { min-width: 120px; padding: 12px 16px; }
    .btn-download { font-size: 14px; padding: 10px 22px; }
    .section > h2, .section-head h2 { font-size: 22px; }
}

@media (max-width: 420px) {
    .features-grid { grid-template-columns: 1fr; }
    .screenshot-gallery { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 24px; }
}
