@import url('fonts/rules.css');

/* ==========================================================================
   checkenginecodes.org Unified Design System (Premium Reconciled Dark Theme)
   ========================================================================== */

:root {
    --color-ink: #F1F5F9;          /* Off-white text */
    --color-muted: #94A3B8;        /* Slate 400 */
    --color-bg-main: #0A0E16;      /* Near-black background */
    --color-bg-card: #121829;      /* Surface block fallback */
    --color-accent: #F59E0B;       /* Premium Amber Accent */
    --color-accent-hover: #D97706; /* Amber hover */
    --color-accent-light: rgba(245, 158, 11, 0.1); /* Translucent Amber background */
    --color-accent-on-dark: #FCD34D; /* Light Amber text */
    --color-success: #34D399;      /* Emerald 400 */
    --color-success-bg: rgba(52, 211, 153, 0.1); /* Translucent Success */
    --color-error: #F87171;        /* Red 400 */
    --color-error-bg: rgba(248, 113, 113, 0.1); /* Translucent Error */
    --color-border: rgba(255, 255, 255, 0.08); /* Translucent borders for glass */
    
    --font-heading: 'Sora', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-main);
}

body {
    background-color: #0A0E16;
    background-image: 
        radial-gradient(circle at 50% -250px, rgba(245, 158, 11, 0.16), transparent 900px),
        radial-gradient(circle at 80% 600px, rgba(245, 158, 11, 0.04), transparent 700px),
        linear-gradient(to bottom, #0A0E16 0%, #0D1320 100%);
    background-attachment: fixed;
    color: var(--color-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    min-height: 100vh;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
}

p.lead {
    font-size: 1.15rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header & Navigation (Surgical Alignment Fixes)
   ========================================================================== */

header {
    background-color: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem; /* Prevents viewport slamming */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-ink);
    text-decoration: none;
}

.logo span {
    color: var(--color-accent);
}

.logo-mark {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.logo:hover {
    text-decoration: none;
    color: var(--color-accent-on-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto; /* Aligns to right */
}

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

nav .nav-links a {
    color: var(--color-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle svg {
    display: block;
}

/* Mobile dropdown navigation menu container */
header #nav-menu.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(13, 19, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

header #nav-menu.nav-links.show {
    display: flex;
}

header #nav-menu.nav-links a {
    color: var(--color-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

header #nav-menu.nav-links a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Main Shell Layout & Void Fixes
   ========================================================================== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    min-height: calc(100vh - 280px); /* Push footer down naturally */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

article {
    width: 100%;
    margin: 0 auto;
}

article.reader-page {
    max-width: 800px; /* Constrain glossary/guide pages for reading comfort */
}

article.code-page {
    max-width: 1000px; /* Wider container for DTC details pages */
}

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

.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(18, 24, 41, 0.45);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF, var(--color-accent-on-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats strong {
    color: var(--color-ink);
}

.offline-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================================
   Glassmorphism Cards System
   ========================================================================== */

.card, .search-card, .result, .cost-callout, .safety-callout, .sub-system-card, .code-card {
    background: rgba(18, 24, 41, 0.55);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

/* Solid fallback for non-glass support browsers */
@supports not (backdrop-filter: blur(1px)) {
    .card, .search-card, .result, .cost-callout, .safety-callout, .sub-system-card, .code-card {
        background: #121829;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

.sub-system-card:hover, .code-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(18, 24, 41, 0.7);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Search Input (Reconciled full-width search input & pulse)
   ========================================================================== */

.search-wrap {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

/* Search glow pulse keyframe */
@keyframes searchPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.search-wrap:not(:focus-within) {
    animation: searchPulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .search-wrap:not(:focus-within) {
        animation: none;
    }
}

#q {
    flex: 1;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-ink);
    transition: var(--transition);
}

#q:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.btn-cyan {
    background-color: var(--color-accent);
    color: #0A0E16;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cyan:hover {
    background-color: #FBBF24; /* Amber 400 */
    color: #0A0E16;
    transform: translateY(-1px);
    text-decoration: none;
}

.search-hint {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 0.8rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.kbd {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    color: var(--color-ink);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
}

.chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(245, 158, 11, 0.05);
    text-decoration: none;
}

.results-container {
    margin-top: 2rem;
}

.state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-muted);
    font-size: 1.05rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(18, 24, 41, 0.4);
}

/* ==========================================================================
   Search Results Listings
   ========================================================================== */

.result {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.80rem;
}

.result:hover, .result.sel {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(18, 24, 41, 0.7);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.r-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.r-code {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.r-code:hover {
    text-decoration: underline;
}

.copy {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-muted);
    transition: var(--transition);
}

.copy:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(245, 158, 11, 0.1);
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid transparent;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-system {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-on-dark);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border-color: rgba(52, 211, 153, 0.2);
}

.badge-warning {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border-color: rgba(248, 113, 113, 0.2);
}

.r-bank {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.25rem;
}

.r-loc {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.result-decode-preview {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

/* ==========================================================================
   DTC Code Pages specific structures
   ========================================================================== */

.crumb {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.crumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.crumb a:hover {
    color: var(--color-accent);
}

.extractable-lead {
    font-size: 1.15rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* J2012 decode tiles */
.decode-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .decode-row {
        grid-template-columns: 1fr;
    }
}

.seg {
    background: rgba(18, 24, 41, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
}

.seg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: inherit;
    text-decoration: none;
}

.seg b {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.seg small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.extractable-facts {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(18, 24, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.extractable-facts caption {
    text-align: left;
    font-weight: 700;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.extractable-facts tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.extractable-facts tr:last-child {
    border-bottom: none;
}

.extractable-facts td {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--color-ink);
}

.extractable-facts td:first-child {
    font-weight: 600;
    color: var(--color-muted);
    width: 30%;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Details Card lists & custom bullets
   ========================================================================== */

.card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.h2-icon {
    font-size: 1.25rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.card ul li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0.25rem;
    top: -0.1rem;
}

.fixes-list li::before {
    content: "✓" !important;
    color: var(--color-success) !important;
    font-size: 0.95rem !important;
    top: 0.1rem !important;
}

.safety-callout {
    margin-top: 1rem;
}

.safety-danger {
    border-left: 4px solid var(--color-error);
    background: rgba(248, 113, 113, 0.07);
}

.safety-warning {
    border-left: 4px solid var(--color-accent);
    background: rgba(245, 158, 11, 0.07);
}

.callout-icon {
    font-size: 1.2rem;
}

.callout-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-ink);
}

.cost-callout {
    margin-top: 1.25rem;
}

.cost-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.cost-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0.25rem 0;
    font-family: var(--font-heading);
}

.cost-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */

.faq-accordion {
    margin-top: 1rem;
}

.faq-accordion details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(18, 24, 41, 0.4);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.faq-accordion details:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(18, 24, 41, 0.6);
}

.faq-accordion summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    padding: 1rem 1.25rem;
    color: var(--color-ink);
    outline: none;
    font-size: 1.05rem;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.5rem;
}

.faq-accordion details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-accordion details[open] {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(18, 24, 41, 0.6);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0;
}

/* ==========================================================================
   Footer Layout (Reconciled with real markup)
   ========================================================================== */

footer {
    background-color: #070A10;
    color: var(--color-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 1.5rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-ink);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-link-col {
    display: flex;
    flex-direction: column;
}

.footer-link-col h4 {
    color: var(--color-ink);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-link-col ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-col ul li {
    padding-left: 0;
    margin-bottom: 0;
}

.footer-link-col ul li::before {
    display: none !important;
}

.footer-link-col ul li a {
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-link-col ul li a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
}

.footer-disclaimer {
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ==========================================================================
   Homepage Landing & Value-Props Grids
   ========================================================================== */

.landing-section {
    margin-top: 3.5rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.landing-card {
    background: rgba(18, 24, 41, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

@supports not (backdrop-filter: blur(1px)) {
    .landing-card {
        background: #121829;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

.landing-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(18, 24, 41, 0.7);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.landing-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.landing-card-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.landing-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-accent-on-dark);
}

.landing-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.value-props {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-prop-card {
    margin-bottom: 0 !important; /* Overwrite general card margin */
}

.value-prop-card h3 {
    color: var(--color-accent-on-dark);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.value-prop-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.email-capture-card {
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    background: linear-gradient(135deg, rgba(18, 24, 41, 0.7), rgba(245, 158, 11, 0.04)) !important;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   Toast Notification & Responsive Utilities
   ========================================================================== */

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-bg-card);
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
    font-size: 0.95rem;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    main { padding: 1.5rem 1rem 3rem; }
    .footer-top { flex-direction: column; }
}
