@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Oblique.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Bold-Oblique.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #e6e6e6;
    --fg: #0a0a0a;
    --accent: #ff3300; /* From Reference 1 */
    --grid-line: #0a0a0a;
    --font-main: 'Berkeley Mono', monospace;
    --font-display: 'Berkeley Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 14px;
}

/* --- TEXTURES & FX --- */

/* Grain/Noise Overlay to mimic Reference 2 */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
}

/* --- TYPOGRAPHY --- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 10vw, 8rem); line-height: 0.85; }
h2 { font-size: clamp(1.5rem, 5vw, 3rem); margin-bottom: 1rem; border-bottom: 2px solid var(--fg); display: inline-block; }
.mono-header { font-family: var(--font-main); letter-spacing: -1px; }

a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--fg); }
a:hover { background: var(--fg); color: var(--bg); }

/* --- LAYOUT UTILS --- */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-left: 1px solid var(--fg);
    border-right: 1px solid var(--fg);
    position: relative;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--fg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--fg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--fg); }

.cell {
    padding: 2rem;
    border-right: 1px solid var(--fg);
    position: relative;
}
.cell:last-child { border-right: none; }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .cell { border-right: none; border-bottom: 1px solid var(--fg); }
    h1 { font-size: 15vw; }
}

/* --- COMPONENTS --- */

/* Marquee Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--fg);
    color: var(--bg);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--fg);
    white-space: nowrap;
}
.ticker { display: inline-block; animation: ticker 20s infinite linear; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--fg);
    box-shadow: 4px 4px 0px var(--fg);
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-top: 1rem;
}
.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--fg);
    background: var(--fg);
    color: var(--accent);
}

/* Pseudo-graphic decorations */
.corner-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--fg);
    border-left: 2px solid var(--fg);
}
.top-left { top: 4px; left: 4px; }
.top-right { top: 4px; right: 4px; transform: rotate(90deg); }
.btm-left { bottom: 4px; left: 4px; transform: rotate(-90deg); }
.btm-right { bottom: 4px; right: 4px; transform: rotate(180deg); }

.barcode {
    height: 40px;
    width: 100%;
    background: repeating-linear-gradient(
        to right,
        #000,
        #000 2px,
        transparent 2px,
        transparent 4px,
        #000 4px,
        #000 8px,
        transparent 8px,
        transparent 9px
    );
    margin: 1rem 0;
}

.crosshair {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
}
.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}
.crosshair::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.crosshair::after { height: 100%; width: 2px; left: 50%; top: 0; transform: translateX(-50%); }

/* Technical Charts (ASCII simulation) */
.ascii-chart {
    font-family: monospace;
    white-space: pre;
    font-size: 10px;
    line-height: 10px;
    overflow-x: hidden;
    color: var(--fg);
    margin: 1rem 0;
}

/* Section Specifics */
.hero {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--fg);
    position: relative;
    background-image: radial-gradient(var(--fg) 1px, transparent 1px);
    background-size: 20px 20px;
}

.feature-number {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--fg);
    position: absolute;
    top: 0rem;
    right: 1rem;
    opacity: 0.2;
}

.pricing-card {
    border: 2px solid var(--fg);
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
}
.pricing-card.highlight {
    background: var(--fg);
    color: var(--bg);
}
.pricing-card.highlight .btn-primary {
    border-color: var(--bg);
    box-shadow: 4px 4px 0px var(--bg);
}

.stamp {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    transform: rotate(-5deg);
    margin-bottom: 1rem;
}

details {
    border: 1px solid var(--fg);
    margin-bottom: 1rem;
    padding: 0.5rem;
    cursor: pointer;
}
summary {
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
summary::after { content: "[+]"; }
details[open] summary::after { content: "[-]"; }

/* Logo styling */
.logo {
    height: 2rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.logo-large {
    height: 4rem;
    width: auto;
}
.logo-small {
    height: 1.5rem;
    width: auto;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border: none;
}
.logo-link:hover {
    background: none;
    color: inherit;
}

