@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #F8F7F4;
    --surface: #FFFFFF;
    --surface-subtle: #F1EFEA;
    --surface-muted: #EAE7DF;
    --text: #141413;
    --text-secondary: #4A4945;
    --text-muted: #76746E;
    --border: #E2E0D8;
    --border-strong: #C5C2B8;
    --accent: #1B4332;
    --accent-subtle: #E8F0EC;
    --accent-border: #B7D1C4;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --max-width: 1120px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--text);
    color: var(--surface);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.skip-link:focus {
    left: 16px;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: inline-block;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-accent {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--surface);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

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

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
    background-color: var(--surface-subtle);
}

.nav-item {
    position: relative;
}

.dropdown-caret {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    display: none;
    z-index: 200;
    padding: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 9px 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.nav-menu .dropdown-menu a:hover {
    background: var(--surface-subtle);
    color: var(--text);
}

.nav-item.dropdown.open > .dropdown-menu {
    display: flex;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    background-color: var(--text);
    color: var(--surface) !important;
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background-color: #2B2B29;
    border-color: #2B2B29;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text) !important;
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--surface-subtle);
    border-color: var(--text);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 112px 0 0;
    background-color: var(--bg);
}

.hero-inner {
    max-width: 860px;
}

.hero-title {
    font-size: clamp(2.4rem, 11vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    margin-bottom: 28px;
    color: var(--text);
    white-space: nowrap;
}

.hero-brand-prefix {
    color: var(--text);
}

.hero-rotating-word {
    color: var(--accent);
    display: inline-block;
    text-decoration: none;
    border-bottom: none;
    text-transform: lowercase;
    transition: opacity 260ms ease, transform 260ms ease;
}

.hero-rotating-word.is-leaving {
    opacity: 0;
    transform: translateY(0.12em);
}

.hero .subtitle {
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .btn {
    padding: 14px 26px;
    font-size: 0.96rem;
}

/* Metrics Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 88px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    padding: 28px 24px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric + .metric {
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.metric-value {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Division Rows */
.division-list {
    border-top: 1px solid var(--border-strong);
}

.division-row {
    display: grid;
    grid-template-columns: 56px minmax(180px, 1fr) 2fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.division-index {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.division-name {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
}

.division-name span {
    color: var(--accent);
}

.division-desc {
    font-size: 0.96rem;
    margin: 0;
}

.division-status {
    justify-self: end;
    white-space: nowrap;
}

/* Closing CTA Band */
.cta-band {
    background: var(--text);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-band h2 {
    color: var(--surface);
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-band p {
    color: #B9B7B0;
    max-width: 520px;
}

.cta-band .btn {
    background: var(--surface);
    color: var(--text) !important;
    border-color: var(--surface);
    padding: 14px 26px;
}

.cta-band .btn:hover {
    background: var(--surface-subtle);
}

.cta-band .btn-secondary {
    background: transparent;
    color: var(--surface) !important;
    border-color: #55544F;
}

.cta-band .btn-secondary:hover {
    background: #2B2B29;
    border-color: var(--surface);
}

/* Page Header for Inner Pages */
.page-header {
    padding: 52px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    background: var(--bg);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 8px;
    margin-bottom: 12px;
}

.page-header p {
    max-width: 680px;
    font-size: 1.05rem;
}

.breadcrumb,
.page-header .mono-label {
    display: none !important;
}

/* Section Layout */
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

/* Desktop Enhanced Viewport-Snap Layout (Homepage only) */
@media (min-width: 992px) {
    body.home-page {
        scroll-snap-type: y mandatory;
        scroll-padding-top: 68px; /* Offset for sticky header height */
    }

    body.home-page .hero {
        min-height: calc(100vh - 68px);
        display: flex;
        align-items: center;
        padding: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    body.home-page .section {
        min-height: calc(100vh - 68px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    body.home-page .home-cta-section {
        min-height: auto;
        padding: 48px 0 0;
        justify-content: flex-start;
    }

    body.home-page footer {
        scroll-snap-align: end;
        margin-top: 0;
        padding: 40px 0 28px;
    }

    body.home-page .section-header {
        margin-bottom: 24px;
    }

    body.home-page .home-showcase-card {
        padding: 24px 28px;
    }

    body.home-page .home-showcase-card .kp-description {
        margin: 12px 0 18px 0;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-header-left p {
    max-width: 600px;
    margin-top: 6px;
}

/* Cards & Panels */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}

/* App Knowledge Panels (2-Column Grid on Desktop, 1-Column on Mobile) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.knowledge-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.knowledge-panel:hover {
    border-color: var(--text);
}

.knowledge-panel:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.kp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    padding: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.app-title-group h3 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.app-category {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.kp-description {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 18px;
}

/* Home Page Dedicated Showcase Card Variant */
.home-showcase-card .app-header {
    gap: 18px;
}

.home-showcase-card .app-logo {
    width: 68px;
    height: 68px;
    padding: 8px;
}

.home-showcase-card .app-title-group h3 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--text);
}

.home-showcase-card .kp-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 16px 0 22px 0;
}

.app-rating-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.app-rating-strip .stars {
    color: #F59E0B;
    letter-spacing: 2px;
    font-size: 0.95rem;
    line-height: 1;
}

.app-rating-strip .rating-num {
    font-weight: 700;
    color: var(--text);
}

.app-rating-strip .rating-divider {
    color: var(--border-strong);
    padding: 0 2px;
}

.app-rating-strip .downloads-count {
    color: var(--text-secondary);
}

.kp-meta-table {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

.kp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.kp-meta-value {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

.kp-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.card-actions .btn {
    flex: 1 1 auto;
    text-align: center;
}

.kp-click-hint {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 4-Column Architectural Grid (Never 3 in a row) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.spec-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.spec-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

/* Dedicated App Detail Page Layout */
.app-detail-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 32px;
}

.app-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.app-detail-identity {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.app-detail-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    padding: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.app-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-specs-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
}

.app-detail-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.feature-list li {
    padding: 12px 16px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

.feature-list li strong {
    display: block;
    margin-bottom: 2px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.spec-table th {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    width: 42%;
}

.spec-table td {
    color: var(--text);
    font-weight: 500;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion Styles (No FontAwesome dependencies) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 24px;
}

.faq-accordion summary {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-accordion[open] summary::after {
    content: '-';
    color: var(--text);
}

.faq-accordion[open] summary {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.faq-content p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.96rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Team Profile Layout */
.team-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.team-photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-subtle);
}

/* Legal & Policy Content */
.prose h3 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.prose h4 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.prose p {
    margin-bottom: 12px;
}

.prose ul {
    margin: 10px 0 16px 20px;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 6px;
}

.prose hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: none;
    padding: 44px 0 28px;
    margin-top: 24px;
    color: var(--text);
    font-size: 0.92rem;
}

.footer-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 24px;
}

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

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-company-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-company-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-company-nav a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-socials-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials-inline .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    color: var(--text);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.footer-socials-inline .social:hover {
    border-color: var(--text);
    background-color: var(--surface);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-socials-inline .social-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    fill: currentColor;
}

.footer-bottom {
    padding-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    flex-wrap: nowrap;
}

.footer-bottom .bottom-left,
.footer-bottom .bottom-right {
    color: var(--text-muted);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.footer-bottom .bottom-right {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-bottom .bottom-left,
    .footer-bottom .bottom-right {
        font-size: 0.75rem;
    }

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 960px) {
    .division-row {
        grid-template-columns: 44px 1fr auto;
        gap: 8px 20px;
    }

    .division-desc {
        grid-column: 2 / -1;
    }

    .division-status {
        grid-row: 1;
        grid-column: 3;
    }

    .grid-4,
    .app-specs-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-detail-columns {
        grid-template-columns: 1fr;
    }

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--surface);
        padding: 16px;
        border-bottom: 1px solid var(--border-strong);
        z-index: 150;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-menu a {
        padding: 10px 12px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu .dropdown-menu {
        position: static;
        border: none;
        background: var(--surface-subtle);
        padding: 4px 0 4px 12px;
        margin-top: 4px;
    }

    .hero {
        padding: 64px 0 0;
    }

    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 56px;
    }

    .metric,
    .metric + .metric {
        padding: 20px 16px;
        border-left: none;
    }

    .metric:nth-child(even) {
        border-left: 1px solid var(--border);
    }

    .metric:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

    .cta-band {
        padding: 32px 24px;
    }

    .section {
        padding: 44px 0;
    }

    .app-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-detail-identity {
        flex-direction: column;
    }

    .footer-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-company-nav {
        gap: 12px 16px;
    }

    .footer-socials-inline {
        margin-top: 2px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .footer-bottom .bottom-right {
        margin-left: 0;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card,
    .knowledge-panel,
    .app-detail-hero {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .division-row {
        grid-template-columns: 1fr;
    }

    .division-desc,
    .division-status {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .grid-4,
    .app-specs-strip,
    .kp-meta-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions .btn,
    .hero-actions .btn,
    .app-detail-actions .btn {
        width: 100%;
    }

    .waitlist-input-shell {
        flex-direction: column;
        padding: 8px;
    }

    .waitlist-input-shell .waitlist-input {
        width: 100%;
        text-align: center;
    }

    .waitlist-input-shell .btn {
        width: 100%;
    }
}

/* Waitlist / Coming Soon Loop Page */
.waitlist-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
}

@media (min-width: 992px) {
    body.waitlist-page {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body.waitlist-page main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        width: 100%;
    }

    body.waitlist-page .waitlist-section {
        padding: 0;
        width: 100%;
    }

    body.waitlist-page footer {
        margin-top: 0;
        padding: 20px 0 16px;
        flex-shrink: 0;
    }

    body.waitlist-page .footer-horizontal {
        padding-bottom: 12px;
    }
}

.waitlist-card {
    background: transparent;
    border: none;
    padding: 8px 20px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.infinity-loop-wrap {
    width: min(500px, 86vw);
    height: 250px;
    max-height: 28vh;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infinity-loop-svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 250px;
    display: block;
    margin: 0 auto;
    overflow: visible;
}

.waitlist-title {
    font-size: clamp(1.9rem, 3.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 6px;
    color: var(--text);
    text-align: center;
}

.waitlist-title span {
    color: var(--accent);
}

.waitlist-loop-heading {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    text-align: center;
}

.waitlist-subtitle {
    color: var(--text-secondary);
    font-size: 0.96rem;
    max-width: 560px;
    margin: 0 auto 8px;
    line-height: 1.6;
    text-align: center;
}

.waitlist-cta-line {
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 600;
    max-width: 540px;
    margin: 0 auto 18px;
    line-height: 1.55;
    text-align: center;
}

.waitlist-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waitlist-input-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 5px;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(20, 20, 19, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.waitlist-input {
    width: 230px;
    max-width: 58vw;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    outline: none;
    box-sizing: border-box;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.waitlist-input:focus {
    border-color: var(--accent);
    background: var(--surface);
    outline: none;
}

.waitlist-input::placeholder {
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
}

.waitlist-btn {
    height: 36px;
    padding: 0 18px;
    font-size: 0.86rem;
    flex-shrink: 0;
    background-color: var(--accent);
    border-color: var(--accent);
}

.waitlist-btn:hover {
    background-color: #143325;
    border-color: #143325;
}

.waitlist-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 0;
}

/* Theme-Based Waitlist Confirmation Popup Modal */
.waitlist-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 20, 19, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: waitlistFadeIn 180ms ease-out;
}

.waitlist-modal {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(20, 20, 19, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.waitlist-modal-badge {
    margin-bottom: 12px;
}

.waitlist-modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 10px;
}

.waitlist-modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.waitlist-modal-text strong {
    color: var(--text);
}

.waitlist-modal-text span {
    color: var(--accent);
}

.waitlist-modal-close {
    min-width: 160px;
    background-color: var(--accent);
    border-color: var(--accent);
}

.waitlist-modal-close:hover {
    background-color: #143325;
    border-color: #143325;
}

@keyframes waitlistFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
