/* ─── Variables ─── */
:root {
    --bg-deep: #06060b;
    --bg-primary: #0c0c14;
    --bg-card: #13131e;
    --bg-card-hover: #181828;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --accent: #6ba1f8;
    --accent-dim: rgba(107, 161, 248, 0.15);
    --accent-glow: rgba(107, 161, 248, 0.08);
    --text-primary: #e8e8ef;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6e;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-document {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Navigation ─── */
nav {
    padding: 1.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
}

.back-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.back-link:hover {
    color: var(--text-primary);
}

/* ─── Hero ─── */
.hero {
    padding: 5rem 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 0 4rem;
        gap: 3rem;
        text-align: center;
    }
}

.hero-text {
    order: 1;
}

@media (max-width: 768px) {
    .hero-text {
        order: 2;
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: #06060b;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #83b3fa;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(107, 161, 248, 0.2);
}

.app-store-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.app-store-badge {
    height: 46px;
    width: auto;
}

/* ─── Phone Mockup ─── */
.hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-visual {
        order: 1;
    }
}

.phone-wrapper {
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 380px;
    height: 782px;
    background: linear-gradient(145deg, #1a1a2e, #0a0a14);
    border-radius: 42px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(107, 161, 248, 0.06);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 34px;
    overflow: hidden;
}

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

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: linear-gradient(145deg, #1a1a2e, #0a0a14);
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

/* ─── Divider ─── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
    margin: 1rem 0;
}

/* ─── Features ─── */
.features {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 161, 248, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--accent);
}

.feature-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-description ul {
    list-style: none;
    margin: 0.6rem 0;
    padding: 0;
}

.feature-description ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* ─── Support CTA ─── */
.support-cta {
    text-align: center;
    padding: 4rem 0 2rem;
}

.support-cta .btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(107, 161, 248, 0.3);
}

.support-cta .btn-primary:hover {
    background: var(--accent-dim);
    border-color: rgba(107, 161, 248, 0.5);
    box-shadow: 0 8px 30px rgba(107, 161, 248, 0.1);
    color: var(--accent);
}

.support-note {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ─── Page Header (subpages) ─── */
.page-header {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.page-header--form {
    padding: 3rem 0 3.5rem;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-description a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.page-description a:hover {
    opacity: 0.8;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ─── Document (privacy, terms) ─── */
.document {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
}

@media (max-width: 600px) {
    .document {
        padding: 1.75rem;
    }
}

.document h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.document h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.document h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.document p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.document ul, .document ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.document li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.document li ul {
    margin-top: 0.5rem;
}

.document a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.document a:hover {
    opacity: 0.8;
}

.document strong {
    color: var(--text-primary);
    font-weight: 500;
}

.document hr {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 2rem 0;
}

.contact-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* ─── Forms ─── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
}

@media (max-width: 600px) {
    .form-card {
        padding: 1.75rem;
    }
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #06060b;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #83b3fa;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(107, 161, 248, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ─── Footer ─── */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

footer.footer--subpage {
    padding: 4rem 0 3rem;
    border-top: none;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
