:root {
    color-scheme: light;
    --ink: #1f1d1c;
    --ink-soft: #4a4542;
    --muted: #716a66; /* WCAG AA contrast fix */
    --paper: #ffffff;
    --field: #faf7f5;
    --card-border: #f0eaea;
    --line: rgba(31, 29, 28, 0.08);
    --line-strong: rgba(31, 29, 28, 0.16);
    --accent-red: #ba1a2c;
    --accent-red-soft: #fde6e8;
    --accent-gold: #c2992b;
    --accent-gold-soft: #fbf1d9;
    --shadow-soft: 0 8px 24px rgba(31, 29, 28, 0.04);
    --shadow-strong: 0 16px 40px rgba(31, 29, 28, 0.08);
    --shadow-hover: 0 20px 48px rgba(31, 29, 28, 0.12);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    background-color: var(--paper);
    /* Subtle legal/tech pattern background */
    background-image: 
        radial-gradient(ellipse at 50% -20%, rgba(186, 26, 44, 0.03) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50' y='50' font-size='14' font-family='Georgia,serif' fill='rgba(31,29,28,0.015)' text-anchor='middle'%3E%C2%A7%3C/text%3E%3C/svg%3E"),
        linear-gradient(to bottom, #ffffff 0%, #fdf5f2 50%, #faf1ec 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

p, h1, h2, h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--accent-red);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 100;
}
.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
}

/* We need to apply styles directly to .site-header children due to old HTML structure */
.site-header a.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brand span {
    display: flex;
    flex-direction: column;
}

.brand strong {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-transform: uppercase;
}

.brand small {
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.nav-links a {
    text-decoration: none;
}

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

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.header-cta:hover {
    border-color: var(--ink);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0 4rem;
}

.eyebrow {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

h1, h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    margin: 0;
    font-weight: normal;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    hyphens: manual;
}

h2 {
    font-size: clamp(2.2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--ink);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button-primary {
    background: var(--accent-red-soft);
    color: var(--accent-red);
    border: none;
}

.button-primary:hover {
    background: #fad2d6;
}

.button-secondary {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.button-secondary:hover {
    border-color: var(--ink);
}

.hero-principles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-principles li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.hero-principles span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--paper);
    border-radius: 50%;
    border: 1px solid var(--card-border);
    color: var(--accent-red);
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.hero-visual img, .band-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(186, 26, 44, 0.05), var(--shadow-strong);
    background: var(--paper);
    border: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
}

/* Subtle tech glow behind hero visual */
.hero-visual::before {
    content: "";
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: radial-gradient(circle at 50% 50%, rgba(186, 26, 44, 0.08) 0%, transparent 70%);
    z-index: 1;
    filter: blur(20px);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: end;
    padding: 4rem 0 2rem;
}

.statement {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

p {
    color: var(--ink-soft);
    margin: 0 0 1rem 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 5rem;
}

.feature-card, .standards-list article, .position-points article, .roadmap-grid article, .trust-grid article {
    background: var(--paper);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover, .standards-list article:hover, .position-points article:hover, .roadmap-grid article:hover, .trust-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.card-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red-soft);
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
}

.standards {
    padding: 5rem 0;
}

.demo-section {
    padding: 5rem 0;
}

.demo-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--shadow-strong);
    padding: 3rem;
    margin-top: 3rem;
}

.demo-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.demo-copy p {
    font-size: 1.12rem;
    margin: 0;
}

.demo-insights {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.demo-insights li + li {
    margin-top: 0.5rem;
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.demo-metrics article {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--field);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-metrics span {
    color: var(--accent-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.demo-metrics p {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.standards-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.standards-list span {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.position {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
}

.quote-panel {
    background: var(--paper);
    border-radius: 16px;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--card-border);
}

.quote-panel p {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.35;
    color: var(--accent-red);
    margin: 0;
}

.position-points {
    display: grid;
    gap: 1.5rem;
}

.trust-section {
    padding: 5rem 0 3rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.roadmap {
    padding: 5rem 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.roadmap-grid strong {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--field);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.final-cta {
    background: var(--paper);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: 0 20px 60px rgba(186, 26, 44, 0.05), var(--shadow-strong);
    margin: 5rem auto 8rem;
    border: 1px solid var(--card-border);
}

.final-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
}

.final-cta p:not(.eyebrow) {
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0;
}

.legal-page {
    padding: 5rem 0 7rem;
}

.legal-hero {
    max-width: 900px;
    padding-bottom: 3rem;
}

.legal-hero h1 {
    margin-bottom: 1.5rem;
}

.legal-hero p:not(.eyebrow) {
    font-size: 1.12rem;
    max-width: 760px;
}

.legal-content {
    max-width: 900px;
    display: grid;
    gap: 2.25rem;
}

.legal-section {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.legal-section h2 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.legal-section a {
    color: var(--accent-red);
    font-weight: 600;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--accent-red);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .site-header { padding: 1rem 24px; }
    .hero, .intro-grid, .product-band, .position, .demo-panel {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero { padding-top: 3rem; }
    h1 { font-size: 3rem; }
    .card-grid, .standards-list, .roadmap-grid, .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .final-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-cta { display: none; }
    .card-grid, .standards-list, .roadmap-grid, .trust-grid, .demo-metrics {
        grid-template-columns: 1fr;
    }
    .demo-panel { padding: 2rem; }
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links { justify-content: flex-start; }
    .quote-panel { padding: 2.5rem; }
    .quote-panel p { font-size: 1.5rem; }
    h1 { font-size: 2.5rem; }
}
