/* Literary Editorial & Warm Linen Manual Theme */
:root {
    --bg: #f8f6f2;
    --bg-top: #fcfbf9;
    --bg-panel: #ffffff;
    --bg-panel-2: #efebe8;
    --border: #e3deda;
    --border-soft: #ece7e3;
    --accent: #3730a3;
    --accent-dark: #282477;
    --accent-mist: #818cf8;
    --accent-haze: #e0e7ff;
    --text: #1a1819;
    --text-muted: #645e60;
    --aura-iris: rgba(55, 48, 163, 0.14);
    --aura-sky: rgba(129, 140, 248, 0.35);
    --font-display: "Iowan Old Style", "Charter", "Georgia", "Songti SC", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --shadow-btn: 0 1px 1px rgba(40, 36, 119, 0.25), 0 10px 24px -10px rgba(40, 36, 119, 0.55);
    --shadow-card: 0 1px 2px rgba(26, 24, 25, 0.04), 0 10px 24px -18px rgba(26, 24, 25, 0.18);
    --shadow-window: 0 20px 50px -20px rgba(40, 36, 119, 0.18), 0 0 0 1px rgba(26, 24, 25, 0.04);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.15s ease;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(1140px, 100% - 32px);
    margin: 0 auto;
}

/* Header */
.site-header {
    height: 68px;
    background: rgba(248, 246, 242, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.site-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.brand-title small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: #ffffff;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13.5px;
}

/* Hero Section with Ambient Aura */
.hero {
    position: relative;
    padding: 64px 0 54px 0;
    text-align: center;
}

.hero__aura {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 480px;
    background: radial-gradient(ellipse at 50% 30%, var(--aura-sky) 0%, var(--aura-iris) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__copy {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero__title em {
    font-style: italic;
    color: var(--accent);
}

.hero__lede {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 auto 28px auto;
    max-width: 680px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.facts-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 32px;
}

.fact-chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.home-app-preview {
    max-width: 760px;
    margin: 36px auto 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-window);
    text-align: left;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.preview-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preview-item-desc {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--white {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section--fade {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.section__heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px auto;
}

.section__heading h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.section__heading p {
    color: var(--text-muted);
    font-size: 16.5px;
}

/* Device Cards Grid */
.device-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.device-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.device-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.device-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Feature Tabs / Capabilities */
.feature-tabs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    margin-top: 28px;
}

.feature-index {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-index button {
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.feature-index button:hover {
    background: #ffffff;
    color: var(--accent);
}

.feature-index button.active {
    background: #ffffff;
    color: var(--accent);
    border-color: var(--accent-mist);
    box-shadow: 0 2px 8px rgba(55, 48, 163, 0.08);
}

.feature-detail {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.feature-detail h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.feature-detail p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.feature-detail pre {
    background: #111827;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 18px;
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.badge--accent {
    background: var(--accent-haze);
    color: var(--accent);
    border-color: var(--accent-mist);
}

/* Home Steps */
.home-steps {
    list-style: decimal-leading-zero;
    padding-left: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.home-steps li {
    margin-bottom: 28px;
    padding-left: 10px;
}

.home-steps h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.home-steps p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* FAQ */
.faq-box {
    max-width: 800px;
    margin: 32px auto 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 22px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    outline: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 22px 16px 22px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Download Page */
.download-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 44px;
    max-width: 820px;
    margin: 44px auto;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.download-card h1 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.spec-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    text-align: left;
}

.spec-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.spec-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    width: 120px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 44px 0;
    font-size: 13.5px;
    color: var(--text-muted);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

/* Responsive */
@media (max-width: 860px) {
    .preview-grid, .device-grid, .feature-tabs {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 880px) {
    .nav-links, .nav-menu {
        display: none !important;
    }
}
