/* Konelia Portal - Dual Theme System */
/* Professional institutional design with light/dark modes */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════
   THEME VARIABLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Light Theme (Default) */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-accent: #212529;

    --border-primary: #e9ecef;
    --border-secondary: #dee2e6;
    --border-accent: #ced4da;

    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --text-dim: #adb5bd;
    --text-inverse: #ffffff;

    --accent-blue: #228be6;
    --accent-blue-hover: #1c7ed6;
    --accent-green: #2f9e44;
    --accent-glow: rgba(34, 139, 230, 0.1);

    /* Component-specific */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: var(--border-primary);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    --glow-color: rgba(0, 0, 0, 0.03);
    --noise-opacity: 0;

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --gap: 16px;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-pill: 100px;
}

[data-theme="dark"] {
    /* Dark Theme (Void) */
    --bg-primary: #030304;
    --bg-secondary: #08080A;
    --bg-tertiary: #0d0d0f;
    --bg-card: #08080A;
    --bg-card-hover: #101012;
    --bg-accent: #ffffff;

    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(255, 255, 255, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #3f3f46;
    --text-inverse: #000000;

    --accent-blue: #3B82F6;
    --accent-blue-hover: #60a5fa;
    --accent-green: #10B981;
    --accent-glow: rgba(59, 130, 246, 0.15);

    /* Component-specific */
    --nav-bg: rgba(8, 8, 10, 0.95);
    --nav-border: var(--border-primary);
    --card-shadow: 0 0 0 1px var(--border-primary);
    --card-shadow-hover: 0 0 0 1px var(--border-secondary), 0 8px 24px rgba(0,0,0,0.4);
    --glow-color: rgba(255, 255, 255, 0.04);
    --noise-opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   AMBIENT EFFECTS (Dark theme only)
   ═══════════════════════════════════════════════════════════════ */

.ambient-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity);
    transition: opacity 0.3s ease;
}

.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════════════════ */

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION / HUD
   ═══════════════════════════════════════════════════════════════ */

.hud-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.brand-unit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-symbol svg {
    width: 22px;
    height: 22px;
}

.brand-text {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.brand-suffix {
    color: var(--text-muted);
    font-weight: 400;
}

.hud-status {
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.status-value {
    color: var(--text-primary);
}

.text-success {
    color: var(--accent-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Inline footer theme toggle */
.theme-toggle-inline {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.theme-toggle-inline:hover {
    opacity: 1;
}

.theme-toggle-inline .icon-sun {
    display: none;
}

.theme-toggle-inline .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle-inline .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle-inline .icon-moon {
    display: none;
}

.hud-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-pill);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.hud-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

/* ═══════════════════════════════════════════════════════════════
   GRID INTERFACE
   ═══════════════════════════════════════════════════════════════ */

.grid-interface {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: var(--gap);
    min-height: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GRID ITEMS (CARDS)
   ═══════════════════════════════════════════════════════════════ */

.grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.grid-item:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Glow Effect (cursor follow) */
[data-glow]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            var(--glow-color),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

[data-glow]:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero-section {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Status Badge - Hero */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.status-text {
    color: var(--text-primary);
    font-weight: 500;
}

.status-date {
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 1px solid var(--border-primary);
}

.hero-display {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 440px;
    padding-left: 16px;
    border-left: 2px solid var(--border-secondary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: auto;
}

.tech-specs {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: auto;
    flex-wrap: wrap;
}

.spec-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 9px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.spec-value {
    color: var(--text-muted);
}

.spec-divider {
    width: 1px;
    height: 24px;
    background: var(--border-primary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO VISUALIZER
   ═══════════════════════════════════════════════════════════════ */

.hero-visualizer {
    margin-top: 48px;
    position: relative;
    border-top: 1px solid var(--border-primary);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.market-depth-lines {
    display: flex;
    gap: 4px;
    height: 4px;
    width: 100%;
    opacity: 0.5;
    margin-bottom: 8px;
}

.line {
    flex: 1;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: pulse-width 3s infinite ease-in-out;
    animation-delay: var(--d);
}

@keyframes pulse-width {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.asset-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.asset-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 8px;
    transition: all 0.2s;
    height: 100px;
}

.asset-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.asset-icon {
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.asset-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
}

.asset-card:hover .asset-icon {
    color: var(--text-primary);
}

.asset-name {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.asset-card:hover .asset-name {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════════ */

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card.primary {
    grid-column: 2 / 4;
    background: var(--bg-accent);
    color: var(--text-inverse);
}

.product-card.primary .card-desc {
    color: var(--text-inverse);
    opacity: 0.7;
}

.product-card.primary .product-icon-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
}

[data-theme="dark"] .product-card.primary .product-icon-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.product-card.primary .header-text h3 {
    color: var(--text-inverse);
}

.product-card.primary .tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
}

[data-theme="dark"] .product-card.primary {
    background: #0a0a0c;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .product-card.primary .header-text h3 {
    color: #ffffff;
}

[data-theme="dark"] .product-card.primary .card-desc {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

[data-theme="dark"] .product-card.primary .tag {
    color: #ffffff;
}

[data-theme="dark"] .product-card.primary .btn-glitch {
    color: #ffffff;
}

.card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.product-icon-box {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.header-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-blue);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

/* Capability Grid - Terminal Style */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 24px;
}

.cap-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cap-indicator {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    flex-shrink: 0;
}

.cap-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
}

.product-card.primary .cap-label {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .product-card.primary .cap-label {
    color: rgba(255, 255, 255, 0.5);
}

.card-footer {
    margin-top: auto;
}

.btn-glitch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-inverse);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-glitch:hover {
    opacity: 0.8;
}

.btn-deco {
    animation: blink 1s infinite;
}

.launch-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   TICKER SECTION
   ═══════════════════════════════════════════════════════════════ */

.ticker-section {
    grid-column: 2 / 4;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-card);
}

.ticker-track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    padding: 0 32px;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.ticker-sep {
    color: var(--text-dim);
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 8px;
}

.legal-block {
    font-size: 12px;
    color: var(--text-muted);
}

.dimmed {
    color: var(--text-dim);
    font-size: 10px;
    margin-top: 4px;
}

.contact-block {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL & FORM
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Cloudflare Turnstile Widget */
.cf-turnstile {
    margin: 8px 0 16px 0;
}

.cf-turnstile iframe {
    border-radius: 8px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.form-submit:hover {
    background: var(--accent-blue-hover);
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Small laptops (1024px - 1200px) */
@media (max-width: 1200px) {
    .app-shell {
        padding: 20px;
        gap: 20px;
    }

    .grid-interface {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .hero-section {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: auto;
        padding: 28px;
    }

    .hero-visualizer {
        margin-top: 32px;
    }

    .product-card.primary {
        grid-column: 1 / -1;
        padding: 28px;
    }

    .product-card.secondary {
        padding: 24px;
    }

    .ticker-section {
        grid-column: 1 / -1;
        height: 50px;
        padding: 0 16px;
    }

    .capability-grid {
        gap: 6px 12px;
    }

    .cap-label {
        font-size: 9px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .app-shell {
        padding: 16px;
        gap: 16px;
    }

    .grid-interface {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-section {
        padding: 24px;
    }

    .hero-display {
        font-size: clamp(28px, 4vw, 40px);
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-tagline {
        font-size: 10px;
    }

    .hero-visualizer {
        margin-top: 24px;
        padding-top: 20px;
    }

    .asset-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .asset-card {
        padding: 12px 6px;
        height: 85px;
        gap: 8px;
    }

    .asset-icon {
        width: 28px;
        height: 28px;
    }

    .asset-name {
        font-size: 9px;
    }

    .product-card {
        padding: 24px;
    }

    .product-card.primary {
        padding: 24px;
    }

    .card-header {
        margin-bottom: 16px;
    }

    .product-icon-box {
        width: 44px;
        height: 44px;
    }

    .header-text h3 {
        font-size: 16px;
    }

    .card-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .capability-grid {
        gap: 6px 12px;
        margin-bottom: 20px;
    }

    .hud-footer {
        padding: 0 4px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .legal-block {
        font-size: 11px;
    }

    .footer-link {
        font-size: 10px;
    }
}

/* Small tablets / Large phones (768px) */
@media (max-width: 768px) {
    .hud-nav {
        padding: 10px 16px;
        gap: 8px;
    }

    .brand-text {
        font-size: 13px;
    }

    .brand-symbol svg {
        width: 20px;
        height: 20px;
    }

    .hud-action {
        padding: 6px 12px;
        font-size: 11px;
    }

    .grid-item {
        padding: 20px;
    }

    .hero-display {
        font-size: clamp(24px, 5vw, 32px);
        margin-bottom: 16px;
    }

    .hero-sub {
        font-size: 13px;
        margin-bottom: 16px;
        padding-left: 12px;
    }

    .status-badge {
        margin-bottom: 16px;
        gap: 8px;
        font-size: 11px;
    }

    .asset-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .asset-card {
        height: 90px;
        padding: 14px 10px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hud-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .contact-block {
        text-align: right;
    }

    .theme-toggle-inline {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .app-shell {
        padding: 12px;
        gap: 12px;
    }

    .hud-nav {
        padding: 10px 14px;
        border-radius: 12px;
        gap: 12px;
    }

    .brand-unit {
        gap: 8px;
    }

    .brand-text {
        font-size: 12px;
    }

    .brand-symbol svg {
        width: 18px;
        height: 18px;
    }

    .hud-action {
        padding: 8px 14px;
        font-size: 10px;
        border-radius: 8px;
    }

    /* Hide hero tagline on mobile */
    .hero-tagline {
        display: none;
    }

    /* Make CTA button prominent on mobile */
    .btn-glitch {
        display: flex;
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 500;
        transition: all 0.2s;
    }

    .btn-glitch:hover {
        background: rgba(255, 255, 255, 0.18);
        opacity: 1;
    }

    .grid-item {
        padding: 16px;
        border-radius: 12px;
    }

    .hero-display {
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero-sub {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .hero-tagline {
        font-size: 9px;
        line-height: 1.4;
    }

    .status-badge {
        margin-bottom: 12px;
        font-size: 10px;
        gap: 6px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-date {
        padding-left: 8px;
    }

    .hero-visualizer {
        margin-top: 16px;
        padding-top: 16px;
    }

    .asset-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .asset-card {
        height: 80px;
        padding: 12px 8px;
        gap: 8px;
        border-radius: 8px;
    }

    .asset-icon {
        width: 24px;
        height: 24px;
    }

    .asset-name {
        font-size: 8px;
    }

    .card-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .product-icon-box {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .product-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .header-text h3 {
        font-size: 14px;
    }

    .tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .card-desc {
        font-size: 12px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .capability-grid {
        gap: 6px;
        margin-bottom: 16px;
    }

    .cap-indicator {
        width: 5px;
        height: 5px;
    }

    .cap-label {
        font-size: 9px;
    }

    .btn-glitch {
        font-size: 11px;
    }

    .launch-date {
        font-size: 10px;
    }

    .ticker-section {
        height: 44px;
        border-radius: 10px;
    }

    .ticker-track {
        gap: 20px;
        padding: 0 16px;
    }

    .ticker-item {
        font-size: 10px;
    }

    .hud-footer {
        padding: 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .legal-block {
        font-size: 10px;
        text-align: center;
    }

    .dimmed {
        font-size: 9px;
    }

    .contact-block {
        text-align: center;
    }

    .footer-link {
        font-size: 9px;
    }

    .theme-toggle-inline {
        position: static;
        transform: none;
        order: -1;
    }

    /* Modal adjustments for mobile */
    .modal-content {
        padding: 24px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-submit {
        padding: 12px 20px;
        font-size: 11px;
    }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
    .app-shell {
        padding: 10px;
    }

    .hero-display {
        font-size: 20px;
    }

    .hero-sub {
        font-size: 11px;
    }

    .asset-card {
        height: 70px;
        padding: 10px 6px;
    }

    .asset-icon {
        width: 20px;
        height: 20px;
    }

    .header-text h3 {
        font-size: 13px;
    }

    .card-desc {
        font-size: 11px;
    }
}
