/* ========================================
   DriveLogger Website Styles
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

:root {
    --bg: #f5f5f5;
    --bg-soft: #ebebeb;
    --surface: #ffffff;
    --surface-alt: #f7f7f7;
    --line: #d5d5d5;
    --ink: #1a1a1a;
    --ink-soft: #555555;
    --brand: #be2d23;
    --brand-strong: #8f1f17;
    --brand-soft: #ffe6dd;
    --accent: #1f6a52;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.15);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --gradient-brand: linear-gradient(135deg, #cb3f31 0%, #921f18 55%, #6f140f 100%);
    --gradient-hero: radial-gradient(circle at 15% 20%, #ffe9dd 0%, rgba(255, 233, 221, 0) 52%),
        radial-gradient(circle at 82% 18%, #e0e8e4 0%, rgba(224, 232, 228, 0) 48%),
        linear-gradient(160deg, #f8f8f8 0%, #f0f0f0 45%, #f5f5f5 100%);
    --body-bg: linear-gradient(180deg, #f7f7f7 0%, #f3f3f3 100%);
    --navbar-bg: rgba(246, 246, 246, 0.75);
    --navbar-border: rgba(0, 0, 0, 0.08);
    --navbar-shadow: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg: #151515;
    --bg-soft: #1e1e1e;
    --surface: #212121;
    --surface-alt: #262626;
    --line: #333333;
    --ink: #e4e4e4;
    --ink-soft: #9e9e9e;
    --brand: #e04a3f;
    --brand-strong: #f06050;
    --brand-soft: #3a1614;
    --accent: #3db88a;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.45);
    --gradient-brand: linear-gradient(135deg, #e04a3f 0%, #b02a20 55%, #8f1f17 100%);
    --gradient-hero: radial-gradient(circle at 15% 20%, rgba(60, 20, 15, 0.5) 0%, transparent 52%),
        radial-gradient(circle at 82% 18%, rgba(40, 40, 40, 0.3) 0%, transparent 48%),
        linear-gradient(160deg, #151515 0%, #1a1a1a 45%, #171717 100%);
    --body-bg: linear-gradient(180deg, #151515 0%, #121212 100%);
    --navbar-bg: rgba(21, 21, 21, 0.85);
    --navbar-border: rgba(255, 255, 255, 0.06);
    --navbar-shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--body-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    line-height: 1.15;
}

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

.hidden {
    display: none !important;
}

/* Defer rendering of off-screen sections */
.features,
.pro-upgrade,
.screenshots,
.download,
footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 100;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--navbar-border);
    box-shadow: 0 6px 24px var(--navbar-shadow);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(148, 31, 23, 0.22);
}

.brand-name {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    position: relative;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-menu a:hover {
    color: var(--brand-strong);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.lang-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--ink);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 150px 0 112px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    right: -100px;
    top: -120px;
    background: radial-gradient(circle, rgba(190, 45, 35, 0.2) 0%, rgba(190, 45, 35, 0) 70%);
}

.hero::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(31, 106, 82, 0.15) 0%, rgba(31, 106, 82, 0) 72%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 58px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(31, 106, 82, 0.25);
    background: var(--surface);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 22px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -1.6px;
    color: var(--ink);
    margin-bottom: 20px;
    max-width: 580px;
}

.hero-description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--ink-soft);
    margin-bottom: 34px;
    max-width: 560px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.24s ease;
    border: 1px solid transparent;
}

.btn-primary {
    color: #fff;
    background: var(--gradient-brand);
    box-shadow: 0 18px 36px rgba(143, 31, 23, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(143, 31, 23, 0.36);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--surface);
    transform: translateY(-2px);
}

.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone {
    position: relative;
    will-change: transform;
    transition: transform 0.16s ease-out;
}

.phone::before {
    content: none;
}

.phone img {
    display: block;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.phone-ios {
    z-index: 2;
}

.phone-ios img {
    width: min(350px, 44vw);
}

.phone-android {
    z-index: 1;
    margin-left: -34px;
    margin-bottom: -16px;
}

.phone-android img {
    width: min(275px, 35vw);
    border-radius: 32px;
}

/* ========================================
   Shared Section Heading
   ======================================== */
.section-header {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(1.95rem, 4vw, 2.85rem);
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: 105px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 60%, var(--bg) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 50%, transparent 100%);
}

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

.feature-card {
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-alt) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 34px 28px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(28px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(190, 45, 35, 0.28);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ca3f31 0%, #8f1f17 100%);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

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

/* ========================================
   Pro Upgrade
   ======================================== */
.pro-upgrade {
    padding: 34px 0 28px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.pro-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    border-radius: 26px;
    padding: 26px 28px;
    background: linear-gradient(135deg, #ca3f31 0%, #8f1f17 58%, #67120e 100%);
    box-shadow: 0 24px 58px rgba(103, 18, 14, 0.28);
}

.pro-logo-wrap {
    width: 98px;
    height: 98px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.pro-logo {
    width: 76px;
    height: 76px;
    display: block;
    border-radius: 18px;
}

.pro-kicker {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pro-content h2 {
    color: #fff;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    margin: 4px 0 8px;
}

.pro-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
}

.pro-iap-note {
    margin-top: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.pro-btn {
    margin-top: 14px;
    background: var(--surface);
    color: #66120e;
    box-shadow: none;
}

.pro-btn:hover {
    background: var(--surface);
    color: #530d0a;
}

/* ========================================
   Screenshots
   ======================================== */
.screenshots {
    padding: 105px 0;
    background: #171717;
    color: #f0f0f0;
    position: relative;
    overflow: visible;
}

.screenshots::before {
    content: '';
    position: absolute;
    inset: -120px auto auto -140px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(190, 45, 35, 0.22) 0%, rgba(190, 45, 35, 0) 70%);
}

.screenshots::after {
    content: '';
    position: absolute;
    inset: auto -110px -160px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 106, 82, 0.2) 0%, rgba(31, 106, 82, 0) 72%);
}

.screenshots .container {
    position: relative;
    z-index: 1;
}

.screenshots .section-header h2 {
    color: #fff;
}

.screenshots .section-subtitle {
    color: rgba(240, 240, 240, 0.78);
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(240, 240, 240, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 240, 240, 0.85);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-tab:hover {
    border-color: rgba(255, 255, 255, 0.56);
    color: #fff;
}

.platform-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.storyboard-note {
    margin: -18px auto 26px;
    text-align: center;
    color: rgba(240, 240, 240, 0.74);
    font-size: 0.95rem;
}

.storyboard {
    display: grid;
    grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.storyboard + .storyboard {
    margin-top: 18px;
}

.storyboard-preview {
    position: sticky;
    top: 104px;
}

.storyboard-screen-btn {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.storyboard-screen {
    width: 100%;
    max-height: 74vh;
    display: block;
    object-fit: contain;
    border-radius: 26px;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45);
    transition: opacity 0.35s ease;
}

.storyboard-screen.fading {
    opacity: 0;
}

#androidStory .storyboard-screen {
    border-radius: 32px;
}

.storyboard-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.storyboard-counter {
    font-size: 0.92rem;
    color: rgba(240, 240, 240, 0.76);
}

.storyboard-open {
    border: 1px solid rgba(240, 240, 240, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.storyboard-open:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
}

.storyboard-screen-btn:focus-visible,
.storyboard-open:focus-visible,
.story-step-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.storyboard-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.storyboard-rail {
    --story-runway: 300px;
    padding-bottom: var(--story-runway);
}

.story-step-btn {
    width: 100%;
    border: 1px solid rgba(240, 240, 240, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border-radius: 18px;
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.story-step-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.story-step.active .story-step-btn {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.story-step-no {
    display: inline-flex;
    min-width: 32px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(240, 240, 240, 0.3);
    color: rgba(240, 240, 240, 0.74);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.story-step.active .story-step-no {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
}

.story-step-title {
    display: block;
    color: #fff;
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.story-step-text {
    display: block;
    margin-top: 5px;
    color: rgba(240, 240, 240, 0.72);
    font-size: 0.9rem;
    line-height: 1.62;
}

.story-step.active .story-step-text {
    color: rgba(255, 255, 255, 0.9);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(9, 13, 10, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-frame {
    width: min(96vw, 1520px);
    height: min(94vh, 980px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.lightbox-stage {
    margin: 0;
}

.lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 90px);
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(240, 240, 240, 0.95);
    font-size: 0.95rem;
}

.lightbox-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.lightbox-nav,
.lightbox-close {
    border: 1px solid rgba(240, 240, 240, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    width: 52px;
    height: 52px;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
}

.lightbox-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* ========================================
   Download
   ======================================== */
.download {
    padding: 105px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.download-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 58px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    background: var(--gradient-brand);
    box-shadow: 0 30px 80px rgba(143, 31, 23, 0.3);
}

.download-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    right: -100px;
    top: -130px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.27) 0%, rgba(255, 255, 255, 0) 70%);
}

.download-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    left: -70px;
    bottom: -95px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 74%);
}

.download-content,
.store-buttons {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.7px;
    margin-bottom: 10px;
}

.download-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.03rem;
    max-width: 500px;
}

.store-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.store-btn {
    display: block;
    opacity: 0.94;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.store-btn svg {
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 220;
    min-width: min(320px, calc(100vw - 32px));
    max-width: min(480px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.92);
    color: #f5f5f5;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 18px));
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

[data-theme="dark"] .toast {
    background: rgba(36, 36, 36, 0.94);
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #111111;
    color: #f0f0f0;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(240, 240, 240, 0.15);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Sora', 'Segoe UI', sans-serif;
}

.footer-tagline {
    max-width: 280px;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.62);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-group h4 {
    margin-bottom: 4px;
    color: rgba(240, 240, 240, 0.48);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links-group a {
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 22px 0;
    font-size: 13px;
    color: rgba(240, 240, 240, 0.46);
}

.footer-bottom p + p {
    margin-top: 8px;
}

.footer-privacy-link {
    color: rgba(240, 240, 240, 0.82);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-privacy-link:hover {
    color: #fff;
}

/* ========================================
   Privacy Page
   ======================================== */
.privacy-page {
    background: var(--body-bg);
}

.privacy-main {
    padding: 118px 0 72px;
}

.privacy-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.privacy-top {
    margin-bottom: 18px;
}

.privacy-back-link {
    color: var(--brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.privacy-back-link:hover {
    text-decoration: underline;
}

.privacy-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.privacy-card + .privacy-card {
    margin-top: 24px;
}

.privacy-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 12px;
    color: var(--ink);
}

.privacy-card h2 {
    font-size: 1.22rem;
    margin: 22px 0 10px;
    color: var(--ink);
}

.privacy-card p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.privacy-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--ink);
}

.privacy-card li + li {
    margin-top: 10px;
}

.privacy-card code {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: 'Source Code Pro', Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

.privacy-card a {
    color: var(--brand-strong);
}

.privacy-updated {
    margin-top: 16px;
}

/* ========================================
   Support Page
   ======================================== */
.support-main {
    padding: 118px 0 84px;
}

.support-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    margin-bottom: 24px;
}

.support-hero-card,
.support-form-card,
.support-side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.support-hero-card {
    position: relative;
    overflow: hidden;
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(190, 45, 35, 0.16), transparent 34%),
        radial-gradient(circle at left bottom, rgba(31, 106, 82, 0.12), transparent 36%),
        var(--surface);
}

.support-hero-card::after {
    content: '';
    position: absolute;
    inset: auto -52px -72px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(190, 45, 35, 0.12) 0%, rgba(190, 45, 35, 0) 70%);
    pointer-events: none;
}

.support-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.support-hero-card h1 {
    max-width: 13ch;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.support-hero-card p {
    max-width: 62ch;
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.support-highlight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.support-highlight {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .support-highlight {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.support-highlight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 0.98rem;
}

.support-highlight span {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.support-side-card {
    padding: 28px;
}

.support-side-card h2,
.support-form-card h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.support-side-card p,
.support-form-card p {
    color: var(--ink-soft);
}

.support-checklist {
    list-style: none;
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.support-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink);
}

.support-checklist li::before {
    content: '';
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--gradient-brand);
    box-shadow: 0 0 0 6px rgba(190, 45, 35, 0.08);
}

.support-note {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.support-form-card {
    padding: 32px;
}

.support-form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.support-field {
    display: grid;
    gap: 8px;
}

.support-field label,
.support-platform-legend {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.support-field input,
.support-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
    color: var(--ink-soft);
}

.support-field input:focus,
.support-field textarea:focus {
    outline: none;
    border-color: rgba(190, 45, 35, 0.45);
    box-shadow: 0 0 0 4px rgba(190, 45, 35, 0.12);
    background: var(--surface);
}

.support-field textarea {
    min-height: 180px;
    resize: vertical;
}

.support-help {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.support-platform-group {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
}

.support-platform-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.support-platform-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.support-platform-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.support-platform-pill span:hover {
    transform: translateY(-1px);
    border-color: rgba(190, 45, 35, 0.35);
}

.support-platform-pill input:checked + span {
    border-color: transparent;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(146, 31, 24, 0.22);
}

.support-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.support-submit {
    min-width: 220px;
}

.support-status {
    min-height: 24px;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.support-status.is-success {
    color: var(--accent);
}

.support-status.is-error {
    color: var(--brand-strong);
}

.support-side-stack {
    display: grid;
    gap: 24px;
}

.support-mini-card {
    padding: 24px;
}

.support-mini-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.support-mini-card p,
.support-mini-card li {
    color: var(--ink-soft);
}

.support-mini-card ul {
    margin-top: 12px;
    padding-left: 18px;
}

.support-mini-card li + li {
    margin-top: 8px;
}

.support-mini-card a {
    color: var(--brand-strong);
}

/* ========================================
   Animations
   ======================================== */
@keyframes riseFade {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content {
    animation: riseFade 0.65s ease both;
}

.hero-phones {
    animation: floatIn 0.85s ease 0.08s both;
}

.feature-card.visible {
    animation: riseFade 0.5s ease forwards;
}

.feature-card:nth-child(1).visible { animation-delay: 0.02s; }
.feature-card:nth-child(2).visible { animation-delay: 0.07s; }
.feature-card:nth-child(3).visible { animation-delay: 0.12s; }
.feature-card:nth-child(4).visible { animation-delay: 0.17s; }
.feature-card:nth-child(5).visible { animation-delay: 0.22s; }
.feature-card:nth-child(6).visible { animation-delay: 0.27s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        padding-top: 134px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero-content h1,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-ios img {
        width: min(330px, 62vw);
    }

    .phone-android img {
        width: min(245px, 48vw);
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pro-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .pro-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 52px 32px;
    }

    .store-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .support-hero,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .support-hero-card h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: 70px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 22px;
        gap: 18px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--navbar-bg);
        border-bottom: 1px solid var(--navbar-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 116px 0 78px;
    }

    .hero-phones {
        gap: 10px;
    }

    .phone-ios img {
        width: min(255px, 64vw);
    }

    .phone-android {
        margin-left: -20px;
    }

    .phone-android img {
        width: min(190px, 44vw);
    }

    .section-header {
        margin-bottom: 42px;
    }

    .features,
    .screenshots,
    .download {
        padding: 82px 0;
    }

    .storyboard {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .storyboard-preview {
        position: relative;
        top: auto;
        width: min(360px, 82vw);
        margin: 0 auto;
    }

    .storyboard-screen {
        max-height: 70vh;
    }

    .story-step-btn {
        padding: 14px 15px;
    }

    .storyboard-rail {
        --story-runway: 0px;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-frame {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 12px;
        align-items: stretch;
    }

    .lightbox-stage img {
        max-height: calc(90vh - 160px);
    }

    .lightbox-nav {
        width: 100%;
        height: 44px;
        border-radius: 12px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-container {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-content h1 {
        letter-spacing: -1.1px;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        gap: 10px;
    }

    .phone-ios img {
        width: min(220px, 65vw);
    }

    .phone-android img {
        width: min(160px, 42vw);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .pro-upgrade {
        padding-top: 24px;
    }

    .pro-card {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }

    .platform-tab {
        width: min(240px, 100%);
        justify-content: center;
    }

    .storyboard-note {
        font-size: 0.9rem;
        margin-top: -14px;
    }

    .storyboard-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .storyboard-open {
        width: 100%;
        text-align: center;
    }

    .lightbox-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-card {
        padding: 42px 20px;
        border-radius: 22px;
    }

    .toast {
        min-width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        padding: 13px 16px;
        border-radius: 14px;
        font-size: 0.94rem;
    }

    .store-btn svg {
        width: 148px;
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-logo,
    .footer-links-group {
        justify-content: center;
        align-items: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .privacy-main {
        padding: 96px 0 48px;
    }

    .privacy-wrapper {
        padding: 0 16px;
    }

    .privacy-card {
        padding: 24px 18px;
    }

    .support-wrapper {
        padding: 0 16px;
    }

    .support-main {
        padding: 96px 0 56px;
    }

    .support-hero-card,
    .support-form-card,
    .support-side-card,
    .support-mini-card {
        padding: 22px 18px;
    }

    .support-highlight-list,
    .support-form-grid,
    .support-platform-options {
        grid-template-columns: 1fr;
    }

    .support-submit-row {
        align-items: stretch;
    }

    .support-submit {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
