/* ============================================================
   INTERPRETOS DESIGN SYSTEM
   Single shared stylesheet for all pages
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES (Design Tokens)
   ------------------------------------------------------------ */
:root {
    /* Colors */
    --color-charcoal: #212121;
    --color-charcoal-light: #2a2a2a;
    --color-teal: #79C1BC;
    --color-teal-dark: #5fa9a3;
    --color-purple: #662B7F;
    --color-purple-light: #7d3d96;
    --color-orange: #E24F25;
    --color-orange-dark: #C13E1A;
    --color-blue: #279DD9;
    --color-white: #ffffff;
    --color-light-bg: #f9f9f9;
    --color-gray: #909090;
    --color-gray-light: #b0b0b0;
    --color-dark-bg: #1a1a1a;
    --color-card-bg: #2a2a2a;
    --color-card-border: #333333;
    --color-success: #4caf50;
    --color-warning: #ff9800;

    /* Typography */
    --font-family: 'Montserrat', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing (8px base) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;

    /* Border radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --container-max: 1160px;
    --nav-height: 70px;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-charcoal);
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

ul, ol {
    list-style: none;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.4rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-gray-light);
}

.text-teal { color: var(--color-teal); }
.text-orange { color: var(--color-orange); }
.text-purple { color: var(--color-purple-light); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray); }

.text-light { font-weight: var(--font-weight-light); }
.text-semibold { font-weight: var(--font-weight-semibold); }
.text-bold { font-weight: var(--font-weight-bold); }

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

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    color: var(--color-gray-light);
    line-height: 1.6;
    max-width: 700px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-teal);
    margin-bottom: var(--space-sm);
}

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-dark {
    padding: var(--space-4xl) 0;
    background-color: var(--color-dark-bg);
}

.section-gradient {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a1a2e 50%, var(--color-charcoal) 100%);
}

.section-purple {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-purple) 0%, #4a1d5e 100%);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ------------------------------------------------------------
   5. NAVIGATION (from common-header)
   ------------------------------------------------------------ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-charcoal);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo svg {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    margin-right: var(--space-lg);
    align-items: center;
}

.nav-links li {
    margin-left: var(--space-md);
    white-space: nowrap;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 0.9rem;
}

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

.nav-links a.active {
    color: var(--color-teal);
}

.nav-button {
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-family: var(--font-family);
    font-size: 0.9rem;
    display: inline-block;
}

.nav-button:hover {
    background-color: var(--color-orange-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    width: 44px;
    height: 44px;
    margin-left: var(--space-md);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    margin: auto;
}

.hamburger .line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger .line:nth-child(1) { top: 0; }
.hamburger .line:nth-child(2) { top: 8px; }
.hamburger .line:nth-child(3) { top: 16px; }

.nav-toggle.active .hamburger .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger .line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-charcoal);
    z-index: 1050;
    padding: var(--space-xl);
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    overflow-y: auto;
    display: none;
    visibility: hidden;
}

#mobile-menu.active {
    transform: translateX(0);
    display: block;
    visibility: visible;
}

#mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    line-height: 1;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1150;
}

.mobile-menu-content {
    margin-top: var(--space-3xl);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu-links a {
    color: var(--color-white);
    font-size: 1.25rem;
    text-decoration: none;
    display: block;
    padding: var(--space-sm) 0;
    transition: color var(--transition-base);
}

.mobile-menu-links a:hover {
    color: var(--color-teal);
}

.mobile-menu-cta {
    margin-top: var(--space-xl);
}

.mobile-menu-cta .nav-button {
    display: block;
    width: 100%;
    text-align: center;
}

body.menu-open {
    overflow: hidden;
}

/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--color-orange-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-teal);
    padding: 1rem 2.5rem;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-teal);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background-color: var(--color-teal);
    color: var(--color-charcoal);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    background-color: transparent;
    color: var(--color-white);
    padding: 1rem 2.5rem;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-ghost:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------ */
.card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

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

.card-dark {
    background-color: var(--color-dark-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card-gradient {
    background: linear-gradient(135deg, var(--color-card-bg) 0%, rgba(121,193,188,0.1) 100%);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card-gradient:hover {
    border-color: var(--color-teal);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.card-icon-purple {
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
}

.card-icon-orange {
    background: linear-gradient(135deg, var(--color-orange), #f47b20);
}

.card h3 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--color-gray-light);
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   8. HERO SECTION
   ------------------------------------------------------------ */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    background: linear-gradient(180deg, var(--color-charcoal) 0%, var(--color-dark-bg) 100%);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto var(--space-lg);
}

.hero .subtitle {
    margin: 0 auto var(--space-2xl);
}

.hero .btn-group {
    justify-content: center;
}

/* Hero with left-aligned content */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    text-align: left;
}

.hero-split h1 {
    margin: 0 0 var(--space-lg);
}

.hero-split .subtitle {
    margin: 0 0 var(--space-2xl);
}

/* ------------------------------------------------------------
   9. DEMO CARD (query/result animation)
   ------------------------------------------------------------ */
.demo-card {
    background-color: var(--color-dark-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 600px;
    margin: var(--space-2xl) auto 0;
    box-shadow: var(--shadow-xl);
}

.demo-card-header {
    background-color: var(--color-card-bg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-card-border);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gray);
}

.demo-dot:nth-child(1) { background-color: #ff5f57; }
.demo-dot:nth-child(2) { background-color: #febc2e; }
.demo-dot:nth-child(3) { background-color: #28c840; }

.demo-card-body {
    padding: var(--space-lg);
}

.demo-query {
    margin-bottom: var(--space-md);
}

.demo-query-label {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.demo-query-text {
    color: var(--color-teal);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
}

.demo-response {
    border-top: 1px solid var(--color-card-border);
    padding-top: var(--space-md);
}

.demo-response-label {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.demo-response-content {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    line-height: 1.7;
}

.demo-response-content strong {
    color: var(--color-white);
}

/* Cycling animation for demo cards */
.demo-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.demo-slide.active {
    display: block;
}

/* ------------------------------------------------------------
   10. TRUST CARDS
   ------------------------------------------------------------ */
.trust-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.trust-card:hover {
    border-color: var(--color-teal);
    transform: translateY(-2px);
}

.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-teal);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-card h4 {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.trust-card p {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   11. STEP CARDS (numbered setup steps)
   ------------------------------------------------------------ */
.step-card {
    text-align: center;
    padding: var(--space-xl);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-charcoal);
    margin: 0 auto var(--space-lg);
}

.step-card h3 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.step-card p {
    color: var(--color-gray-light);
    margin-bottom: 0;
}

/* Step connector line */
.steps-connected {
    position: relative;
}

.steps-connected::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-blue));
    z-index: 0;
}

.steps-connected .step-card {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------
   12. INTEGRATION CARDS
   ------------------------------------------------------------ */
.integration-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

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

.integration-card h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.integration-card p {
    color: var(--color-gray-light);
    margin-bottom: var(--space-lg);
}

.integration-card .btn-secondary {
    width: 100%;
    text-align: center;
}

.integration-logo {
    height: 60px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
}

/* ------------------------------------------------------------
   13. FEATURE CARDS
   ------------------------------------------------------------ */
.feature-card {
    padding: var(--space-xl);
}

.feature-card h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Feature list with check marks */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    color: var(--color-gray-light);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 16px;
    height: 8px;
    border-left: 2px solid var(--color-teal);
    border-bottom: 2px solid var(--color-teal);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   14. BADGES
   ------------------------------------------------------------ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    background-color: rgba(121,193,188,0.15);
    color: var(--color-teal);
    border: 1px solid rgba(121,193,188,0.3);
}

.badge-new {
    background-color: rgba(226,79,37,0.15);
    color: var(--color-orange);
    border-color: rgba(226,79,37,0.3);
}

.badge-purple {
    background-color: rgba(102,43,127,0.15);
    color: var(--color-purple-light);
    border-color: rgba(102,43,127,0.3);
}

.badge-soon {
    background-color: rgba(144,144,144,0.15);
    color: var(--color-gray);
    border-color: rgba(144,144,144,0.3);
}

/* ------------------------------------------------------------
   15. CODE BLOCKS
   ------------------------------------------------------------ */
.code-block {
    background-color: var(--color-dark-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--color-gray-light);
    overflow-x: auto;
    position: relative;
}

.code-block code {
    font-family: inherit;
}

.code-block .comment {
    color: var(--color-gray);
}

.code-block .keyword {
    color: var(--color-purple-light);
}

.code-block .string {
    color: var(--color-teal);
}

.code-copy-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    color: var(--color-gray);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.code-copy-btn:hover {
    color: var(--color-white);
    border-color: var(--color-teal);
}

/* ------------------------------------------------------------
   16. STAT COUNTERS
   ------------------------------------------------------------ */
.stat {
    text-align: center;
    padding: var(--space-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-teal);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   17. COMPARISON (before/after)
   ------------------------------------------------------------ */
.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.comparison-before {
    background-color: rgba(226,79,37,0.08);
    border: 1px solid rgba(226,79,37,0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.comparison-after {
    background-color: rgba(121,193,188,0.08);
    border: 1px solid rgba(121,193,188,0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-gray);
}

.comparison h4 {
    margin-bottom: var(--space-md);
}

.comparison-before h4 { color: var(--color-orange); }
.comparison-after h4 { color: var(--color-teal); }

/* ------------------------------------------------------------
   18. MODULE CARDS (EBS modules etc.)
   ------------------------------------------------------------ */
.module-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.module-card:hover {
    border-color: var(--color-teal);
    transform: translateY(-2px);
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.module-abbr {
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    color: var(--color-charcoal);
    font-weight: var(--font-weight-bold);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.module-card h4 {
    color: var(--color-white);
    margin-bottom: 0;
    font-size: 1rem;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    margin-bottom: var(--space-sm);
}

.module-example {
    font-size: 0.85rem;
    color: var(--color-teal);
    font-style: italic;
}

/* ------------------------------------------------------------
   19. PRICING/TIER CARDS
   ------------------------------------------------------------ */
.tier-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.tier-card.featured {
    border-color: var(--color-teal);
    box-shadow: 0 0 30px rgba(121,193,188,0.15);
}

.tier-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-teal);
    color: var(--color-charcoal);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
}

.tier-name {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.tier-price {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-teal);
    margin-bottom: var(--space-lg);
}

.tier-price span {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    color: var(--color-gray);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
    text-align: left;
}

.tier-features li {
    padding: var(--space-sm) 0;
    color: var(--color-gray-light);
    font-size: 0.9rem;
    padding-left: var(--space-xl);
    position: relative;
}

.tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 14px;
    height: 7px;
    border-left: 2px solid var(--color-teal);
    border-bottom: 2px solid var(--color-teal);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   20. FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background-color: var(--color-dark-bg);
    border-top: 1px solid var(--color-card-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--color-gray);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: var(--space-md);
}

.footer-brand .nav-logo svg {
    height: 50px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--color-gray);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    border-top: 1px solid var(--color-card-border);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--color-gray);
    font-size: 0.8rem;
}

/* ------------------------------------------------------------
   21. FORM ELEMENTS
   ------------------------------------------------------------ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem var(--space-md);
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ------------------------------------------------------------
   22. TAB SELECTOR
   ------------------------------------------------------------ */
.tab-selector {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    display: inline-flex;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background-color: var(--color-card-bg);
    color: var(--color-gray);
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.tab-btn:not(:last-child) {
    border-right: 1px solid var(--color-card-border);
}

.tab-btn.active {
    background-color: var(--color-teal);
    color: var(--color-charcoal);
}

.tab-btn:hover:not(.active) {
    background-color: var(--color-charcoal-light);
    color: var(--color-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ------------------------------------------------------------
   23. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   24. UTILITY CLASSES
   ------------------------------------------------------------ */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }

.hidden { display: none; }
.block { display: block; }

.relative { position: relative; }

.overflow-hidden { overflow: hidden; }

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-blue));
    margin: var(--space-lg) auto;
}

.divider-left {
    margin-left: 0;
}

/* Highlight text */
.highlight {
    background: linear-gradient(135deg, rgba(121,193,188,0.2), rgba(39,157,217,0.2));
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   25. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Nav */
    .nav-menu { display: none; }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #mobile-menu { display: block; }

    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .subtitle { font-size: 1.1rem; }

    /* Layout */
    .section { padding: var(--space-3xl) 0; }
    .section-dark { padding: var(--space-3xl) 0; }
    .section-gradient { padding: var(--space-3xl) 0; }
    .section-purple { padding: var(--space-3xl) 0; }

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

    .hero { padding: var(--space-3xl) 0; }
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-split .subtitle { margin-left: auto; margin-right: auto; }
    .hero-split .btn-group { justify-content: center; }

    /* Comparison */
    .comparison {
        grid-template-columns: 1fr;
    }
    .comparison-divider {
        transform: rotate(90deg);
        padding: var(--space-md) 0;
    }

    /* Steps */
    .steps-connected::before { display: none; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Buttons */
    .btn-group { justify-content: center; }
}

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

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

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

    .btn-primary, .btn-secondary, .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .comparison { gap: var(--space-md); }

    .tab-selector {
        flex-direction: column;
    }
    .tab-btn:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--color-card-border);
    }
}
