:root {
    --bg-dark: #0f111a;
    --bg-darker: #090a0f;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-blue: #0066FF;
    --accent-violet: #7C3AED;
    --accent-gold: #F59E0B;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(16px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Background effects */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(60px);
}
.blob-2 {
    top: 40%;
    left: 60%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(to right, #0066FF, #7C3AED, #F59E0B, #0066FF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

/* Nav */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}
.logo .cursor {
    display: inline-block;
    width: 12px;
    height: 24px;
    background-color: var(--accent-blue);
    margin-left: 6px;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--text-primary);
}

.desktop-nav .btn {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Nav Overlay (Hidden on Desktop) */
.mobile-nav-overlay {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Floating Nav */
.floating-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    z-index: 999;
    display: flex;
    gap: 1rem;
    border-radius: 50px;
    padding: 0.5rem;
    background: rgba(15, 17, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .floating-nav {
        width: 95%;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        bottom: 1rem;
        gap: 0.5rem;
    }
    .float-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.float-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-btn i { width: 18px; height: 18px; color: var(--accent-blue); }
.float-btn:hover { 
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4), rgba(124, 58, 237, 0.4));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: #fff; 
}

/* Float Core Services Button Animation */
.float-core-btn {
    max-width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    border: none;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-core-btn.show {
    max-width: 250px;
    padding: 0.75rem 1.5rem;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Typewriter Animation */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  0%, 100% { border-color: var(--accent-blue); }
  50% { border-color: rgba(0, 102, 255, 0.2); }
}
.typewriter {
  overflow: hidden;
  border-right: .15em solid var(--accent-blue);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .1em;
  animation: 
    typing 2s steps(40, end),
    blink-caret 1.2s ease-in-out infinite;
  display: inline-block;
}

/* Layout Utilities */
.subpage-main {
    padding-top: 80px;
}
.subpage-main > section:first-child {
    padding-top: 4rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

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

.hero-migration {
    align-items: center;
    justify-content: center;
}
.hero-migration .hero-content {
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-migration .hero-subtitle {
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Services Grid */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Core Services */
.core-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.core-card {
    position: relative;
    overflow: hidden;
}

.core-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.core-card.accent-blue::before { background: var(--accent-blue); }
.core-card.accent-violet::before { background: var(--accent-violet); }
.core-card.accent-gold::before { background: var(--accent-gold); }

.core-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

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

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-list i {
    width: 20px;
    height: 20px;
}

.core-card.accent-blue i { color: var(--accent-blue); }
.core-card.accent-violet i { color: var(--accent-violet); }
.core-card.accent-gold i { color: var(--accent-gold); }


/* Pain -> Promise */
.pain-grid {
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 4rem;
}

.pain-text .lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

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

.promise-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promise-card i {
    width: 32px;
    height: 32px;
}

.promise-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.promise-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.accent-gold { color: var(--accent-gold); }
.accent-blue { color: var(--accent-blue); }
.accent-violet { color: var(--accent-violet); }

/* Tiers */
.tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tier-card {
    display: flex;
    flex-direction: column;
}

.featured-tier {
    transform: scale(1.05);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
    z-index: 1;
}

.featured-tier:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tier-header i {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
}
.tier-accelerator .tier-header i { color: var(--accent-violet); }
.tier-enterprise .tier-header i { color: var(--accent-gold); }

.tier-header h3 {
    font-size: 1.8rem;
}

.tier-card .badge {
    margin: 0;
}

.tier-tagline {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tier-for {
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.tier-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tier-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.faq-toggle i {
    transition: var(--transition);
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(124, 58, 237, 0.1));
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Contact */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-content .brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.link-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 992px) {
    .pain-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tiers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .featured-tier { transform: none; }
    .featured-tier:hover { transform: translateY(-5px); }
    .contact-box { grid-template-columns: 1fr; padding: 2rem; }
    .hero-title { font-size: 3rem; }
    .section-header h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1.5rem !important;
        box-sizing: border-box !important;
    }
    
    .glass-header {
        width: 100% !important;
        left: 0 !important;
        position: fixed !important;
        top: 0 !important;
    }
    
    .typewriter {
        white-space: normal !important;
        width: auto !important;
        font-size: 1.1rem !important;
        animation: none !important;
        border-right: none !important;
        word-break: break-word !important;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block !important;
        position: relative !important;
        margin-left: auto !important;
    }
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.8rem; margin-bottom: 1rem; }
    h3 { font-size: 1.2rem; }
    p { font-size: 0.95rem; }
    
    .hero-cta { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-cta .btn { width: 100%; text-align: center; }
    
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; font-size: 1.5rem; }
    
    .tiers-grid { grid-template-columns: 1fr; gap: 1rem; }
    .grid { gap: 1rem; }
    
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
    
    .timeline::before { left: 24px; }
    .timeline-dot { width: 48px; height: 48px; font-size: 1rem; }
    .timeline-content { width: calc(100% - 80px); padding: 1.25rem; }
    
    section { padding: 3rem 0; }
    .subpage-main > section:first-child { padding-top: 0; }
    .hero { padding-top: 80px; min-height: auto; padding-bottom: 3rem; }
    .section-header { margin-bottom: 2rem; }
    
    .glass-card { padding: 1.25rem; border-radius: 16px; }
    .contact-box { padding: 1.25rem; }
    
    footer { padding: 2rem 0 1rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    
    /* Mobile Menu Overlay Styles */
    .mobile-nav-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px);
        z-index: 10000; display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
    .mobile-nav-content {
        width: 90%; max-width: 400px; padding: 3rem 2rem; border-radius: 16px;
        position: relative; text-align: center;
        transform: translateY(20px); transition: transform 0.3s ease;
    }
    .mobile-nav-overlay.active .mobile-nav-content { transform: translateY(0); }
    .mobile-menu-close {
        position: absolute; top: 1.5rem; right: 1.5rem;
        background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
    }
    .mobile-links { display: flex; flex-direction: column; gap: 1.5rem; }
    .mobile-links a { font-size: 1.3rem; font-weight: 600; color: #fff; }
    
    .core-grid, .services-grid, .promise-cards { grid-template-columns: 1fr !important; }
    
    .glass-card h3 { 
        font-size: 1.4rem !important; 
        word-break: break-word !important;
        hyphens: auto !important;
        overflow-wrap: anywhere !important;
    }
    .core-card h3 { font-size: 1.4rem !important; }
}
