/* ================================================================
   KENTWARE — Main Stylesheet
   ================================================================ */

:root {
    --bg: #030303;
    --surface: #070707;
    --surface2: #0d0d0d;
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.06);
    --accent-glow: rgba(255, 255, 255, 0.15);
    --text: #f0f0f0;
    --text-dim: #888;
    --text-muted: #3a3a3a;
    --border: rgba(255, 255, 255, 0.05);
    --border-med: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --radius-sm: 7px;
}

/* ===== RESET & BASE ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

#canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

nav, section, .stats-bar, .os-banner, .footer-cta, footer,
.pricing-page, .checkout-page { position: relative; z-index: 1; }

/* ===== NAVBAR ================================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 48px;
    transition: background 0.4s, border-bottom 0.4s, padding 0.3s;
}

#navbar.scrolled {
    background: rgba(3, 3, 3, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 16px 48px;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-logo {
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-right: auto;
}
.nav-logo .kent { color: var(--text); }
.nav-logo .ware { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    text-decoration: none;
    background: var(--accent);
    color: #000;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { opacity: 0.82; transform: translateY(-1px); }

/* ===== HERO ==================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 2rem 80px;
}

.hero-tag {
    display: inline-block;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 100px;
    margin-bottom: 44px;
    background: rgba(255, 255, 255, 0.02);
}

.hero-title {
    font-size: clamp(3.6rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -4px;
    margin-bottom: 32px;
}

.hero-accent {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #888888 45%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 52px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ================================================= */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    padding: 16px 38px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
    opacity: 0.83;
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-dim);
    text-decoration: none;
    padding: 16px 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-med);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

/* ===== STATS BAR =============================================== */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 40px;
}
.stat { text-align: center; padding: 0 56px; }
.stat-val {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-med);
    flex-shrink: 0;
}

/* ===== SECTION LAYOUT ========================================== */
section {
    padding: 120px 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}
.section-eyebrow {
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 14px;
    font-weight: 600;
}
.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.8px;
    margin-bottom: 14px;
    line-height: 1.1;
}
.section-desc {
    color: var(--text-dim);
    font-size: 0.975rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== PRODUCTS ================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.product-card:hover::after { transform: scaleX(1); }
.product-card.featured::after { transform: scaleX(1); }

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-7px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.product-card.featured {
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--surface);
    box-shadow: 0 0 64px rgba(255, 255, 255, 0.03);
}

.product-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 4px 11px;
    border-radius: 100px;
    margin-bottom: 8px;
}
.product-status {
    font-size: 0.68rem;
    color: #4ade80;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-weight: 600;
}
.product-name {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 2px;
    line-height: 1;
}
.product-game {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}
.product-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 20px;
}
.product-features {
    list-style: none;
    margin-bottom: 22px;
}
.product-features li {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-features li:last-child { border-bottom: none; }
.product-features li::before { content: '→'; color: var(--accent); font-size: 0.75rem; }
.product-os {
    font-size: 0.67rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.product-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.product-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pricing-preview {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 40px auto 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}
.pricing-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-product {
    display: block;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-product:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-dim);
}
.product-card.featured .btn-product {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}
.product-card.featured .btn-product:hover { opacity: 0.84; }

/* ===== FEATURES ================================================ */
.features-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100% !important;
    padding: 120px 0;
    background: var(--surface);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}
.features-section .section-header {
    max-width: 1120px;
    margin: 0 auto 72px;
    padding: 0 48px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}
.feature-icon { font-size: 1.5rem; margin-bottom: 16px; }
.feature-card h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.feature-card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.75; }

/* ===== OS BANNER =============================================== */
.os-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    padding: 30px 48px;
}
.os-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.os-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 44px;
    font-size: 0.855rem;
    color: var(--text-dim);
}
.os-check { color: #4ade80; font-weight: 700; font-size: 0.95rem; }
.os-divider { width: 1px; height: 22px; background: var(--border-med); }

/* ===== FAQ ===================================================== */
.faq-section {
    max-width: 760px !important;
    padding: 120px 32px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.1); }
.faq-item.open { border-color: rgba(255, 255, 255, 0.15); }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.975rem;
    font-weight: 600;
    text-align: left;
    padding: 22px 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-item.open .faq-q { color: var(--accent); }

.faq-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.2s;
    flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s ease;
}
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p {
    padding: 0 26px 22px;
    font-size: 0.89rem;
    color: var(--text-dim);
    line-height: 1.75;
}
.faq-a code {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.hero-cursor {
    display: inline-block;
    font-weight: 900;
    color: var(--text);
    animation: cursorBlink 0.75s step-end infinite;
    margin-left: 2px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ===== FOOTER CTA ============================================== */
.footer-cta {
    text-align: center;
    padding: 120px 48px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.footer-cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.8px;
    margin-bottom: 16px;
}
.footer-cta p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 auto 44px;
    max-width: 420px;
    line-height: 1.7;
}
.footer-cta .section-eyebrow { margin-bottom: 20px; }

/* ===== FOOTER ================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 26px 48px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-logo { font-size: 1rem; font-weight: 900; letter-spacing: -0.5px; }
.footer-logo .kent { color: var(--text); }
.footer-logo .ware { color: var(--accent); }
.footer-copy { font-size: 0.73rem; color: var(--text-muted); letter-spacing: 0.4px; }

/* ===== REVEAL ================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== PRICING PAGE =========================================== */
.pricing-page {
    padding: 150px 48px 80px;
    max-width: 1120px;
    margin: 0 auto;
}
.pricing-page-header {
    text-align: center;
    margin-bottom: 10px;
}
.pricing-page-header h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -2.5px;
    margin-top: 8px;
}
.pricing-page-header .section-eyebrow { margin-bottom: 8px; }

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 44px 0 60px;
}
.product-tab {
    background: var(--surface);
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 10px 30px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
}
.product-tab:hover { border-color: var(--accent); color: var(--text); }
.product-tab.active { background: var(--accent); border-color: var(--accent); color: #000; }

.pricing-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pricing-grid.active { display: grid; }

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 46px 32px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.price-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.4);
}
.price-card.featured {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(255, 255, 255, 0.04);
    transform: scale(1.04);
    z-index: 2;
}
.price-card.featured:hover { transform: scale(1.04) translateY(-5px); }

.price-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 18px;
    border-radius: 100px;
    white-space: nowrap;
}
.price-plan {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 18px;
}
.price-value {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 4px;
}
.price-sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 30px; }

.price-benefits {
    list-style: none;
    margin-bottom: 34px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    text-align: left;
}
.price-benefits li {
    font-size: 0.875rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-benefits li::before { content: '✓'; color: #4ade80; font-weight: 700; flex-shrink: 0; }

.btn-buy {
    display: block;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border-med);
    color: var(--text-dim);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.22s;
}
.btn-buy:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-dim);
}
.price-card.featured .btn-buy {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}
.price-card.featured .btn-buy:hover { opacity: 0.83; }

.product-tab.dev {
    opacity: 0.4;
    cursor: default;
}

.pricing-dev-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.pricing-dev-notice strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.pricing-note {
    text-align: center;
    margin-top: 54px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.pricing-note a { color: var(--accent); text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 36px;
    transition: color 0.2s;
}
.btn-back:hover { color: var(--text); }

/* ===== CHECKOUT PAGE ========================================== */
.checkout-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 48px;
}
.checkout-icon { font-size: 3.2rem; margin-bottom: 28px; }
.checkout-page h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}
.checkout-page p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 440px;
    margin: 0 auto 42px;
    line-height: 1.75;
}
.checkout-page .btn-back { margin-top: 28px; }

/* ===== RESPONSIVE ============================================= */
@media (max-width: 960px) {
    .products-grid,
    .features-grid,
    .pricing-grid { grid-template-columns: 1fr; }

    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-5px); }

    .stats-bar { flex-wrap: wrap; gap: 24px; padding: 28px 24px; }
    .stat { padding: 8px 20px; }
    .stat-divider { display: none; }

    .os-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 12px; }
    .os-divider { display: none; }
    .os-item { padding: 4px 0; }

    .nav-links { display: none; }
    #navbar, #navbar.scrolled { padding: 18px 24px; }

    section { padding: 80px 24px; }
    .features-section { padding: 80px 0; }
    .features-grid { padding: 0 24px; }
    .features-section .section-header { padding: 0 24px; }

    .product-tabs { flex-wrap: wrap; }
    .pricing-page { padding: 120px 24px 60px; }

    .faq-section { padding: 80px 20px; }
    .footer-cta { padding: 80px 24px; }
    footer { padding: 24px; }
}

