/* Net Works -- Cipher x Skunkworks */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg: #fafafa;
    --bg-alt: #fff;
    --black: #000;
    --text: #1a1a1a;
    --dim: #999;
    --faint: #bbb;
    --muted: #ccc;
    --rule: #eee;
    --nav-bg: rgba(250, 250, 250, 0.95);
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0d0d0d;
    --bg-alt: #161616;
    --black: #f0f0f0;
    --text: #e8e8e8;
    --dim: #888;
    --faint: #666;
    --muted: #555;
    --rule: #222;
    --nav-bg: rgba(13, 13, 13, 0.92);
    color-scheme: dark;
}

/* Dark-mode overrides for hardcoded colors throughout the rest of the file. */
:root[data-theme="dark"] .hero p,
:root[data-theme="dark"] .about p,
:root[data-theme="dark"] .contact p,
:root[data-theme="dark"] .data-card .data-desc,
:root[data-theme="dark"] .page-header p { color: #aaa; }
:root[data-theme="dark"] .quote blockquote { color: #c4c4c4; }
:root[data-theme="dark"] .svc-list .name { color: #ddd; }
:root[data-theme="dark"] .svc-list .desc { color: #888; }
:root[data-theme="dark"] .data-card { background: #161616; }
:root[data-theme="dark"] .data-card:hover { background: #1c1c1c; }
:root[data-theme="dark"] .trust-list li { color: #aaa; }
:root[data-theme="dark"] .hero-logo { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .mobile-menu { background: rgba(13, 13, 13, 0.98); }
:root[data-theme="dark"] .svc-list .name { color: #ddd; }

.nav-status { display: none !important; }

/* Theme toggle button. */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 26px;
    margin-left: 18px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    order: 99;
    color: var(--faint);
}
.theme-toggle:hover { border-color: var(--dim); }
.theme-toggle svg { display: none; }
.theme-toggle::before { content: "LIGHT"; color: var(--black); transition: color 0.2s; }
.theme-toggle::after { content: "DARK"; color: #777; transition: color 0.2s; }
:root[data-theme="dark"] .theme-toggle::before { color: #888; }
:root[data-theme="dark"] .theme-toggle::after { color: var(--black); }
@media (max-width: 480px) {
    .theme-toggle { height: 24px; margin-left: 10px; padding: 0 9px; gap: 6px; font-size: 9px; letter-spacing: 1.5px; }
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--black); text-decoration: none; }

/* ── NAV ──────────────────────────────────────── */
nav {
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 3px;
}

.nav-logo .sep { color: var(--faint); font-weight: 300; }

.hero-logo {
    display: block;
    margin-bottom: 32px;
    max-width: 320px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-logo { max-width: 240px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
    .hero-logo { max-width: 200px; margin-bottom: 20px; }
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    font-size: 12px;
    color: var(--dim);
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.nav-links a:hover { color: var(--black); }

.nav-status {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── HAMBURGER ───────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--dim); }

.status-dot {
    width: 5px;
    height: 5px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* ── HERO ─────────────────────────────────────── */
.hero {
    padding: 60px 60px 100px;
    max-width: 900px;
    margin-inline: auto;
}

.hero-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    color: #777;
    line-height: 1.7;
    max-width: 580px;
}

.divider {
    width: 40px;
    height: 3px;
    background: var(--black);
    max-width: 900px;
    margin: 0 auto;
    margin-left: max(60px, calc(50% - 450px + 60px));
}

/* ── SECTION LABEL ────────────────────────────── */
.section-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--faint);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ── SERVICES / CAPABILITIES ──────────────────── */
.services {
    padding: 60px 60px 100px;
    max-width: 900px;
    margin-inline: auto;
}

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

.svc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
    transition: padding-left 0.3s;
}

.svc-list li:hover { padding-left: 12px; }

.svc-left {
    display: flex;
    align-items: center;
}

.svc-list .id {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-right: 16px;
    min-width: 54px;
}

.svc-list .name {
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

.svc-list .desc {
    font-size: 13px;
    color: #aaa;
    max-width: 320px;
    text-align: right;
}

/* ── NUMBERS ──────────────────────────────────── */
.numbers {
    padding: 60px 60px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-alt);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 900px;
    margin-inline: auto;
}

.num-item { text-align: center; }

.num-value {
    font-family: var(--mono);
    font-size: 36px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -1px;
}

.num-label {
    font-size: 12px;
    color: var(--dim);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ── ABOUT ────────────────────────────────────── */
.about {
    padding: 80px 60px;
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.about-inner { max-width: 600px; margin-inline: auto; }

.about h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
}

.about p {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ── TERMINAL ─────────────────────────────────── */
.terminal-section {
    padding: 80px 60px;
    max-width: 760px;
    margin-inline: auto;
}

.terminal {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
}

.terminal-bar {
    background: #1a1a1a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #222;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }

.terminal-title {
    font-family: var(--mono);
    font-size: 11px;
    color: #555;
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.9;
    color: #777;
}

.terminal-body .prompt { color: #2ecc71; }
.terminal-body .cmd { color: #eee; }
.terminal-body .hl { color: #f0c040; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #2ecc71;
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ── QUOTE ────────────────────────────────────── */
.quote {
    padding: 80px 60px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-alt);
}

.quote blockquote {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: #555;
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.7;
    font-style: italic;
}

.quote .attr {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
    max-width: 650px;
    margin-inline: auto;
}

/* ── CONTACT ──────────────────────────────────── */
.contact {
    padding: 80px 60px;
    max-width: 900px;
    margin-inline: auto;
}

.contact h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.contact p {
    font-size: 15px;
    color: #888;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact a.cta {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    padding-bottom: 3px;
    transition: border-color 0.2s;
}

.contact a.cta:hover { border-color: var(--dim); }

/* ── DATA PAGE ────────────────────────────────── */
.page-header {
    padding: 100px 60px 60px;
    max-width: 900px;
    margin-inline: auto;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 17px;
    font-weight: 300;
    color: #777;
    line-height: 1.7;
    max-width: 600px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin: 0 60px 60px;
}

.data-card {
    background: var(--bg-alt);
    padding: 32px;
    transition: background 0.2s;
}

.data-card:hover { background: #f5f5f5; }

.data-card .data-id {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.data-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.data-card .data-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.data-card .data-meta {
    display: flex;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
}

.data-card .data-meta .val { color: var(--black); }

.data-card .data-price {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-top: 16px;
}

.data-card .data-price .from {
    font-size: 11px;
    font-weight: 300;
    color: var(--dim);
}

.trust-section {
    padding: 60px 60px;
    max-width: 800px;
    margin-inline: auto;
}

.trust-section h3 {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

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

.trust-list li {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    padding-left: 20px;
    position: relative;
}

.trust-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-family: var(--mono);
    color: var(--muted);
}

/* ── FOOTER ───────────────────────────────────── */
footer {
    padding: 30px 60px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}

footer p a {
    display: inline-block;
    line-height: 2.2;
}

.footer-ghost {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ── RESPONSIVE -- TABLET / NARROW DESKTOP ─────── */
@media (max-width: 960px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-status { display: none; }
}
@media (max-width: 768px) {
    .hero { padding: 40px 24px 60px; }
    .divider { margin-left: 24px; }
    .services { padding: 40px 24px 60px; }
    .numbers { padding: 40px 24px; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .about { padding: 48px 24px; }
    .terminal-section { padding: 48px 24px; }
    .quote { padding: 48px 24px; }
    .contact { padding: 48px 24px; }
    footer { flex-direction: column; gap: 6px; padding: 20px 24px; text-align: center; }
    .svc-list .desc { display: none; }
    .svc-list .id { display: none; }
    .page-header { padding: 60px 24px 40px; }
    .data-grid { margin: 0 24px 40px; grid-template-columns: 1fr; }
    .trust-section { padding: 40px 24px; }
}

/* ── RESPONSIVE -- PHONE ──────────────────────── */
@media (max-width: 480px) {
    nav { padding: 16px 16px; }
    .hero { padding: 32px 16px 40px; }
    .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
    .hero p { font-size: 15px; }
    .hero-label { font-size: 9px; letter-spacing: 4px; }
    .divider { margin-left: 16px; }
    .services, .about, .terminal-section, .quote, .contact { padding-left: 16px; padding-right: 16px; }
    .svc-list .name { font-size: 15px; }
    .about h2, .contact h2 { font-size: 22px; }
    .terminal-body { font-size: 11px; padding: 14px; }
    .num-value { font-size: 28px; }
    .page-header { padding: 48px 16px 32px; }
    .page-header h1 { font-size: 24px; }
    .data-grid { margin: 0 16px 32px; }
    .data-card { padding: 20px; }
    .trust-section { padding: 32px 16px; }
    footer { padding: 16px; }
}
