/* =============================================
   METTLE - Static Site Styles
   Ported from VCP Demo Svelte component
   Amber/gold "forge" palette
   ============================================= */

/* =============================================
   CSS Custom Properties
   ============================================= */

:root {
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 4rem;

    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Colors */
    --color-bg: #0a0a12;
    --color-text: #f0f0f5;
    --color-text-muted: #a0a0b0;
    --color-text-subtle: #6b6b80;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Misc */
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    --leading-relaxed: 1.7;
    --transition-normal: 0.3s ease;
    --transition-fast: 0.15s ease;

    /* METTLE Theme */
    --mettle-primary: #f59e0b;
    --mettle-primary-hover: #fbbf24;
    --mettle-primary-muted: rgba(245, 158, 11, 0.15);
    --mettle-primary-glow: rgba(245, 158, 11, 0.25);
    --mettle-accent: #fb923c;

    /* Interactive UI (verification) */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg: #0a0a12;
    --bg-card: rgba(18, 18, 32, 0.85);
    --bg-input: rgba(30, 30, 50, 0.8);
    --text: #f0f0f5;
    --text-muted: #a0a0b0;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* =============================================
   Reset & Base
   ============================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================
   Scrollbar Styling
   ============================================= */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

a {
    color: var(--mettle-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--mettle-primary-hover);
}

/* =============================================
   Layout
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =============================================
   Scroll Reveal Animation
   ============================================= */

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Glow Divider (animated line + dot + line)
   ============================================= */

.glow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: var(--space-2xl) auto;
    padding: 0;
    width: 100%;
    max-width: 500px;
    border: none;
    background: none;
    box-shadow: none;
}

.glow-line {
    flex: 1;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--glow-color, rgba(245, 158, 11, 0.5)),
        transparent
    );
    animation: lineShimmer 3s ease-in-out infinite;
}

.glow-line:first-child {
    animation-delay: -0.5s;
}

.glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glow-color, rgba(245, 158, 11, 0.5));
    box-shadow: 0 0 12px var(--glow-color, rgba(245, 158, 11, 0.5)),
                0 0 24px color-mix(in srgb, var(--glow-color, rgba(245, 158, 11, 0.5)) 50%, transparent);
    flex-shrink: 0;
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

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

@media (prefers-reduced-motion: reduce) {
    .glow-dot, .glow-line {
        animation: none;
    }
}

/* =============================================
   Hero
   ============================================= */

.mettle-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.hero-eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mettle-primary);
    margin-bottom: var(--space-lg);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--mettle-primary-muted);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 100px;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-heading .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    line-height: var(--leading-relaxed);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-subtitle strong {
    color: var(--color-text);
}

.hero-question {
    font-size: var(--text-lg);
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    line-height: var(--leading-relaxed);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

.hero-question strong {
    color: var(--color-text);
}

.hero-typewriter {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    min-height: 1.5em;
    text-align: center;
    font-family: var(--font-mono);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-typewriter .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--mettle-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.1s both;
}

/* =============================================
   Buttons (Landing)
   ============================================= */

.btn-mettle-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: #0a0a12;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35),
                0 0 40px rgba(245, 158, 11, 0.1);
}

.btn-mettle-primary:hover {
    transform: translateY(-2px);
    color: #0a0a12;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5),
                0 0 60px rgba(245, 158, 11, 0.15);
}

.btn-mettle-primary.btn-lg {
    padding: 16px 36px;
    font-size: var(--text-lg);
}

.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    transform: translateX(-100%);
    transition: none;
}

.btn-mettle-primary:hover .btn-shine {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.btn-mettle-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
}

.btn-mettle-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
    color: var(--color-text);
    text-decoration: none;
}

/* =============================================
   Shared Section Styles
   ============================================= */

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-description {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* =============================================
   Problems (Born from Reality)
   ============================================= */

.problem-section {
    padding: var(--space-2xl) 0 var(--space-lg);
}

.problems-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-lg);
    min-height: 140px;
    height: 100%;
    background: rgba(18, 18, 32, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
}

.problem-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.problem-icon {
    font-size: 1.25rem;
    color: var(--mettle-accent);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.1);
    border-radius: var(--radius-md);
}

.problem-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: var(--text-sm);
}

.problem-item p {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.4;
    margin: 0;
}

/* =============================================
   Design Philosophy
   ============================================= */

.philosophy-section {
    position: relative;
    padding: var(--space-2xl) 0;
}

.philosophy-lead {
    text-align: center;
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--mettle-primary-hover);
    max-width: none;
    white-space: nowrap;
    margin: var(--space-sm) auto var(--space-xl);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 720px;
    margin: 0 auto;
}

.philosophy-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    height: 100%;
    background: rgba(18, 18, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.philosophy-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
}

.philosophy-item i {
    color: var(--mettle-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.philosophy-closing {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-top: var(--space-xl);
}

.philosophy-closing strong {
    color: var(--color-text);
}

/* =============================================
   Suites Grid
   ============================================= */

.suites-section {
    padding: var(--space-2xl) 0;
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.suite-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.suite-card:hover {
    transform: translateY(-4px);
}

.suite-border {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, hsla(var(--suite-hue, 35), 80%, 65%, 0.5), hsla(calc(var(--suite-hue, 35) + 40), 70%, 60%, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.suite-card:hover .suite-border {
    opacity: 1;
}

.suite-inner {
    background: rgba(18, 18, 32, 0.85);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.suite-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.suite-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: hsla(var(--suite-hue, 35), 70%, 55%, 0.12);
    color: hsla(var(--suite-hue, 35), 80%, 70%, 1);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.suite-card:hover .suite-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px hsla(var(--suite-hue, 35), 70%, 55%, 0.2);
}

.suite-num {
    font-size: var(--text-xs);
    font-weight: 700;
    font-family: var(--font-mono);
    color: hsla(var(--suite-hue, 35), 80%, 70%, 1);
    padding: 2px 8px;
    background: hsla(var(--suite-hue, 35), 70%, 55%, 0.15);
    border-radius: var(--radius-sm);
}

.suite-question {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsla(var(--suite-hue, 35), 80%, 70%, 0.8);
    margin-bottom: var(--space-xs);
}

.suite-inner h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.suite-inner > p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
    flex: 1;
}

.suite-insight {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid hsla(var(--suite-hue, 35), 70%, 55%, 0.5);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: var(--space-md);
}

.suite-insight i {
    color: hsla(var(--suite-hue, 35), 70%, 55%, 0.7);
    margin-right: var(--space-xs);
    font-size: 0.625rem;
}

.suite-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.suite-tag {
    font-size: 0.6875rem;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    color: var(--color-text-subtle);
}

.suite-badge {
    display: inline-block;
    margin: var(--space-md) 0;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    background: var(--mettle-primary-muted);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    color: var(--mettle-primary);
}

/* =============================================
   Anti-Gaming Table
   ============================================= */

.antigaming-section {
    padding: var(--space-2xl) 0;
}

.antigaming-table-wrap {
    max-width: 760px;
    margin: var(--space-xl) auto 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    background: rgba(18, 18, 32, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.antigaming-table {
    width: 100%;
    border-collapse: collapse;
}

.antigaming-table thead {
    background: rgba(245, 158, 11, 0.06);
}

.antigaming-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.antigaming-table th i {
    margin-right: var(--space-xs);
    font-size: 0.75rem;
}

.antigaming-table td {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.antigaming-table tr:last-child td {
    border-bottom: none;
}

.antigaming-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.attack-cell {
    color: #f87171;
}

.defence-cell {
    color: var(--mettle-primary-hover);
}

/* =============================================
   Code Windows (Iteration Curves + CLI)
   ============================================= */

.curves-section {
    padding: var(--space-2xl) 0;
}

.curves-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.code-window {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 24, 0.8);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-red { background: #ff5f56; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-size: 0.6875rem;
    color: var(--color-text-subtle);
    font-family: var(--font-mono);
}

.code-content {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    overflow-x: auto;
    margin: 0;
}

.code-content code { background: none; }

.tok-key { color: #fbbf24; }
.tok-str { color: #34d399; }
.tok-num { color: #60a5fa; }
.tok-dim { color: #6b7280; }
.tok-comment { color: #6b7280; font-style: italic; }
.tok-cmd { color: #a78bfa; }
.tok-flag { color: #fb923c; }

.curves-eyebrow, .cli-eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mettle-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.curves-text h3, .cli-text h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.curves-text p, .cli-text p {
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.curves-features, .cli-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.curves-features li, .cli-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.curves-features li i, .cli-features li i {
    color: var(--mettle-primary);
    font-size: 0.875rem;
}

/* =============================================
   Credentials
   ============================================= */

.credentials-section {
    padding: var(--space-2xl) 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.credentials-grid > .scroll-reveal {
    height: 100%;
}

.credential-card {
    text-align: center;
    padding: var(--space-lg);
    height: 100%;
    background: rgba(18, 18, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.credential-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.credential-level {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mettle-primary);
    padding: 2px 10px;
    background: var(--mettle-primary-muted);
    border-radius: 100px;
}

.credential-card h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin: var(--space-sm) 0 var(--space-xs);
}

.credential-card p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* Credential card multi-color borders */
.credential-card { border-top: 3px solid transparent; }
.credential-basic { border-top-color: hsla(35, 85%, 55%, 0.5); }
.credential-basic:hover { border-color: hsla(35, 85%, 55%, 0.25); border-top-color: hsla(35, 85%, 55%, 0.7); }
.credential-autonomous { border-top-color: hsla(200, 80%, 55%, 0.5); }
.credential-autonomous:hover { border-color: hsla(200, 80%, 55%, 0.25); border-top-color: hsla(200, 80%, 55%, 0.7); }
.credential-genuine { border-top-color: hsla(280, 70%, 60%, 0.5); }
.credential-genuine:hover { border-color: hsla(280, 70%, 60%, 0.25); border-top-color: hsla(280, 70%, 60%, 0.7); }
.credential-safe { border-top-color: hsla(140, 70%, 50%, 0.5); }
.credential-safe:hover { border-color: hsla(140, 70%, 50%, 0.25); border-top-color: hsla(140, 70%, 50%, 0.7); }

/* Credential level pill colors */
.credential-basic .credential-level { color: hsl(35, 85%, 60%); background: hsla(35, 85%, 55%, 0.12); }
.credential-autonomous .credential-level { color: hsl(200, 80%, 65%); background: hsla(200, 80%, 55%, 0.12); }
.credential-genuine .credential-level { color: hsl(280, 70%, 70%); background: hsla(280, 70%, 60%, 0.12); }
.credential-safe .credential-level { color: hsl(140, 70%, 60%); background: hsla(140, 70%, 50%, 0.12); }

/* =============================================
   CLI Section
   ============================================= */

.cli-section {
    padding: var(--space-2xl) 0;
}

.cli-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    direction: rtl;
}

.cli-row > * {
    direction: ltr;
}

/* =============================================
   Wave CTA
   ============================================= */

.wave-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(251, 146, 60, 0.03));
    padding: 0;
    margin: var(--space-2xl) 0 0;
}

.wave-top, .wave-bottom {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

.wave-top path, .wave-bottom path {
    fill: var(--color-bg);
}

.wave-content {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.cta-block {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon-ring {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 146, 60, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--mettle-primary);
    font-size: 1.75rem;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.cta-block h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.cta-block p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: var(--leading-relaxed);
}

/* =============================================
   Verification UI Section
   ============================================= */

.verification-section {
    padding: var(--space-2xl) 0;
}

.verification-section .container {
    max-width: 800px;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Buttons (Verification UI) */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: #0a0a12;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: #0a0a12;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timer {
    font-family: var(--font-mono);
    font-weight: 600;
}

.timer.warning {
    color: var(--warning);
}

.timer.danger {
    color: var(--error);
}

/* Challenge */
.challenge-card {
    text-align: center;
}

.challenge-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: #0a0a12;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.challenge-prompt {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    text-align: left;
    background: rgba(10, 10, 18, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.time-limit {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Feedback */
.feedback {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

.feedback.hidden {
    display: none;
}

.feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Result */
.result-card {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--mettle-primary);
}

.result-message {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Badge */
.badge-container {
    margin-bottom: 2rem;
}

.badge-container.hidden {
    display: none;
}

.badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0a0a12;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

/* Results Detail */
.results-detail {
    text-align: left;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 18, 0.5);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.result-item .type {
    font-weight: 500;
}

.result-item .status {
    font-weight: 600;
}

.result-item .status.pass {
    color: var(--success);
}

.result-item .status.fail {
    color: var(--error);
}

.result-item .time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* Error */
.error-card {
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--error);
}

/* =============================================
   Header
   ============================================= */

.mettle-header {
    background: rgba(10, 10, 18, 0.75);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.mettle-header.scrolled {
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(10, 10, 18, 0.9);
}

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

/* Logo */
.mettle-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
}

.mettle-logo:hover { text-decoration: none; }

.mettle-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 146, 60, 0.08));
    transition: all 0.3s ease;
}

.mettle-logo-icon img {
    display: block;
}

.mettle-logo:hover .mettle-logo-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 146, 60, 0.12));
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.mettle-logo-text {
    font-weight: 400;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}

.mettle-logo-highlight {
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mettle-logo:hover .mettle-logo-text {
    color: rgba(255, 255, 255, 0.85);
}

.mettle-logo:hover .mettle-logo-highlight {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: none;
    background: rgba(245, 158, 11, 0.08);
}

.nav-link:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #6366f1;
}

.nav-link-brand:hover {
    color: #818cf8;
}

.nav-brand-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.05); }
.mobile-menu-btn:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-md);
    background: rgba(15, 15, 25, 0.95);
    border-top: 1px solid rgba(245, 158, 11, 0.06);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.mobile-nav:not([hidden]) {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-nav-link:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mobile-nav-link:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.mobile-nav-brand { color: #6366f1; }
.mobile-nav-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: var(--space-sm) 0; }

/* =============================================
   How Verification Works (Steps)
   ============================================= */

.verification-steps-section {
    padding: var(--space-2xl) 0;
}

.verification-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    justify-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.verification-steps > .scroll-reveal {
    height: 100%;
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(18, 18, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.1));
    color: var(--mettle-primary);
    font-size: var(--text-lg);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.step-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-endpoint {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--mettle-primary);
    background: rgba(245, 158, 11, 0.08);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.step-card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.step-optional {
    font-size: 0.625rem;
    font-weight: 400;
    opacity: 0.6;
}

.step-connector {
    display: flex;
    align-items: center;
    align-self: center;
    color: var(--color-text-subtle);
    font-size: 1rem;
}

/* =============================================
   Use Cases
   ============================================= */

.usecases-section {
    padding: var(--space-2xl) 0;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.usecase-card {
    padding: var(--space-xl);
    background: rgba(18, 18, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.usecase-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.usecase-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.1);
    color: var(--mettle-primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.usecase-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.usecase-card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* =============================================
   Trust Badges
   ============================================= */

.badges-section {
    padding: var(--space-2xl) 0;
}

.badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(18, 18, 32, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.badge-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--color-text);
}

.badge-item i {
    color: var(--mettle-primary);
    font-size: 0.875rem;
}

/* =============================================
   Footer
   ============================================= */

.mettle-footer {
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.9) 0%, rgba(6, 6, 12, 0.95) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.08);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: 0;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    position: relative;
}

.mettle-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), rgba(251, 146, 60, 0.4), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 146, 60, 0.08));
    flex-shrink: 0;
}

.footer-logo img {
    display: block;
}

.footer-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    max-width: 280px;
}

.footer-mission {
    color: var(--color-text-subtle, rgba(255, 255, 255, 0.4));
    font-size: 0.75rem;
    max-width: 280px;
    margin-top: var(--space-xs);
    line-height: 1.4;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-section a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: #fbbf24;
    text-decoration: none;
}

.footer-section a:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.external-icon {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fbbf24;
}

.license-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.license-link:hover {
    text-decoration: underline;
}

.footer-license-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--color-text-subtle, rgba(255, 255, 255, 0.4));
    padding: var(--space-xs) 0;
}

.footer-license-badge i {
    color: rgba(245, 158, 11, 0.5);
    font-size: 0.625rem;
}


/* =============================================
   Animations
   ============================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #0a0a12;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 900px) {
    .suites-grid, .philosophy-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .curves-row, .cli-row {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .problems-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecases-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .verification-steps {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 320px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }


    .footer-brand {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline,
    .footer-mission {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-heading { font-size: 2rem; }
    .hero-subtitle { font-size: var(--text-base); }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta a { justify-content: center; }

    .problems-row, .credentials-grid {
        grid-template-columns: 1fr;
    }

    /* Section spacing reduction */
    .problem-section,
    .philosophy-section,
    .suites-section,
    .antigaming-section,
    .curves-section,
    .credentials-section,
    .cli-section,
    .verification-steps-section,
    .usecases-section {
        padding: var(--space-xl) 0;
    }

    .section-title { font-size: 1.5rem; }
    .section-description { font-size: var(--text-sm); }

    /* Anti-gaming table: horizontal scroll on mobile */
    .antigaming-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .antigaming-table {
        min-width: 420px;
    }

    /* Code blocks: tighter on mobile */
    .code-content {
        font-size: 0.75rem;
        padding: var(--space-md);
    }

    /* Wave SVG: reduce height */
    .wave-top, .wave-bottom { height: 40px; }

    /* Philosophy: remove max-width constraint */
    .philosophy-grid {
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Suite cards: full width */
    .suites-grid {
        max-width: 100%;
    }

    /* Curves/CLI text */
    .curves-text h3, .cli-text h3 { font-size: var(--text-xl); }

    /* CTA block */
    .cta-block h3 { font-size: var(--text-xl); }
    .cta-icon-ring { width: 56px; height: 56px; font-size: 1.25rem; }

    /* Verification UI */
    .card {
        padding: 1.5rem;
    }

    .challenge-prompt {
        font-size: 1.25rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Badges */
    .badges-row {
        gap: var(--space-sm);
    }

    .badge-item {
        font-size: var(--text-xs);
    }

    /* Footer links on small screens */
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section a {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .hero-content { padding: var(--space-xl) var(--space-md); }
    .hero-heading { font-size: 1.75rem; }

    .philosophy-grid { grid-template-columns: 1fr; }

    .btn-mettle-primary, .btn-mettle-secondary {
        padding: 12px 20px;
        font-size: 0.8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero-heading, .hero-subtitle, .hero-typewriter, .hero-cta {
        animation: none;
        opacity: 1;
    }

    .btn-shine { display: none; }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
