/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent: #f6821f;
    --accent-hover: #ff9a3c;
    --accent-subtle: rgba(246, 130, 31, 0.1);
    --border: #2a2a2a;
    --border-light: #333333;
    --gradient-start: rgba(246, 130, 31, 0.15);
    --gradient-end: rgba(246, 130, 31, 0);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.2s ease;
    --container-width: 1200px;
    --section-padding: 120px;
    --section-padding-mobile: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.highlight {
    color: var(--accent);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    font-size: 24px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--bg-primary) !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-tertiary);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: left;
    margin-bottom: 64px;
}

.section-label {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

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

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--gradient-start) 0%, var(--gradient-end) 70%);
    pointer-events: none;
}

/* ===== Live Ticker ===== */
.live-ticker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 48px;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ticker-pulse {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.ticker-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.ticker-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.ticker-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.ticker-value.updating {
    color: var(--accent);
}

.ticker-name {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ===== Services/Pricing Section ===== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(139, 69, 69, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

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

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(246, 130, 31, 0.15), inset 0 1px 0 rgba(246, 130, 31, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 8px;
}

.pricing-card.featured .pricing-title {
    margin-top: 16px;
}

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

.price-amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.price-term {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.pricing-features {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
}

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

.btn-dark {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-dark:hover {
    background: var(--border);
    border-color: var(--border-light);
}

.btn-arrow {
    margin-left: 4px;
}

/* ===== Process Section ===== */
.process {
    padding: var(--section-padding) 0;
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    min-width: 80px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Use Cases Section ===== */
.use-cases {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition);
}

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

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

.use-case-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding) 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-bio {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-links {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.about-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.contact-content .section-title {
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-divider {
    color: var(--text-tertiary);
    font-size: 14px;
}

.contact-email {
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-tertiary);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-divider {
    color: var(--text-tertiary);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.cloudflare-badge {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all var(--transition);
}

.cloudflare-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .section-title {
        font-size: 32px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }

    .stat {
        min-width: calc(50% - 16px);
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .step-number {
        font-size: 36px;
        min-width: auto;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .about-links {
        flex-direction: column;
    }

    .about-link {
        justify-content: center;
    }

    .contact-options {
        flex-direction: column;
    }

    .contact-divider {
        display: none;
    }

    .btn-large {
        width: 100%;
    }
}

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .stat-value {
        font-size: 28px;
    }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .pricing-card,
    .use-case-card,
    .btn {
        transition: transform 0.3s ease, border-color 0.2s ease, background-color 0.2s ease;
    }
}

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
