/* Kneeva — design system */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0b0c0f;
    --bg-elevated: #12141a;
    --bg-card: #161922;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #f4f2ee;
    --text-muted: #9b958c;
    --accent: #e8a54b;
    --accent-soft: rgba(232, 165, 75, 0.14);
    --accent-glow: rgba(232, 165, 75, 0.35);
    --secondary: #6b9bd1;
    --secondary-soft: rgba(107, 155, 209, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    --header-h: 72px;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(11, 12, 15, 0.82);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(232, 165, 75, 0.35);
}

.btn-primary:hover {
    background: rgba(232, 165, 75, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 165, 75, 0.12);
}

.btn-gradient {
    background: linear-gradient(135deg, #c98a3c 0%, var(--accent) 50%, #f0c47a 100%);
    color: #1a1208;
    border: none;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(232, 165, 75, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

/* Hero */
.hero {
    padding: calc(var(--header-h) + 4rem) 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 55%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(232, 165, 75, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    background: var(--secondary-soft);
    border: 1px solid rgba(107, 155, 209, 0.25);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.gradient-text {
    color: var(--accent);
    font-style: italic;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.tag-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
}

.hero-visual-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-visual img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.hero-visual-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(11, 12, 15, 0.88);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual-badge strong {
    color: var(--accent);
    font-weight: 600;
}

/* Stats strip */
.stats {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-block {
    text-align: center;
    padding: 1.25rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sections */
section {
    padding: 5.5rem 0;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 3.5rem;
}

.section-head.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.feature-showcase {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.feature-showcase img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
    border-color: rgba(232, 165, 75, 0.25);
    transform: translateX(4px);
}

.feature-num {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Tech row */
.tech-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tech-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.tech-card:hover {
    border-color: rgba(107, 155, 209, 0.35);
}

.tech-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tech-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.stars {
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.rating-num {
    font-weight: 700;
    font-size: 1.125rem;
}

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

.quote-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
}

.quote-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
}

.quote-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.quote-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.spec-panel {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.spec-panel h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.spec-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span:first-child {
    color: var(--text-muted);
}

.spec-row span:last-child {
    font-weight: 500;
    text-align: right;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-mark {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.spec-note {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--secondary-soft);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.spec-note h4 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* CTA */
.cta {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232, 165, 75, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0 auto;
}

.cta .section-desc {
    margin-bottom: 1.75rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.footer-col p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Internal: page shell */
.page-shell {
    padding-top: var(--header-h);
    min-height: 100vh;
}

.page-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 36rem;
}

.contact-page,
.legal-page {
    padding: 3rem 0 5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
}

.contact-card-main h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(232, 165, 75, 0.45);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.info-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--accent-soft);
}

.info-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.info-content p,
.info-content a {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-content a {
    color: var(--accent);
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-note {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.service-card {
    padding: 1.5rem;
    background: var(--secondary-soft);
    border: 1px solid rgba(107, 155, 209, 0.2);
    border-radius: var(--radius-md);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent);
}

/* Legal */
.legal-content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.35rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-content strong {
    color: var(--text);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.highlight-box {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-left-color: var(--accent);
}

.highlight-box p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(232, 165, 75, 0.35);
    border-radius: 5px;
}

@media (max-width: 900px) {
    .header {
        height: auto;
        min-height: var(--header-h);
    }

    .hero-grid,
    .features-grid,
    .specs-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .tech-row,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-showcase {
        position: static;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
        height: auto;
        min-height: var(--header-h);
        padding: 0.75rem 0;
    }

    .nav {
        flex: 1 1 100%;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nav::-webkit-scrollbar {
        height: 4px;
    }
}

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}
