/* Xmatic — PHP mirror layout (content aligned with vercel marketing site) */

:root {
    --font-display: "Rajdhani", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --color-bg: #f4f4f5;
    --color-surface: #ffffff;
    --color-text: #18181b;
    --color-muted: #52525b;
    --color-border: #e4e4e7;
    --color-accent: #b91c1c;
    --color-accent-dim: #991b1b;
    --color-hero-end: #27272a;
    --header-h: 4.25rem;
}

[data-theme="dark"] {
    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-text: #fafafa;
    --color-muted: #a1a1aa;
    --color-border: #27272a;
    --color-accent: #ef4444;
    --color-accent-dim: #f87171;
    --color-hero-end: #020617;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: #fff;
    z-index: 1000;
}

.skip-link:focus {
    left: 0;
}

.container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.narrow {
    max-width: 48rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.top-bar {
    background: var(--color-hero-end);
    color: #e4e4e7;
    font-size: 0.8rem;
}

.top-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.4rem 0;
}

.top-bar__link {
    color: #fafafa;
    text-decoration: none;
}

.top-bar__link:hover {
    text-decoration: underline;
}

.theme-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px solid #52525b;
    color: #fafafa;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: #a1a1aa;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--color-text);
}

.logo--footer {
    display: block;
    margin-bottom: 0.5rem;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s;
}

.nav-toggle::before {
    top: 0.75rem;
    box-shadow: 0 0.5rem 0 var(--color-text);
}

.nav-toggle::after {
    bottom: 0.75rem;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem 1.5rem;
    flex-wrap: wrap;
}

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

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--color-accent);
}

@media (max-width: 52rem) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.25rem 1.25rem;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(3rem, 10vw, 6rem) 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1c1917 0%, #450a0a 45%, var(--color-hero-end) 100%);
    z-index: 0;
}

[data-theme="dark"] .hero__bg {
    background: linear-gradient(135deg, #020617 0%, #450a0a 50%, #09090b 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero__eyebrow {
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.hero__lead {
    color: #d4d4d8;
    font-size: 1.1rem;
    margin: 0 0 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero__badge {
    display: inline-block;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fef2f2;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-dim);
    border-color: var(--color-accent-dim);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn--on-dark {
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="dark"] .btn--on-dark {
    color: #fafafa;
    border-color: #52525b;
}

.btn--sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--tight {
    padding-top: 2rem;
}

.section--muted {
    background: var(--color-surface);
}

.section--dark {
    background: linear-gradient(180deg, #18181b 0%, #0f0f10 100%);
    color: #e4e4e7;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.section-label--on-dark {
    color: #fca5a5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.section-title--on-dark {
    color: #fafafa;
}

.section-intro {
    color: var(--color-muted);
    max-width: 40rem;
    margin: 0 0 2rem;
}

.section-intro--on-dark {
    color: #a1a1aa;
}

.prose {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.section--dark .prose {
    color: #d4d4d8;
}

/* Grids */
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-card h3 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--color-accent);
}

.product-card--accent {
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: 0 4px 20px rgba(185, 28, 28, 0.08);
}

.product-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
}

.grid-2--gap-lg {
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
}

.info-card,
.pillar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.section--dark .pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: #3f3f46;
}

.info-card h3,
.pillar-card h3 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.pillar-card h3 {
    color: #fafafa;
}

.info-card p,
.pillar-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.section--dark .pillar-card p {
    color: #d4d4d8;
}

.industry-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.industry-card h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.15rem;
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    border-left: 2px solid var(--color-border);
}

.timeline__item {
    position: relative;
    padding: 0 0 2rem 1.5rem;
    margin: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -0.4rem;
    top: 0.25rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.timeline__item time {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.timeline__item h3 {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.timeline__item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.brand-arch {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
}

.brand-arch__title {
    font-family: var(--font-display);
    margin: 0 0 1rem;
}

.brand-arch__list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.brand-arch__list li {
    margin-bottom: 0.5rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.pill-row li {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4d4d8;
}

/* CTA */
.cta-band {
    padding: clamp(3rem, 6vw, 4rem) 0;
    background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 50%, #991b1b 100%);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.cta-band p {
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.cta-band .btn--outline {
    border-color: rgba(255, 255, 255, 0.7);
}

.cta-band .btn--primary {
    background: #fff;
    color: #991b1b;
    border-color: #fff;
}

.cta-band .btn--primary:hover {
    background: #fef2f2;
}

/* Footer */
.site-footer {
    background: #18181b;
    color: #a1a1aa;
    padding: 3rem 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-tag {
    margin: 0.5rem 0 0;
    max-width: 22rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fafafa;
    margin: 0 0 0.75rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #d4d4d8;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fca5a5;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.site-footer a {
    color: #e4e4e7;
}

.footer-note {
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #3f3f46;
    padding: 1rem 0;
    font-size: 0.8rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Inner pages */
.page-hero {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
}

.page-hero--compact {
    padding: 2rem 0 2.5rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.page-lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin: 0;
    max-width: 40rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
}

.series-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.series-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.series-card h2 {
    font-family: var(--font-display);
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.series-card h2 a {
    color: inherit;
    text-decoration: none;
}

.series-card h2 a:hover {
    color: var(--color-accent);
}

.series-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.series-card--soon {
    opacity: 0.95;
}

.series-card__cta {
    margin-top: 1rem;
}

.badge-available {
    display: inline-block;
    margin: 1rem 0 0;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-available--soon {
    background: #fef3c7;
    color: #92400e;
}

.check-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.check-list li {
    margin-bottom: 0.4rem;
}

.h3-spaced {
    margin: 2rem 0 0.75rem;
    font-size: 1.1rem;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #27272a;
    border-color: #3f3f46;
    color: #fafafa;
}

.contact-form button {
    margin-top: 1.25rem;
}

.notice {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.notice--ok {
    background: #dcfce7;
    color: #166534;
}

.notice--err {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .notice--ok {
    background: #14532d;
    color: #86efac;
}

[data-theme="dark"] .notice--err {
    background: #7f1d1d;
    color: #fecaca;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 1rem;
}

.form-hint code {
    font-size: 0.7rem;
}
