/* ══════════════════════════════════════════════
   TaiOS Landing — Standalone Stylesheet
   No Tailwind runtime. Pure CSS for zero jank.
   ══════════════════════════════════════════════ */

/* ── Typography — Söhne Font System ── */
@font-face {
    font-family: 'Soehne';
    src: url('fonts/font1.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Soehne';
    src: url('fonts/font2.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Soehne';
    src: url('fonts/font3.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Soehne Mono';
    src: url('fonts/font4.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Soehne', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    /* No overflow:hidden on Y — this page scrolls */
}

body {
    background: #000;
    color: #fff;
}

/* ── NAVIGATION ── */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav-bar.nav-on-light {
    text-shadow: none;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    pointer-events: auto;
    color: #fff;
    transition: color 0.4s ease;
}
.nav-bar.nav-on-light .nav-brand {
    color: #1C1F24;
}
.nav-logo line, .nav-logo path {
    transition: stroke 0.4s ease;
}
.nav-logo circle {
    transition: fill 0.4s ease;
}
.nav-bar.nav-on-light .nav-logo line,
.nav-bar.nav-on-light .nav-logo path {
    stroke: #1C1F24;
}
.nav-bar.nav-on-light .nav-logo circle {
    fill: #1C1F24;
}
.nav-logo {
    width: 2.25rem;
    height: 1.125rem;
    color: currentColor;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    pointer-events: auto;
}
.nav-version {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
    transition: color 0.4s ease;
}
.nav-bar.nav-on-light .nav-version {
    color: #1C1F24;
}

/* ── LANGUAGE TOGGLE ── */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem 0.4rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    font-family: 'Soehne Mono', monospace;
    font-size: 0;
    line-height: 1;
    transition: all 0.35s ease;
    outline: none;
}
.nav-bar.nav-on-light .lang-btn {
    border-color: rgba(28,31,36,0.15);
    background: rgba(28,31,36,0.06);
    color: #1C1F24;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 16px rgba(255,255,255,0.08);
}
.lang-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.lang-label {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* ── i18n fade transition ── */
[data-i18n] {
    transition: opacity 0.18s ease;
}

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* GPU layer promotion — prevents repaint on scroll */
    will-change: transform;
    transform: translateZ(0);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.30));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1.25rem;
    animation: heroIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.10);
}
.hero-title {
    font-size: 9vw;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.25rem;
}
.hero-title strong {
    font-weight: 600;
}
.hero-desc {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}
.hero-desc strong {
    font-weight: 500;
}
.hero-credit {
    margin-top: 2rem;
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
}
.hero-credit a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}
.hero-credit a:hover {
    color: #fff;
}
.flag-tr {
    display: inline-block;
    width: 1.25em;
    height: 0.833em;
    vertical-align: -0.1em;
    margin-left: 0.15em;
    border-radius: 2px;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.15);
}

/* ── PHILOSOPHY ── */
.philosophy {
    background: #fff;
    color: #1C1F24;
    padding: 14rem 1.25rem;
    text-align: center;
}
.philosophy-quote {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.35;
    max-width: 900px;
    margin: 0 auto 3rem;
}
.italic-accent {
    color: #2F3E5C;
    font-style: italic;
}
.philosophy-body {
    font-size: 1.375rem;
    color: #6B7280;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 300;
}
.philosophy-body b,
.philosophy-body strong {
    font-weight: 500;
    color: #1C1F24;
}
/* ── OS PREVIEW SHOWCASE ── */
.showcase {
    background: #f7f8f9;
    padding: 8rem 2.5rem;
}
.showcase-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}
.showcase-label {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2F3E5C;
    margin-bottom: 1.25rem;
}
.showcase-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #1C1F24;
    margin-bottom: 1.5rem;
}
.showcase-desc {
    font-size: 1.25rem;
    color: #6B7280;
    line-height: 1.65;
    font-weight: 300;
}

/* Preview Container */
.preview-wrapper {
    max-width: 1200px;
    margin: 0 auto 5rem;
}
.preview-wrapper:last-child {
    margin-bottom: 0;
}
.preview-label {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(28,31,36,0.35);
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

/* OS Frame — the mini desktop */
.os-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06),
        0 24px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
    background: #e0e4ea;
}

/* Wallpaper */
.os-wallpaper {
    position: absolute;
    inset: 0;
}
.os-wallpaper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.os-wallpaper-blurred img {
    filter: blur(8px) brightness(1.04);
    transform: scale(1.05);
}

/* Mini Top Bar */
.os-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    z-index: 10;
}
.os-topbar-stage {
    background: rgba(255,255,255,0.45);
}
.os-tb-brand {
    display: flex;
    align-items: center;
    gap: 1%;
}
.os-tb-logo {
    width: 3%;
    min-width: 20px;
    height: auto;
    color: #2F3E5C;
}
.os-tb-name {
    font-size: clamp(7px, 1.1vw, 13px);
    font-weight: 600;
    color: #1C1F24;
    letter-spacing: 0.1em;
}
.os-tb-time {
    font-size: clamp(7px, 1.1vw, 13px);
    font-weight: 400;
    color: #1C1F24;
}

/* Zen Mode: Central Prompt */
.os-prompt-area {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3%;
    width: 55%;
    z-index: 5;
}
.os-greeting {
    font-size: clamp(10px, 2.4vw, 32px);
    font-weight: 300;
    color: rgba(30,25,20,0.7);
    text-align: center;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(255,255,255,0.4);
    margin-bottom: 2%;
}
.os-greeting span {
    color: #1C1F24;
    font-weight: 400;
}
.os-intent-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2%;
    padding: 2.8% 4%;
    border-radius: 14px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 0.5px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7);
}
.os-prefix {
    font-family: 'Soehne Mono', monospace;
    font-size: clamp(5px, 0.9vw, 14px);
    color: rgba(28,31,36,0.2);
    white-space: nowrap;
}
.os-placeholder {
    font-size: clamp(7px, 1.3vw, 20px);
    font-weight: 300;
    color: rgba(28,31,36,0.18);
}
.os-hint {
    font-size: clamp(5px, 0.85vw, 13px);
    color: #6B7280;
    margin-top: 1.5%;
    text-shadow: 0 1px 4px rgba(255,255,255,0.6);
}

/* Stage Mode: Panels */
.os-stage {
    position: absolute;
    top: 6.5%;
    left: 3%;
    right: 3%;
    bottom: 12%;
    display: flex;
    gap: 1.5%;
    z-index: 5;
}
.os-panel {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 0.5px solid rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.os-panel-primary {
    flex: 0.618;
}
.os-panel-secondary {
    flex: 0.382;
}
.os-panel-header {
    height: 10%;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 0.5px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.os-panel-title {
    font-size: clamp(5px, 0.7vw, 12px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
}
.os-panel-close {
    width: clamp(6px, 0.8vw, 14px);
    height: clamp(6px, 0.8vw, 14px);
    border-radius: 50%;
    border: 0.5px solid rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.os-panel-body {
    flex: 1;
    padding: 4% 5%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3%;
}
.os-panel-h1 {
    font-size: clamp(8px, 1.5vw, 22px);
    font-weight: 300;
    color: #1C1F24;
    letter-spacing: -0.02em;
}
.os-panel-p {
    font-size: clamp(6px, 0.85vw, 14px);
    color: #6B7280;
    line-height: 1.55;
    font-weight: 300;
}
.os-writing-area {
    margin-top: auto;
    border-radius: 8px;
    border: 0.5px dashed rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(28,31,36,0.18);
    font-size: clamp(6px, 0.8vw, 13px);
    padding: 4% 3%;
    min-height: 18%;
}

/* Lens Panel Content */
.os-lens-label {
    font-size: clamp(5px, 0.65vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(28,31,36,0.3);
    margin-bottom: 3%;
}
.os-lens-grid {
    display: flex;
    flex-direction: column;
    gap: 5%;
}
.os-lens-card {
    border-radius: 8px;
    border: 0.5px solid rgba(0,0,0,0.06);
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.os-lens-img {
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    position: relative;
    overflow: hidden;
}
.os-lens-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.os-lens-img-logo {
    background: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50%;
}
.os-lens-img-logo svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
}
.os-lens-meta {
    padding: 5% 6%;
}
.os-lens-title {
    font-size: clamp(5px, 0.7vw, 12px);
    color: #1C1F24;
    font-weight: 500;
}
.os-lens-date {
    font-size: clamp(4px, 0.55vw, 10px);
    color: rgba(28,31,36,0.35);
    margin-top: 2%;
    font-family: 'Soehne Mono', monospace;
}

/* Bottom Prompt Pill (Stage Mode) */
.os-bottom-pill {
    position: absolute;
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1%;
}
.os-pill-ctx {
    font-size: clamp(4px, 0.5vw, 9px);
    font-family: 'Soehne Mono', monospace;
    font-weight: 500;
    color: #2F3E5C;
    padding-left: 3%;
}
.os-pill-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2%;
    padding: 2% 3.5%;
    border-radius: 10px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 0.5px solid rgba(255,255,255,0.85);
    box-shadow: 0 6px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.os-pill-text {
    font-size: clamp(6px, 0.85vw, 14px);
    font-weight: 300;
    color: #1C1F24;
}

/* ── FEATURE GRID ── */
.features {
    background: #fff;
    padding: 2.5rem 2.5rem 11rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1440px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── CARDS ── */
.card {
    border-radius: 32px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 480px;
    /* GPU compositing — smooth hover transitions */
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}
.card-body {
    margin-top: auto;
}
.card:hover {
    transform: translateY(-4px) translateZ(0);
}
.card-light {
    background: #f7f8f9;
    border: 1px solid rgba(0,0,0,0.02);
}
.card-dark {
    background: #1C1F24;
    color: #fff;
}
.card-icon {
    margin-bottom: auto;
    opacity: 0.85;
    color: #2F3E5C;
}
.card-dark .card-icon {
    color: rgba(255,255,255,0.6);
}
.card-icon svg {
    width: 3rem;
    height: 3rem;
}
.card-label {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(28,31,36,0.4);
    margin-bottom: 1rem;
}
.card-label-light {
    color: rgba(255,255,255,0.4);
}
.card-title {
    font-size: 2.125rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.card-title-dark {
    color: #1C1F24;
}
.card-text {
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 300;
}
.card-text-gray {
    color: #6B7280;
}
.card-text-white70 {
    color: rgba(255,255,255,0.7);
}
.card-text strong {
    font-weight: 500;
}
.card-dark .card-text strong {
    color: #fff;
}
.card-light .card-text strong {
    color: #1C1F24;
}
.card-text code {
    font-family: 'Soehne Mono', monospace;
    font-size: 0.875rem;
    background: rgba(0,0,0,0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* ── OUTRO ── */
.outro {
    position: relative;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.outro-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle, rgba(47,62,92,0.3) 0%, transparent 55%);
    pointer-events: none;
}
.outro-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2.5rem;
}
.outro-title {
    font-size: 6vw;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.outro-desc {
    font-size: 1.625rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 4rem;
}
.outro-badge {
    display: inline-block;
    font-family: 'Soehne Mono', monospace;
    font-size: 0.875rem;
    color: #fff;
    padding: 1.25rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    font-weight: 500;
    letter-spacing: 0.15em;
    background: rgba(255,255,255,0.05);
}
.outro-credit {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.outro-credit span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
}
.outro-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Soehne Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}
.outro-credit-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}
.credit-icon {
    width: 0.875rem;
    height: 0.875rem;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-bar { padding: 1rem 1.25rem; }
    .philosophy { padding: 6rem 1.25rem; }
    .philosophy-quote { font-size: 2rem; }
    .philosophy-body { font-size: 1.125rem; }
    .features { padding: 1.25rem 1.25rem 5rem; }
    .card { padding: 40px; min-height: 360px; }
    .card-title { font-size: 1.75rem; }
    .card-text { font-size: 1rem; }
    .hero-title { font-size: 14vw; }
    .hero-desc { font-size: 1.125rem; }
    .showcase { padding: 4rem 1.25rem; }
    .showcase-title { font-size: 2rem; }
    .showcase-desc { font-size: 1rem; }
    .preview-wrapper { margin-bottom: 3rem; }
    .os-frame { border-radius: 10px; }
    .outro-title { font-size: 10vw; }
    .outro-desc { font-size: 1.125rem; }
}
