:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --action-blue: #0e6ba8;
    --action-blue-hover: #0b5788;
    --text-dark: #111111;
    --text-mid: #444444;
    --text-light: #888888;
    --border-subtle: #e5e5e5;
    --border-accent: #cccccc;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-mid);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-mid);
    margin-bottom: 1rem;
}

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

/* Shared navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content,
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

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

/* Header + hero variants */
#hero,
header {
    padding: 8rem 0 4rem;
    border-bottom: 1px solid var(--border-subtle);
}

#hero {
    text-align: center;
}

#hero h1,
header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

#hero p,
.lead {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    color: var(--text-light);
}

.hero-highlight {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--action-blue);
    border: 1px solid var(--action-blue);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 1rem;
}

.action-button,
button.action-button,
a.action-button,
button[data-bs-toggle="modal"],
.modal-open-action {
    background: var(--action-blue);
    color: #ffffff;
    border: 1px solid var(--action-blue);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a.action-button {
    display: inline-block;
}

.section-action-link {
    padding: 0.5rem 1rem;
    font-weight: 700;
}

.action-button:hover,
button.action-button:hover,
a.action-button:hover,
button[data-bs-toggle="modal"]:hover,
.modal-open-action:hover {
    background: var(--action-blue-hover);
    border-color: var(--action-blue-hover);
    color: #ffffff;
}

.eyebrow {
    display: inline-block;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.38rem 0.88rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-mid);
    background: var(--bg-secondary);
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.highlight-strip {
    border: 1px solid var(--border-subtle);
    border-left: 5px solid var(--text-dark);
    border-radius: 9px;
    background: var(--bg-secondary);
    padding: 1rem 1.1rem;
    max-width: 900px;
    color: var(--text-mid);
    font-size: 0.97rem;
}

/* Sections */
section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header,
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2,
.section-head h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-header p,
.section-head p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Card systems */
.card-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--text-light), var(--text-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card p {
    font-size: 0.98rem;
    color: var(--text-mid);
    margin-bottom: 0;
}

.card-meta,
.meta {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.03em;
}

.fit-list {
    margin-top: 0.7rem;
    padding-left: 1.15rem;
    color: var(--text-mid);
}

/* Epsilon-specific layout elements aligned to core theme */
.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.flow-step {
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.flow-step strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.pill {
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-mid);
    font-weight: 600;
}

.flag {
    margin-top: 0.8rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    background: #fafafa;
    color: var(--text-mid);
}

.cta {
    margin-top: 2rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.2rem;
}

.cta a {
    display: inline-block;
    margin-top: 0.7rem;
    text-decoration: none;
    color: var(--bg-primary);
    background: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cta a:hover {
    opacity: 0.88;
}

/* Ad spaces */
.ad-space {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-subtle);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.ad-space:hover {
    border-color: var(--border-accent);
    background: #f4f4f4;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}

footer p {
    margin-bottom: 0.5rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #hero,
    header {
        padding: 6rem 0 3rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .card-grid,
    .grid {
        grid-template-columns: 1fr;
    }
}
