:root {
    /* Palette - Deep Amber CRT (Dark Theme) */
    --amber-bright: #ff8c00;
    --amber-dim: #cc5500;
    --amber-glow: rgba(255, 140, 0, 0.45);

    --cyan: #00d4ff;
    --green: #00ff88;
    --green-glow: rgba(0, 255, 136, 0.45);

    --bg-deep: #050505;
    --bg-panel: #0a0a0a;
    --bg-card: #111111;

    /* Cyan Grid (matching iso grid blue) */
    --grid-line: rgba(0, 212, 255, 0.04);

    --border-dim: #2a2a2a;

    --text-main: #e0e0e0;
    --text-muted: #a0a0a0; /* Bumped from #808080 for WCAG AA compliance */
    --text-dark: #000000;
    --bg-terminal: #0a0a0a;
    --terminal-title-bg: #2a2a2a;

    /* CRT overlay opacity (differs per theme) */
    --crt-scanline-opacity: 0.25;
    --crt-vignette-opacity: 0.6;
    --noise-opacity: 0.03;

    /* Nav background */
    --nav-bg: rgba(5, 5, 5, 0.95);
}

/* Light Theme - Clean Industrial */
[data-theme="light"] {
    /* Primary - Deep Orange (consistent with dark theme) */
    --amber-bright: #d65a00;
    --amber-dim: #a04000;
    --amber-glow: rgba(214, 90, 0, 0.20);

    /* Accent - Teal (consistent with dark theme) */
    --cyan: #008899;

    /* Secondary - Muted Forest Green (subdued for light theme) */
    --green: #2d6a4f;
    --green-glow: rgba(45, 106, 79, 0.20);

    /* Backgrounds - Warm light grey */
    --bg-deep: #f4f3f0;
    --bg-panel: #eae9e4;
    --bg-card: #e0dfda;
    --bg-terminal: #2a2a2a;
    --terminal-title-bg: #4a4a4a;

    /* Grid - subtle orange tint */
    --grid-line: rgba(214, 90, 0, 0.05);

    /* Borders - warm grey */
    --border-dim: #c5c3bc;

    /* Text - dark charcoal */
    --text-main: #2a2a2a;
    --text-muted: #5a5a5a;
    --text-dark: #f4f3f0;

    /* Reduced CRT effects for light theme */
    --crt-scanline-opacity: 0.04;
    --crt-vignette-opacity: 0.15;
    --noise-opacity: 0.015;

    /* Nav background */
    --nav-bg: rgba(244, 243, 240, 0.95);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* --- Skip Link for Accessibility --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber-bright);
    color: var(--bg-deep);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
}

/* --- CRT Overlay Effects --- */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.crt-overlay::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,var(--crt-scanline-opacity)) 0px,
        rgba(0,0,0,var(--crt-scanline-opacity)) 1px,
        transparent 1px,
        transparent 3px
    );
}

.crt-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 55%,
        rgba(0,0,0,var(--crt-vignette-opacity)) 100%
    );
}

/* Noise texture */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 9998;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Bloom - removed for cleaner look */

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* H1 - Sharp Default */
h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--amber-bright);
    line-height: 0.95;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 1px var(--amber-dim); /* Sharp */
    transition: all 0.3s ease;
    cursor: default;
}

.h1-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    cursor: default;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--amber-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.mono-label::before { content: '// '; opacity: 0.5; }

/* --- UI Elements --- */
.corner-frame {
    position: fixed;
    width: 40px; height: 40px;
    border: 2px solid var(--amber-bright);
    z-index: 100;
    pointer-events: none;
    opacity: 0.6;
}
.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 140, 0, 0.08);
    border: 2px solid var(--amber-bright);
    color: var(--amber-bright);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-transform: lowercase;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before { content: '> '; margin-right: 0.5rem; }

/* Button cursor animation */
.btn-cursor {
    display: inline-block;
    width: 0.5em;
    height: 1em;
    background: var(--amber-bright);
    margin-left: 0.3em;
    vertical-align: middle;
    animation: cursorBlink 1s step-end infinite;
}

.btn:hover .btn-cursor {
    background: var(--bg-deep);
}

/* Green Hover State */
.btn:hover {
    background: var(--green);
    color: var(--bg-deep);
    border-color: var(--green);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-dim);
}

/* Center nav-links absolutely for true centering on desktop */
@media (min-width: 769px) {
    nav {
        position: fixed;
    }
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--amber-bright);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    /* Sharp default */
    text-shadow: 0 0 1px var(--amber-dim);
    transition: all 0.3s ease;
    display: inline-block;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

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

/* --- Glitch Keyframes (Standard 3px offset) --- */
@keyframes glitch-skew {
    0% { transform: skew(0deg); text-shadow: none; }
    10% { transform: skew(0deg); text-shadow: none; }
    11% { transform: skew(-2deg); text-shadow: 3px 0 var(--amber-dim), -3px 0 var(--amber-bright); }
    12% { transform: skew(2deg); text-shadow: -3px 0 var(--amber-dim), 3px 0 var(--amber-bright); }
    13% { transform: skew(0deg); text-shadow: none; }
    100% { transform: skew(0deg); text-shadow: none; }
}

/* Nav Contact - Glitch on Hover Only (no constant animation) */
.nav-contact-glitch {
    color: var(--amber-bright) !important;
    font-weight: 600;
    position: relative;
    transition: all 0.15s ease;
    padding: 0.4rem 0.8rem;
    margin: -0.4rem -0.8rem;
    border: 1px solid transparent;
}

/* Contact Hover (subtle glitch + border) */
.nav-contact-glitch:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--amber-bright);
}

/* --- Logo Hover --- */
.logo:hover .logo-text {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* Title Hover (Glitch effect) */
.h1-link:hover h1 {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--amber-bright);
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    opacity: 0.7;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--amber-bright);
    transition: all 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 1.5rem;
}

.theme-toggle:hover {
    color: var(--amber-bright);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hide moon in dark mode, hide sun in light mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light theme specific overrides for hardcoded colors */
[data-theme="light"] .product-visual {
    background: #e5dfcf;
}

[data-theme="light"] .terminal-box {
    background: #1a1a1a;
    border-color: var(--amber-dim);
}

[data-theme="light"] .term-title-bar {
    background: #2d2d2d;
    color: var(--amber-bright);
}

[data-theme="light"] .term-body {
    color: #e0e0e0;
}

[data-theme="light"] .data-label {
    color: #888888;
}

[data-theme="light"] .data-val {
    color: var(--amber-bright);
}

[data-theme="light"] .status-pill {
    background: rgba(234, 233, 228, 0.85);
}

[data-theme="light"] .schematic-grid {
    background-image:
        linear-gradient(rgba(0, 136, 153, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 153, 0.08) 1px, transparent 1px);
}

/* Light theme: reduce blink-dot glow */
[data-theme="light"] .blink-dot {
    box-shadow: 0 0 4px var(--green);
}

/* Light theme: subtle hover effects */
[data-theme="light"] .service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.mobile-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    transition: all 0.2s;
}

.mobile-nav a:hover {
    color: var(--amber-bright);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;

    /* Static Tactical Grid (Alien Green) */
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;

    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
}

/* Center the Hero Text Properly */
.hero p {
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* H1 Cursor Animation */
.h1-cursor {
    display: inline-block;
    width: 0.6em;
    height: 0.8em;
    background: var(--amber-bright);
    margin-left: 0.1em;
    vertical-align: baseline;
    animation: cursorBlink 1s step-end infinite;
    box-shadow: none;
}

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

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-dim);
    background: rgba(18, 18, 18, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.05);
    border-radius: 50px;
    cursor: default;
    pointer-events: none;
}

.blink-dot {
    width: 8px; height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--green);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-wave-container {
    width: 100%;
    max-width: 800px;
    height: 80px;
    margin: 1rem auto 2rem;
    position: relative;
    overflow: hidden;
}

.hero-wave path {
    stroke: var(--amber-bright);
    stroke-width: 2.5;
    fill: none;

    /* Width calculation matches the extended SVG width */
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;

    /* Plays once on load */
    animation: drawWave 2.5s ease-out forwards;
}

@keyframes drawWave {
    to { stroke-dashoffset: 0; }
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--amber-dim);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 158, 31, 0.05);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,158,31,0.08), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s;
}
.service-card:hover::after { transform: translateY(100%); }

.service-icon {
    color: var(--amber-bright);
    width: 32px; height: 32px;
    margin-bottom: 1.5rem;
}

/* --- Products Section --- */
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    margin-top: 3rem;
    align-items: center;
}

.product-visual {
    background: #08090a;
    height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border-dim);
}

.schematic-grid {
    position: absolute;
    width: 200%; height: 200%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-100px);
}

.product-content { padding: 3rem; }

.tech-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-dim);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

/* --- Philosophy Section --- */
.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.manifesto p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.manifesto p.highlight {
    color: var(--amber-bright);
    font-weight: 500;
}

.values-list {
    list-style: none;
    border-left: 2px solid var(--amber-dim);
    padding-left: 2rem;
}

.values-list li {
    margin-bottom: 1.5rem;
    position: relative;
}

.values-list li h4 {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}

.values-list li p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --- Contact Terminal --- */
.terminal-box {
    background: var(--bg-terminal);
    border: 1px solid var(--text-muted);
    padding: 0;
    font-family: 'IBM Plex Mono', monospace;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

.term-title-bar {
    background: var(--terminal-title-bg);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    gap: 0.5rem;
}

.term-title-bar > span {
    white-space: nowrap;
}

.term-body {
    padding: 2.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-dim);
    padding: 0.75rem 0;
}

.data-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;}
.data-val { color: var(--amber-bright); text-align: right; }

.email-block {
    margin-top: 2rem;
    border: 2px solid var(--amber-bright);
    background: rgba(255, 140, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.email-block:hover {
    background: var(--green);
    border-color: var(--green);
}

.email-block:hover .email-address {
    color: var(--bg-deep);
    text-shadow: none;
}

.email-block:hover .click-hint {
    color: var(--bg-deep);
}

.email-address {
    font-size: 1.25rem;
    color: var(--amber-bright);
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: break-word;
}

.email-address:hover {
    text-decoration: underline;
}

.click-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cursor-block {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background: var(--green);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

/* --- Footer --- */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-dim);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--amber-bright);
}

.footer-links svg {
    width: 18px;
    height: 18px;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: show content if JS disabled or fails */
@media (scripting: none) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .corner-frame { display: none; }
    .product-feature, .philosophy-layout { grid-template-columns: 1fr; }
    .product-visual { height: 250px; border-right: none; border-bottom: 1px solid var(--border-dim); }
    .footer-content { flex-direction: column; gap: 1rem; }
    .email-address {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    .email-block {
        padding: 1rem;
    }
    .click-hint {
        font-size: 0.65rem;
    }
    nav { padding: 1rem 1.5rem; }
    .logo-text { font-size: 0.9rem; }
    .theme-toggle,
    .mobile-menu-btn {
        margin-left: 0;
        width: 36px;
        height: 36px;
    }

    /* Squish hero to ensure button is visible without scrolling */
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
        /* Remove the mask fade effect on mobile - it was making the button appear faded */
        mask-image: none;
    }

    .hero-wave-container {
        height: 50px;
        margin: 0.5rem auto 1rem;
    }

    .status-pill {
        margin-bottom: 1rem;
    }

    /* Make button more prominent on mobile */
    .btn {
        background: rgba(255, 140, 0, 0.25);
        border-width: 2px;
    }
}

/* Extra small screens (iPhone SE, small phones) */
@media (max-width: 400px) {
    .email-address {
        font-size: 0.85rem;
    }
    .term-body {
        padding: 1.5rem;
    }
    .term-title-bar {
        font-size: 0.65rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Sneaky glitch word effect */
.glitch-word {
    display: inline-block;
    position: relative;
}

.glitch-word.glitching {
    animation: glitch-shake 0.1s linear infinite;
    color: var(--cyan);
    text-shadow: 
        -1px 0 var(--amber-bright),
        1px 0 var(--green);
}

@keyframes glitch-shake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -1px); }
}
