:root {
    --xf-red: #cf2030;
    --xf-red-dark: #9c1822;
    --xf-bg: #0a0a0a;
    --xf-panel: #141414;
    --xf-panel-light: #f4f4f4;
    --xf-text: #1a1a1a;
    --xf-text-light: #f4f4f4;
    --xf-muted: #8a8a8a;
    --xf-border: #2a2a2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--xf-text);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--xf-red); text-decoration: none; }
a:hover { color: var(--xf-red-dark); }

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--xf-bg);
    border-bottom: 2px solid var(--xf-red);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-header .logo img { height: 38px; }
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--xf-text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a.active {
    color: var(--xf-red);
    border-bottom-color: var(--xf-red);
}

/* Hero */
.hero {
    position: relative;
    color: var(--xf-text-light);
    background: var(--xf-bg) center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85));
}
.hero .container { position: relative; }
.hero h1 {
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}
.hero .subtitle {
    color: var(--xf-red);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero .lead {
    max-width: 800px;
    margin: 1.5rem auto;
    font-size: 1.15rem;
}
.hero-image {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--xf-red);
    color: #fff;
    border: 2px solid var(--xf-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.btn:hover {
    background: var(--xf-red-dark);
    border-color: var(--xf-red-dark);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--xf-text-light);
}
.btn-outline:hover {
    background: var(--xf-text-light);
    color: var(--xf-bg);
}
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
section {
    padding: 4rem 0;
}
section.dark {
    background: var(--xf-bg);
    color: var(--xf-text-light);
}
section.light {
    background: var(--xf-panel-light);
}
.section-title {
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--xf-red);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 3rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
}
.feature-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--xf-red);
    font-weight: 700;
}

/* Product cards */
.product-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.product-card .product-logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto 1.5rem;
}
.product-card h3 {
    text-transform: uppercase;
    color: var(--xf-text);
    margin: 0 0 1rem;
}
.product-card p { flex: 1; margin-bottom: 1.5rem; }

/* Two-column */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.two-col h3 { text-transform: uppercase; margin-top: 0; }

/* Editions */
.editions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.edition {
    background: #fff;
    padding: 2rem;
    border-top: 4px solid var(--xf-red);
}
.edition h3 {
    text-transform: uppercase;
    margin: 0 0 0.25rem;
    color: var(--xf-red);
}
.edition .edition-sub {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--xf-muted);
    margin-bottom: 1.5rem;
}
.edition ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edition li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    padding-left: 1.5rem;
    position: relative;
}
.edition li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--xf-red);
    font-weight: 700;
}

/* Screenshot grid */
.screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.screenshot {
    text-align: center;
}
.screenshot h4 {
    text-transform: uppercase;
    color: var(--xf-red);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    margin: 1rem 0 0.5rem;
}
.screenshot img {
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Specs */
.specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.spec-card {
    background: #fff;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--xf-red);
}
.spec-card h3 {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
    color: var(--xf-red);
}
.spec-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.spec-card li { padding: 0.25rem 0; }

/* Patented process */
.process-image {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}
.process-image img { background: #fff; padding: 1rem; border-radius: 4px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.contact-card h3 {
    text-transform: uppercase;
    color: var(--xf-red);
    margin: 0 0 1rem;
    letter-spacing: 0.1em;
    font-size: 1rem;
}
.contact-card address {
    font-style: normal;
    line-height: 1.8;
}
.contact-card a { color: var(--xf-text); border-bottom: 1px dotted var(--xf-red); }

/* Footer */
.site-footer {
    background: #000;
    color: var(--xf-text-light);
    padding: 2rem 0;
    font-size: 0.85rem;
}
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer a { color: var(--xf-text-light); }
.social-links { display: flex; gap: 1rem; align-items: center; }
.social-links img { width: 24px; opacity: 0.7; transition: opacity 0.2s; }
.social-links a:hover img { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .site-header .container { flex-direction: column; gap: 1rem; }
    .site-nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .product-cards, .two-col, .editions, .screenshots, .specs, .contact-grid {
        grid-template-columns: 1fr;
    }
    .feature-list { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0; }
}
