:root {
    --bg: #0a0a0f;
    --card: #12121acc;
    --border: #1f2937;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --brand: #22d3ee;
    --brand-dim: rgba(34, 211, 238, 0.1);
    --orange: #3b82f6;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: #fff;
    opacity: 0.8;
}

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

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.nav-logo img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.nav-btn-primary {
    background: var(--brand);
    color: #000;
}

.nav-btn-primary:hover {
    background: var(--brand);
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.nav-btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--brand-dim);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--brand);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-large {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary-large {
    background: var(--brand);
    color: #000;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

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

.btn-secondary-large:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Code Block */
.hero-code {
    background: #0c0d14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.code-prompt {
    color: var(--brand);
    user-select: none;
}

.code-command {
    color: var(--text);
}

.code-output {
    color: var(--muted);
    font-style: italic;
}

.code-highlight {
    color: var(--brand);
}

/* Tunnel Flow Diagram */
.hero-visual {
    position: relative;
    height: 505px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-visual svg {
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.15));
    transition: all 0.3s ease;
}

.hero-visual svg:hover {
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.25));
}

.hero-visual:hover .local-service-section rect {
    stroke: #22d3ee;
    transition: stroke 0.3s ease;
}

.hero-visual .animated-globe {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.flow-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 240px;
    transition: var(--transition);
}

.flow-step:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
}

.flow-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-icon svg {
    width: 100%;
    height: 100%;
    color: var(--brand);
}

.flow-icon img {
    width: 100%;
    height: auto;
}

.flow-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    opacity: 0.6;
    animation: connector-pulse 2s ease-in-out infinite;
}

.flow-connector svg {
    animation: arrow-bounce 1s ease-in-out infinite;
}

@keyframes connector-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

/* Pipeline Visualization */
.pipeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
    background: rgba(18, 18, 28, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    min-width: 200px;
    transition: var(--transition);
}

.pipeline-step:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15);
}

.pipeline-step-proxy {
    border-color: rgba(139, 92, 246, 0.4);
}

.pipeline-step-proxy:hover {
    border-color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.pipeline-step-public {
    border-color: rgba(34, 211, 238, 0.4);
}

.pipeline-step-public:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
}

.pipeline-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-icon svg {
    width: 100%;
    height: 100%;
    color: var(--brand);
}

.pipeline-step-proxy .pipeline-icon img {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.pipeline-step-public .pipeline-icon svg {
    color: var(--brand);
}

.pipeline-label {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

.pipeline-connector {
    position: relative;
    width: 4px;
    height: 32px;
    display: flex;
    justify-content: center;
}

.connector-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), #8b5cf6, var(--brand));
    border-radius: 3px;
}

.connector-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #fff, 0 0 20px var(--brand);
    animation: particle-drop 1.5s linear infinite;
}

@keyframes particle-drop {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 12px;
}

.hero-stat-card {
    background: rgba(18, 18, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    flex: 1;
    max-width: 200px;
    margin-top: 10px;
}

.hero-stat-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.1);
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-icon svg {
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.3));
}

.hero-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Styles */
.section {
    padding: 100px 24px;
}

.section-dark {
    /* background: linear-gradient(180deg, var(--bg) 0%, #0f0f18 100%); */
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--brand), var(--border));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Local Deploy Section */
.local-deploy-section {
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.local-deploy-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

.deploy-full-width {
    margin-bottom: 32px;
}

.deploy-full-width .img-fluid {
    max-width: 100%;
    border-radius: 10px;
}

.deploy-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.deploy-text-left {
    flex: 1;
    text-align: left;
}

.deploy-text-right {
    flex: 1;
    text-align: right;
}

.deploy-text-left h4,
.deploy-text-right h4 {
    font-size: 2.1rem;
    font-weight: 700;
    background: #f3f4f6;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.deploy-text-left p,
.deploy-text-right p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
}

.deploy-text-right p {
    margin-left: auto;
}

.deploy-image-scaled {
    flex: 0 0 auto;
    max-width: 42%;
}

.deploy-image-scaled .img-fluid {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.box-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--brand);
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.05) 0%, var(--card) 100%);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--brand);
    font-weight: bold;
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.pricing-btn-primary {
    background: var(--brand);
    color: #000;
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

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

.pricing-btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Trust Bar */
.trust-bar {
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-item {
    text-align: center;
}

.trust-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--muted);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 24px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.cta-desc {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 60px 24px 30px;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-stat-card {
        max-width: none;
        flex: 1 1 140px;
    }

    .hero-visual {
        display: none;
    }

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

    .steps-container::before {
        display: none;
    }

    .deploy-row {
        flex-direction: column;
        text-align: center;
    }

    .deploy-text-left,
    .deploy-text-right {
        text-align: center;
    }

    .deploy-row:first-of-type .deploy-image-scaled {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .deploy-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .deploy-text-left,
    .deploy-text-right {
        text-align: center;
    }

    .deploy-text-left h4,
    .deploy-text-right h4 {
        font-size: 1.5rem;
    }

    .deploy-text-left p,
    .deploy-text-right p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .deploy-text-right p {
        margin: 0 auto;
    }

    .deploy-image-scaled {
        max-width: 100%;
    }

    .deploy-row:first-of-type .deploy-image-scaled {
        order: -1;
    }

    .trust-container {
        flex-direction: column;
    }

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

    .footer-brand p {
        max-width: 100%;
    }

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