/* ============================================================
   DroidPage Default Theme — light, modern, conversion-focused
   ============================================================ */
:root {
    --surface: var(--bg-color, #ffffff);
    --surface-card: var(--card-bg, #f8fafc);
    --line: var(--border-color, #e6eaf2);
    --copy: var(--text-primary, #0f172a);
    --copy-soft: var(--text-secondary, #64748b);
    --accent: var(--primary-color, #6366f1);
    --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-contrast: #ffffff;
    --header: var(--header-bg, #ffffff);
    --footer: var(--footer-bg, #0f172a);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, 0.28);
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(60% 50% at 80% -5%, var(--accent-soft), transparent 60%),
        radial-gradient(50% 40% at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
        var(--surface);
    color: var(--copy);
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--header) 82%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header.is-static { position: relative; }

.site-header .container {
    display: flex;
    align-items: center;
    gap: 0 24px;
    min-height: 74px;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 80%;
}

.header-brand-logo {
    width: var(--header-logo-size, 44px);
    height: var(--header-logo-size, 44px);
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.header-brand-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.header-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--copy);
}

.header-brand-subtitle {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--copy-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.site-nav { margin-left: auto; }

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

.header-nav > li { position: relative; }

.header-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--copy-soft);
    transition: color 0.18s ease, background 0.18s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible { color: var(--copy); background: var(--surface-card); }

.header-nav .nav-cta {
    background: var(--accent);
    color: var(--accent-contrast) !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.header-nav .nav-cta:hover {
    background: color-mix(in srgb, var(--accent) 88%, #000);
}

.header-nav-item.has-subnav > a::after { content: ' +'; opacity: 0.5; }

.header-subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 2px;
    min-width: 200px;
    list-style: none;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.header-subnav a { display: block; }

.header-nav-item.has-subnav:hover .header-subnav,
.header-nav-item.has-subnav:focus-within .header-subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--copy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

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

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
    background: var(--surface);
    color: var(--copy);
    border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 84px 0 72px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.hero-copy { display: grid; gap: 22px; }

.hero-kicker {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 80%, var(--copy));
    font-size: 0.8rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--copy);
}

.hero-tagline {
    max-width: 30ch;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--copy-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 10px;
}

.trust-stat { display: grid; gap: 2px; }

.trust-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--copy);
    letter-spacing: -0.02em;
}

.trust-label {
    font-size: 0.8rem;
    color: var(--copy-soft);
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--line);
}

/* ── Phone mockup ───────────────────────────────────────── */
.hero-device {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-glow {
    position: absolute;
    inset: 8% 12%;
    z-index: 0;
    background: radial-gradient(closest-side, var(--accent), transparent);
    opacity: 0.28;
    filter: blur(40px);
}

.device-frame {
    position: relative;
    z-index: 1;
    width: clamp(230px, 26vw, 290px);
    aspect-ratio: 9 / 19;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.device-speaker {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 3;
}

.device-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 33px;
    background: linear-gradient(180deg, var(--surface-card), var(--surface));
    position: relative;
    z-index: 2;
}

.device-screen-empty {
    position: absolute;
    inset: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 33px;
    background: linear-gradient(180deg, var(--surface-card), var(--surface));
    color: var(--copy-soft);
    font-size: 0.85rem;
    font-weight: 500;
}

.device-frame:not(.is-empty) .device-screen-empty { display: none; }
.device-frame.is-empty .device-screen { opacity: 0; }

/* ── Section headings ───────────────────────────────────── */
.content-section { padding: 56px 0; }

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 36px;
    text-align: center;
    justify-items: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--copy);
    max-width: 20ch;
}

/* ── Features ───────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 4px;
}

.feature-icon-svg { width: 24px; height: 24px; }

.feature-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--copy);
}

.feature-card p {
    color: var(--copy-soft);
    font-size: 0.96rem;
    line-height: 1.65;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.feature-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-card);
    border: 1px solid var(--line);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--copy-soft);
}

/* ── About ──────────────────────────────────────────────── */
.about-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
    gap: 36px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.about-copy { display: grid; gap: 14px; }

.intro-lead {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--copy);
}

.intro-lead strong { color: var(--accent); }

.intro-body {
    color: var(--copy-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.about-text {
    color: var(--copy-soft);
    font-size: 1rem;
    line-height: 1.85;
    white-space: pre-line;
}








/* ── Screenshots ────────────────────────────────────────── */
.screenshots-section { padding-bottom: 64px; }

.screenshot-carousel-wrapper { position: relative; padding: 0 8px; }

.screenshot-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 18px;
    scroll-behavior: smooth;
}

.screenshot-carousel::-webkit-scrollbar { display: none; }

.screenshot-item {
    position: relative;
    flex: 0 0 clamp(200px, 22vw, 260px);
    aspect-ratio: 9 / 19;
    scroll-snap-align: center;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface-card), var(--surface));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-nav {
    position: absolute;
    inset: 50% 0 auto;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--copy);
    pointer-events: auto;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn:hover { transform: scale(1.06); color: var(--accent); }

.nav-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { padding: 24px 0 72px; }

.cta-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 56px 32px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface));
    border: 1px solid var(--line);
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--copy);
}

.cta-sub { color: var(--copy-soft); font-size: 1.05rem; }

.cta-inner .btn { margin-top: 8px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    padding: 44px 0 36px;
    background: var(--footer);
    color: color-mix(in srgb, #ffffff 70%, var(--footer));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner.footer-brand-hidden,
.footer-inner.footer-nav-hidden { grid-template-columns: 1fr; }

.footer-inner.is-hidden { display: none; }

.footer-brand-wrap { display: inline-flex; align-items: center; gap: 14px; }

.footer-brand-logo {
    width: var(--footer-logo-size, 40px);
    height: var(--footer-logo-size, 40px);
    border-radius: 12px;
    object-fit: cover;
}

.footer-brand-copy { display: grid; gap: 2px; }

.footer-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    list-style: none;
}

.footer-links a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.footer-bottom {
    margin-top: 22px;
    font-size: 0.86rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

.footer-inner.is-hidden + .footer-bottom { margin-top: 0; }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    max-width: min(92vw, 420px);
    max-height: 88vh;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.28s ease;
}

.lightbox.active .lightbox-content { transform: scale(1); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { order: 2; }
    .hero-device { order: 1; }
    .hero-tagline { max-width: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .about-card { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .site-header .container { flex-wrap: wrap; }

    .site-nav {
        flex-basis: 100%;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.open { max-height: 520px; }

    .header-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 0 16px;
    }

    .header-nav a { padding: 12px 14px; }
    .header-nav .nav-cta { text-align: center; }

    .header-subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 4px 0 4px 14px;
    }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
}

/* Registration sits below the copyright across viewport sizes. */
.footer-registration-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.6;
}
.footer-registration-row a { color: inherit; }
.footer-registration-row a:first-child { flex-shrink: 0; }
.footer-registration-row a:last-child { min-width: 0; overflow-wrap: anywhere; }
.footer-registration-row img { display: block; width: 20px; height: 20px; object-fit: contain; }
