/* ============================================================
   PipeSizer — Landing Page Styles
   Premium dark SaaS design
   ============================================================ */

/* ---------- Reset & Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #e8e8ed;
    --text-muted: #8b8b9e;
    --text-dim: #5a5a6e;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-sm {
    font-size: 14px;
    padding: 8px 18px;
}

.btn-lg {
    font-size: 16px;
    padding: 14px 32px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.05);
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    color: var(--text-muted);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 160px 0 60px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    top: 100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent-light), #818cf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 40px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* --- Mockup --- */
.hero-mockup {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.mockup-window {
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(139, 92, 246, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mockup-dots span:first-child {
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:last-child {
    background: #28ca42;
}

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.mockup-content {
    padding: 24px;
}

.mockup-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mock-tab {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.mock-tab.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.mockup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mock-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-light);
    text-transform: uppercase;
}

.mock-field {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
}

.mock-result {
    grid-column: 1 / -1;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    text-align: center;
}

.mock-result-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.mock-result-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.mock-result-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   Section Shared
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   Features
   ============================================================ */
.features {
    padding: 100px 0 80px;
    position: relative;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

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

.feature-liquidos:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-vapor:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-gases:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: 600;
}

/* Extras grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.extra-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.extra-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.extra-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.extra-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.extra-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02), transparent);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-connector {
    color: var(--text-dim);
    padding: 0 8px;
    flex-shrink: 0;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-featured {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), var(--bg-card));
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.08);
}

.pricing-featured:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text);
}

.pricing-features li.included svg {
    color: var(--green);
    flex-shrink: 0;
}

.pricing-features li.excluded {
    color: var(--text-dim);
}

.pricing-features li.excluded svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 100px 0;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-light);
}

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

.faq-chevron {
    color: var(--text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    position: relative;
}

.cta-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    position: relative;
}

.final-cta .btn {
    position: relative;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 8px;
}

.footer-brand .brand-text {
    font-size: 15px;
    font-weight: 600;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .steps-grid {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
    }

    .pricing-featured {
        transform: none;
    }

    .navbar-links {
        display: none;
    }

    .mockup-body {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }

    .mockup-nav {
        flex-wrap: wrap;
    }
}