/* Color Theme: Black and Electric Blue */
:root {
    --black: #000000;
    --dark-bg: #0a0a0a;
    --light-blue: #00a8ff; /* Electric blue */
    --dark-blue: #0077ff; /* Darker electric blue */
    --white: #ffffff;
    /* Cool, translucent dark grey for panels (features/pricing) */
    --card-bg: rgba(26, 31, 38, 0.60);
    --card-border: rgba(140, 160, 180, 0.22);
}

/* Ensure section content stays above the overlay */
.has-dynamic-bg > * {
    position: relative;
    z-index: 2;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px) translateZ(0);
    filter: blur(6px);
    transition: opacity 650ms cubic-bezier(.2,.65,.2,1), transform 650ms cubic-bezier(.2,.65,.2,1), filter 650ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.revealed[data-reveal] {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
}

/* Staggered delays for sections */
.features h2[data-reveal] { --reveal-delay: 0ms; }
.features .subtitle[data-reveal] { --reveal-delay: 80ms; }
.features .feature-card[data-reveal]:nth-child(1) { --reveal-delay: 0ms; }
.features .feature-card[data-reveal]:nth-child(2) { --reveal-delay: 60ms; }
.features .feature-card[data-reveal]:nth-child(3) { --reveal-delay: 120ms; }
.features .feature-card[data-reveal]:nth-child(4) { --reveal-delay: 180ms; }
.features .feature-card[data-reveal]:nth-child(5) { --reveal-delay: 240ms; }
.features .feature-card[data-reveal]:nth-child(6) { --reveal-delay: 300ms; }

.pricing h2[data-reveal] { --reveal-delay: 0ms; }
.pricing .pricing-subtitle[data-reveal] { --reveal-delay: 80ms; }
.pricing .pricing-card[data-reveal]:nth-child(1) { --reveal-delay: 0ms; }
.pricing .pricing-card[data-reveal]:nth-child(2) { --reveal-delay: 120ms; }
.pricing .pricing-card[data-reveal]:nth-child(3) { --reveal-delay: 240ms; }

/* Section dynamic background overlay */
.has-dynamic-bg {
    position: relative;
}

.has-dynamic-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* above section background */
    background-image: var(--section-bg, radial-gradient(60% 60% at 50% 50%, rgba(0,168,255,0.12) 0%, rgba(0,0,0,0) 70%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity, 0);
    transition: opacity 250ms ease;
    filter: saturate(1.1) contrast(1.05) brightness(0.9);
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--light-blue);
    top: 10%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--dark-blue);
    top: 70%;
    left: 70%;
    animation: float 18s infinite ease-in-out;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--light-blue);
    top: 50%;
    left: 30%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 6rem 1.2rem 5rem; /* better right spacing & vertical centering */
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    align-items: center; /* vertically center items */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 168, 255, 0.45));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 400; /* thinner to match the reference logo */
    color: var(--white);
    letter-spacing: 0.05px;
    text-shadow:
        0 0 1px rgba(255,255,255,0.2),
        0 0 10px rgba(25, 176, 255, 0.7),
        0 0 20px rgba(25, 176, 255, 0.4);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.beta-tag {
    color: var(--light-blue);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--light-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.2;
}

.hero .animated-word {
    color: var(--light-blue);
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.7);
    position: relative;
    display: inline-block;
    margin: 0.5rem 0;
}

.hero .animated-word.anything {
    animation: lightning 2s infinite;
}

@keyframes lightning {
    0% { text-shadow: 0 0 15px rgba(0, 168, 255, 0.7); }
    50% { text-shadow: 0 0 25px rgba(0, 168, 255, 0.9), 0 0 5px rgba(0, 168, 255, 1); }
    100% { text-shadow: 0 0 15px rgba(0, 168, 255, 0.7); }
}

.tagline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 2rem 0 1rem;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.launch-app-btn, .demo-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.launch-app-btn {
    background-color: var(--light-blue);
    color: var(--black);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.launch-app-btn:hover {
    background-color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.7);
}

.demo-btn {
    background-color: transparent;
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.demo-btn:hover {
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
}

.launch-app-btn::before, .demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.launch-app-btn:hover::before, .demo-btn:hover::before {
    left: 100%;
}

.speed-panel {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 168, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.speed-highlight {
    font-weight: bold;
    color: var(--light-blue);
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.7);
}

/* Features Section */
.features {
    padding: 8rem 5rem;
    background-color: var(--dark-bg);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--light-blue);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.features .subtitle {
    text-align: center;
    color: #a8b3c7;
    margin: -3rem auto 3rem;
    max-width: 900px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    min-height: 200px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.85rem; /* slightly tighter column gap */
    align-items: center; /* vertically center icon and text */
    grid-auto-rows: min-content; /* fit rows to content for better centering */
}

.feature-card:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 168, 255, 0.12);
    border: 1px solid var(--light-blue);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.18);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: radial-gradient(circle at 30% 30%, rgba(0,183,255,0.9), rgba(0,119,255,0.7));
    box-shadow: 0 0 14px rgba(0,168,255,0.5);
    color: #001018;
    grid-row: 1 / span 2; /* span both rows of text */
    align-self: center; /* center relative to heading+body stack */
}

.feature-card h3 {
    color: var(--light-blue);
    margin-bottom: 0.12rem; /* half the previous space */
    line-height: 1.15;
    font-size: 1.12rem;
    grid-column: 2 / -1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0,168,255,0.0), rgba(0,168,255,0.6), rgba(0,168,255,0.0));
}

.feature-card p {
    color: #cfd7e1;
    grid-column: 2 / -1;
    margin-top: 0; /* pull body closer to header */
    line-height: 1.38; /* slightly tighter for balance */
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 5rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--light-blue);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

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

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Force 4 items in a row on desktop */
.process-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .process-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .process-grid.four-up {
    grid-template-columns: 1fr;
  }
}

.process-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(0, 168, 255, 0.12);
    border-radius: 12px;
    padding: 1.4rem 1.2rem 1.1rem;
    text-align: left;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,168,255,0.35);
    box-shadow: 0 12px 36px rgba(0, 168, 255, 0.15);
}

.process-step {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00b7ff, #0077ff);
    color: #001018;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 16px rgba(0, 168, 255, 0.55);
    margin-bottom: 0.9rem;
}

.process-card h3 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.process-card p {
    color: #cfd7e1;
}

/* subtle corner accent */
.process-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: radial-gradient(closest-side, rgba(0,168,255,0.18), rgba(0,168,255,0));
    transform: translate(30%, -30%);
    pointer-events: none;
}

/* Pricing Section */
.pricing {
    padding: 8rem 5rem;
    background-color: var(--dark-bg);
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.pricing-subtitle {
    color: #ccc;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

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

.pricing-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--light-blue);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--light-blue);
    color: var(--black);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-card h3 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: #aaa;
    margin-bottom: 2rem;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--white);
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:before {
    content: '✓';
    color: var(--light-blue);
    margin-right: 0.5rem;
}

.pricing-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.primary {
    background-color: var(--light-blue);
    color: var(--black);
    border: none;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.6);
}

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

.secondary:hover {
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateY(-3px);
}

.payment-note {
    color: #777;
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--light-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1.28rem 1rem; /* 20% less height */
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    /* Hide overflowing nav links on mobile to avoid covering hero */
    .nav-links { display: none !important; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features, .how-it-works, .pricing {
        padding: 4rem 2rem;
    }
    
    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Offset for fixed header so beta tag and Build text are not covered */
    .hero {
        padding-top: 5.25rem; /* approx fixed-header height on mobile */
    }
    .beta-tag {
        margin-top: 0.25rem;
    }

    /* Force the speed panel onto one line on mobile */
    .speed-panel {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
        max-width: 100%;
    }
    .speed-panel .speed-highlight { white-space: nowrap; }
}

/* Extra small screens: slightly smaller speed panel text */
@media (max-width: 420px) {
    .speed-panel { font-size: 0.85rem; }
}