/* ============================================
   StoxHost — SEO-Optimized Landing Page Styles
   Red / Black / Dark Grey Theme
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette: Black, Dark Grey, Red */
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-bg-card: #1a1a1a;
    --color-bg-card-hover: #222222;
    --color-primary: #c41e2e;
    --color-primary-light: #e63946;
    --color-primary-dark: #9b1b24;
    --color-accent: #ff2d3b;
    --color-accent-dark: #d42030;
    --color-accent-glow: rgba(196, 30, 46, 0.25);
    --color-text: #d4d4d4;
    --color-text-muted: #8a8a8a;
    --color-text-heading: #f0f0f0;
    --color-positive: #e63946;
    --color-negative: #555555;
    --color-neutral: #888888;
    --color-border: #2a2a2a;
    --color-border-light: #3a3a3a;
    --color-border-red: rgba(196, 30, 46, 0.3);
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(196, 30, 46, 0.2);
    --shadow-glow-strong: 0 0 40px rgba(196, 30, 46, 0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: var(--shadow-glow-strong);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--color-primary-light);
    color: #fff;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo:hover {
    color: var(--color-primary-light);
}

.logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

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

.nav a:hover {
    color: var(--color-primary-light);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, #0f0f0f 50%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(196, 30, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(196, 30, 46, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, rgba(196, 30, 46, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

/* Banner image in hero */
.hero-banner {
    max-width: 600px;
    margin: 0 auto 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-heading);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--color-primary-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- Section Divider --- */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    border: none;
    margin: 0;
    opacity: 0.3;
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.features h2,
.why-us h2,
.how-it-works h2,
.content-section h2,
.faq-section h2,
.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 750px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-red);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background: var(--color-bg-alt);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
}

.comparison-table thead {
    background: linear-gradient(135deg, #141414, #1a1a1a);
}

.comparison-table th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--color-primary-dark);
}

.comparison-table th:last-child {
    color: var(--color-primary-light);
}

.comparison-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

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

.comparison-table tr:hover {
    background: rgba(196, 30, 46, 0.05);
}

.positive {
    color: var(--color-primary-light);
    font-weight: 600;
}

.negative {
    color: var(--color-negative);
}

.neutral {
    color: var(--color-neutral);
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--color-border-red);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(196, 30, 46, 0.3);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cta-center {
    text-align: center;
}

/* --- Content Section --- */
.content-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.content-block {
    max-width: 850px;
    margin: 0 auto 48px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
}

.content-block p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--color-border-light);
}

.faq-item[open] {
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary-light);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin: 0;
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #141414 50%, #0f0f0f 100%);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 46, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section p {
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 16px auto 36px;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 0;
    background: #080808;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 4px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary-light);
}

.footer-availability {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }

    .nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-banner {
        max-width: 90%;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features,
    .why-us,
    .how-it-works,
    .content-section,
    .faq-section {
        padding: 60px 0;
    }

    .features h2,
    .why-us h2,
    .how-it-works h2,
    .content-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 1.6rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 16px;
    }
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
    .header,
    .hero::before,
    .hero::after,
    .btn {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
