:root {
    --bg: #F2F0EB;
    --fg: #18181B;
    --outline: #18181B;
    --blue: #1D4ED8;
    --yellow: #FACC15;
    --red: #DC2626;
    --stroke-width: 3px;
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --bg: #18181B;
    --fg: #F2F0EB;
    --outline: #F2F0EB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    transition: background-color 0.15s, color 0.15s;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

.mono-data {
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg);
    border-bottom: var(--stroke-width) solid var(--outline);
    z-index: 1000;
    transition: background-color 0.15s;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.geo-marker {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid var(--outline);
}
.circle { border-radius: 50%; }
.blue-fill { background-color: var(--blue); }

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.1s;
}

.nav a:hover {
    border-bottom: 2px solid var(--fg);
}

.theme-btn {
    background: var(--bg);
    border: var(--stroke-width) solid var(--outline);
    cursor: pointer;
    width: 50px;
    height: 26px;
    display: flex;
    align-items: center;
    padding: 2px;
    position: relative;
    border-radius: 0;
    box-shadow: 2px 2px 0px var(--outline);
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.15s, border-color 0.15s;
}

.theme-btn::before {
    content: 'MODE: LIGHT';
    position: absolute;
    right: calc(100% + 12px);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--fg);
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
}

[data-theme="dark"] .theme-btn::before {
    content: 'MODE: DARK';
}

.theme-btn:active {
    box-shadow: 0px 0px 0px var(--outline);
    transform: translate(2px, 2px);
}

.toggle-shape {
    width: 16px;
    height: 16px;
    background-color: var(--outline);
    border-radius: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-radius 0.3s;
    transform: translateX(0);
}

[data-theme="dark"] .toggle-shape {
    transform: translateX(24px);
}

/* Section */
.section {
    padding: 100px 0 60px;
    border-bottom: var(--stroke-width) solid var(--outline);
}
.section:last-of-type { border-bottom: none; }

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: var(--font-sans);
    letter-spacing: -1px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding-top: 120px;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.headline {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border: var(--stroke-width) solid var(--outline);
    background-color: var(--bg);
    color: var(--fg);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 6px 6px 0px var(--outline);
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: var(--yellow);
    color: #18181B;
}

.cta-btn.primary-cta {
    background-color: var(--red);
    color: #F2F0EB;
    border-color: var(--outline);
}
[data-theme="dark"] .cta-btn.primary-cta {
    color: #18181B; 
}

.cta-btn.primary-cta:hover {
    background-color: var(--blue);
    color: #F2F0EB;
}
[data-theme="dark"] .cta-btn.primary-cta:hover {
    color: #18181B;
}

.cta-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--outline);
}

.block-btn {
    display: block;
    text-align: center;
    width: 100%;
}

/* Interactive Canvas */
.interactive-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: var(--stroke-width) solid var(--outline);
    background-color: var(--bg);
    overflow: hidden;
}
.interactive-canvas:hover .red-triangle {
    transform: translate(20px, -20px) rotate(90deg);
}
.interactive-canvas:hover .yellow-rect {
    transform: translateX(-50px) scale(1.1);
}
.interactive-canvas:hover .blue-circle {
    transform: rotate(180deg) scale(0.8);
}
.interactive-canvas:hover .routing-line {
    width: 100%;
}

.geo-shape {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.red-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--red);
    top: 20%;
    left: 30%;
}

.yellow-rect {
    width: 120px;
    height: 80px;
    background-color: var(--yellow);
    border: var(--stroke-width) solid var(--outline);
    bottom: 20%;
    right: 20%;
}

.blue-circle {
    width: 100px;
    height: 100px;
    background-color: var(--blue);
    border-radius: 50%;
    border: var(--stroke-width) solid var(--outline);
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
}

.routing-line {
    position: absolute;
    height: var(--stroke-width);
    background-color: var(--outline);
    top: 50%;
    left: 0;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bento-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-item, .bento-card, .price-box, .review-box {
    border: var(--stroke-width) solid var(--outline);
    padding: 30px;
    background-color: var(--bg);
    box-shadow: 6px 6px 0px var(--outline);
}

.span-2 {
    grid-column: span 2;
}

.yellow-bg { background-color: var(--yellow); color: #18181B; }
.blue-bg { background-color: var(--blue); color: #F2F0EB; }
.red-bg { background-color: var(--red); color: #F2F0EB; }

[data-theme="dark"] .yellow-bg, 
[data-theme="dark"] .blue-bg, 
[data-theme="dark"] .red-bg {
    color: #18181B;
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 20px 0 10px;
}

.geo-icon {
    width: 40px;
    height: 40px;
    border: var(--stroke-width) solid var(--outline);
    background-color: var(--bg);
}
.square { border-radius: 0; }
.triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 34.6px solid var(--outline);
    background: transparent;
}
.play-triangle {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 34.6px solid var(--outline);
    background: transparent;
}
.intersection {
    position: relative;
    background: transparent;
    border: none;
}
.intersection::before, .intersection::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: var(--stroke-width) solid var(--outline);
}
.intersection::before { top: 0; left: 0; background-color: var(--yellow); }
.intersection::after { bottom: 0; right: 0; background-color: var(--blue); }

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
}
.border-bottom {
    border-bottom: var(--stroke-width) solid var(--outline);
    margin-bottom: 20px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-box {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.box-head {
    padding: 20px;
    font-weight: 900;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: var(--stroke-width) solid var(--outline);
    text-transform: uppercase;
}

.box-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    text-align: center;
    margin-bottom: 20px;
}

.spec-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.spec-list li {
    padding: 10px 0;
    border-bottom: 2px dashed var(--outline);
    font-weight: 600;
}
.spec-list li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-panel {
    border: var(--stroke-width) solid var(--outline);
    padding: 20px;
    box-shadow: 4px 4px 0px var(--outline);
}

.faq-q {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Reviews */
.review-body {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.review-author {
    font-family: var(--font-mono);
    font-weight: 900;
    text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: var(--stroke-width) solid var(--outline);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--fg);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}
.copyright a {
    color: var(--fg);
    text-decoration: none;
}

/* Internal pages */
.page-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 40px;
    border: var(--stroke-width) solid var(--outline);
    box-shadow: 6px 6px 0px var(--outline);
    background-color: var(--bg);
}

.page-container h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: var(--stroke-width) solid var(--outline);
    padding-bottom: 10px;
}
.page-container h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.page-container p, .page-container ul {
    margin-bottom: 15px;
    font-weight: 500;
}
.page-container ul {
    padding-left: 20px;
}
.page-container a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}
[data-theme="dark"] .page-container a {
    color: var(--yellow);
}

/* Responsive */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: span 1;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
    }
    .bento-grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    .interactive-canvas {
        max-width: 400px;
        margin: 0 auto;
    }
    .headline {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
