/* ==================== RESET & VARIABLES ==================== */
:root {
    /* Logo Colors - TakeData Brand */
    --primary: #1A4D6D;           /* Azul oscuro (Take) */
    --primary-dark: #0F3347;      /* Azul muy oscuro */
    --accent: #17A2B8;            /* Turquesa/Cyan (Data) */
    --accent-light: #2DB5C8;      /* Turquesa claro */
    --accent-secondary: #2C7A99;  /* Azul medio */

    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --neutral: #F3F4F6;
    --text: #1A4D6D;              /* Usa primary */
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 51, 71, 0.10);
    --shadow-lg: 0 20px 45px rgba(15, 51, 71, 0.14);
    --transition: all 0.3s ease-in-out;
    --radius: 14px;
    --radius-lg: 20px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

h4 {
    font-size: 1.125rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

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

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ghost button: for dark backgrounds */
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Light button: white fill, for dark backgrounds */
.btn-light {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-light:hover {
    background: #F8FAFC;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

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

.logo img {
    height: 52px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.15);
    transition: transform 0.2s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
}

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

.nav-login {
    font-weight: 600;
    color: var(--primary) !important;
}

.nav-login:hover {
    color: var(--accent) !important;
}

.cta-nav a {
    background: var(--accent);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
}

.cta-nav a:hover {
    background: var(--accent-light);
    color: white !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #235f82 0%, var(--primary) 45%, var(--primary-dark) 100%);
    color: white;
    padding: 130px 0 110px;
    display: flex;
    align-items: center;
}

/* Decorative glow layer */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(45, 181, 200, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(23, 162, 184, 0.22) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #E0F2F7;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    color: white;
    font-size: 3.4rem;
    margin-bottom: 1.25rem;
    line-height: 1.12;
    letter-spacing: -1px;
}

.hero h1 .hl {
    background: linear-gradient(120deg, var(--accent-light) 0%, #7FE3F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: #D1E3EC;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-note {
    color: #A9C6D4;
    font-size: 0.95rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.stat span {
    color: #D1D5DB;
    font-size: 0.95rem;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 80px 0;
    background: var(--neutral);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

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

/* ==================== DATASETS ==================== */
.datasets {
    padding: 80px 0;
}

.datasets-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.datasets-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.dataset-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
}

.category-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.dataset-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

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

.dataset-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
}

.dataset-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Aggregation Section */
.aggregation-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

.aggregation-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.agg-level {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.agg-level:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.agg-level strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.agg-level .size {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.agg-level p {
    color: white;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ==================== USE CASES ==================== */
.usecases {
    padding: 80px 0;
    background: var(--neutral);
}

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

.usecase-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.usecase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left: 6px solid var(--accent);
    border-top: 3px solid var(--accent-secondary);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
}

.usecase-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.usecase-card ul {
    list-style: none;
    padding-left: 0;
}

.usecase-card li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.usecase-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 80px 0;
    background: white;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 80px 0;
    background: var(--neutral);
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-card h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.price span {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* ==================== FAQ ==================== */
.faq {
    padding: 80px 0;
    background: white;
}

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

.faq-item {
    background: var(--neutral);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section > .container > p {
    color: #D1D5DB;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-form input,
.cta-form select {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.cta-form input::placeholder {
    color: var(--text-light);
}

.cta-form button {
    padding: 12px 16px;
}

.form-note {
    color: #D1D5DB;
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary);
    color: #D1D5DB;
    padding: 4rem 0 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #D1D5DB;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-section p {
    color: #D1D5DB;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #D1D5DB;
}

/* ==================== SECTION HEADERS ==================== */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==================== VALUE STRIP ==================== */
.valuestrip {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.valuestrip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.98rem;
    justify-content: center;
    text-align: center;
}

.value-item span {
    font-size: 1.5rem;
}

/* ==================== HOW IT WORKS (extra) ==================== */
.how-it-works {
    background: var(--neutral);
}

.step {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

.how-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ==================== PRICING HERO ==================== */
.pricing-hero {
    max-width: 860px;
    margin: 0 auto;
    background: radial-gradient(circle at 80% 0%, #235f82 0%, var(--primary) 50%, var(--primary-dark) 100%);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.pricing-hero-price {
    margin-bottom: 2.5rem;
}

.price-from {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.pricing-hero-price p {
    color: #BCD4E0;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.pricing-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-point {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.4rem;
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.pricing-point .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.pricing-point strong {
    display: block;
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.pricing-point p {
    color: #BCD4E0;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ==================== CTA SECTION (extra) ==================== */
.cta-section p {
    color: #D1E3EC;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.cta-help {
    font-size: 0.98rem;
    color: #A9C6D4 !important;
}

.cta-help a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.cta-help a:hover {
    color: var(--accent-light);
}

/* ==================== SCROLL REVEAL ==================== */
/* Gated on .js so content is always visible if JavaScript is disabled */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .valuestrip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: white;
        padding: 1rem 24px 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .cta-nav a,
    .nav-links .nav-login {
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 90px 0 70px;
        min-height: auto;
    }

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

    .subtitle {
        font-size: 1.05rem;
    }

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

    .hero-cta .btn,
    .how-cta .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .section-sub {
        font-size: 1.05rem;
    }

    .pricing-points {
        grid-template-columns: 1fr;
    }

    .pricing-hero {
        padding: 2rem 1.5rem;
    }

    .features,
    .usecases,
    .how-it-works,
    .pricing,
    .datasets {
        padding: 60px 0;
    }

    .features-grid,
    .datasets-grid,
    .usecases-grid,
    .steps-grid,
    .pricing-grid,
    .faq-grid,
    .aggregation-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .badge {
        width: 100%;
        text-align: left;
    }

    .cta-form {
        grid-template-columns: 1fr;
    }

    .valuestrip-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .value-item {
        justify-content: flex-start;
        text-align: left;
    }

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

    .step {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-cta,
    .hero-stats {
        gap: 1rem;
    }

    .features,
    .usecases,
    .how-it-works,
    .pricing,
    .datasets {
        padding: 40px 0;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .agg-level {
        padding: 1.5rem;
    }

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

/* ==================== PRINT ==================== */
@media print {
    .navbar,
    .hero-cta,
    .cta-section,
    .footer {
        display: none;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   APP PAGES SHELL (login, register, checkout, dashboard, reports)
   Shared navbar + components so every authenticated page is consistent.
   ============================================================ */

/* --- App navbar --- */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-logo img {
    height: 46px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.15);
}

.navbar-logo span {
    color: var(--primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.navbar-links > a:not(.btn) {
    color: var(--text-light);
    font-weight: 600;
}

.navbar-links > a:not(.btn):hover {
    color: var(--accent);
}

/* --- App page background --- */
.app-bg {
    background: var(--neutral);
    min-height: 100vh;
}

/* --- Page heading --- */
.page-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* --- Surface card --- */
.surface {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Alerts --- */
.alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-success {
    background: #ECFDF5;
    color: #15803D;
    border-color: #A7F3D0;
}

/* --- Auth pages (login / register / reset) --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #235f82 0%, var(--primary) 45%, var(--primary-dark) 100%);
    padding: 40px 20px;
}

.auth-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(45, 181, 200, 0.30) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(23, 162, 184, 0.20) 0%, transparent 40%);
    pointer-events: none;
}

.auth-form {
    position: relative;
    z-index: 1;
    background: white;
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    height: 46px;
    border-radius: 10px;
}

.auth-brand span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

/* Gradient primary action used across app forms */
.btn-login,
.btn-register {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%) !important;
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.28);
}

.btn-login:hover,
.btn-register:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }

    .navbar-content {
        justify-content: center;
        text-align: center;
    }
}
