/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #04040A;
    --surface-color: #0B0C16;
    --surface-light: #121324;
    --accent-primary: #A78BFA;
    --accent-secondary: #E2D9FF;
    --text-body: #8B8FA8;
    --text-light: #FFFFFF;
    --border-color: #1A1B2E;
    --border-hover: rgba(167, 139, 250, 0.4);
    --font-display: "Syne", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "Syne Mono", monospace;
    --nav-height: 80px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typographic Defaults */
h1, h2, h3, h4 {
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 700;
}

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

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================================================
   CANVAS & BACKGROUND blueprint
   ========================================================================== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Sits behind content (z-index 2) but above body bg */
    pointer-events: auto;
}

main, footer {
    position: relative;
    z-index: 2; /* Sits on top of the constellation canvas */
    pointer-events: none; /* Empty space clicks pass through to canvas */
}

/* Re-enable pointer events for interactive components */
.navbar, .btn, a, button, .bento-card, .interactive-mockup, .mobile-menu-btn, .mobile-nav-overlay {
    pointer-events: auto;
}

/* Faded Coordinate Grid Blueprint */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(26, 27, 46, 0.45) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(26, 27, 46, 0.45) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Subtle Film Grain */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.012;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Screen Flash Overlay */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-light);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 12rem 0;
}

/* Eyebrow Label */
.eyebrow {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

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

.btn-solid:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.15);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--accent-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background-color: rgba(167, 139, 250, 0.05);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.8rem;
    font-size: 15px;
}

/* Scroll Reveal System */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(4, 4, 10, 0.75);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 5px;
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-body);
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--text-light);
    opacity: 1;
}

/* Audio Button Styling */
.audio-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-body);
    transition: var(--transition-quick);
}

.audio-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-light);
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.audio-wave span {
    width: 2px;
    background-color: var(--accent-primary);
    height: 3px;
    border-radius: 1px;
    transition: height 0.1s ease;
}

.audio-btn.playing .audio-wave span {
    animation: wave 1.2s ease-in-out infinite alternate;
}

.audio-btn.playing .audio-wave span:nth-child(1) { animation-delay: 0.1s; }
.audio-btn.playing .audio-wave span:nth-child(2) { animation-delay: 0.3s; height: 100%; }
.audio-btn.playing .audio-wave span:nth-child(3) { animation-delay: 0.5s; }
.audio-btn.playing .audio-wave span:nth-child(4) { animation-delay: 0.2s; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    z-index: 110;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
    opacity: 0.98;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.mobile-link:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: rgba(11, 12, 22, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    margin-bottom: 2.5rem;
}

.hero-meta-badge .hero-eyebrow {
    margin-bottom: 0;
    color: var(--text-body);
    font-size: 9px;
}

.badge-dot {
    width: 5px;
    height: 5px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: badgePulse 2s infinite alternate;
}

@keyframes badgePulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.badge-status {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 110px;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title .line-1 {
    display: block;
}

.hero-title .line-2 {
    display: block;
    margin-left: 6.5rem; /* Large asymmetric offset */
    color: var(--accent-secondary);
}

.hero-subtitle {
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-body);
    max-width: 620px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Technical Coordinate Labels */
.coordinate-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-body);
    opacity: 0.25;
}

.left-label {
    left: 5%;
    top: 25%;
    writing-mode: vertical-rl;
}

.right-label {
    right: 5%;
    top: 25%;
    writing-mode: vertical-rl;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator {
    pointer-events: none;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-body);
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(var(--accent-primary), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--accent-secondary);
    animation: scrollDraw 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* ==========================================================================
   BENTO GRID & PRODUCTS SECTION
   ========================================================================== */
.products-section {
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    margin-bottom: 5rem;
}

/* Asymmetric Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-1 {
    grid-column: span 1;
}

.bento-card {
    position: relative;
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    padding: 1px; /* border glow space */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), var(--border-hover), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-4px);
}

.bento-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(167, 139, 250, 0.02), transparent);
    z-index: 1;
    pointer-events: none;
}

.bento-inner {
    background-color: var(--surface-color);
    border-radius: 11px;
    padding: 3.5rem;
    height: 100%;
    display: flex;
    position: relative;
    z-index: 2;
}

.bento-inner.horizontal-layout {
    flex-direction: row;
    gap: 3.5rem;
    align-items: center;
}

.bento-inner.vertical-layout {
    flex-direction: column;
    gap: 3rem;
}

.bento-text {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-tag-mono {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

.product-name {
    font-size: 38px;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.product-desc {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.product-meta {
    font-size: 11px;
    color: var(--text-body);
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.product-cta {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 700;
}

.product-cta:hover {
    color: var(--accent-secondary);
}

/* ==========================================================================
   BENTO INTERACTIVE GRAPHICS (MOCKUPS)
   ========================================================================== */
.bento-mockup {
    flex: 0.9;
    background: #06070E;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* macOS Window bar style */
.window-header {
    background: #090a12;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 1rem;
}

.window-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.window-dots .dot.close { background-color: #ef4444; }
.window-dots .dot.minimize { background-color: #eab308; }
.window-dots .dot.maximize { background-color: #22c55e; }

.window-title {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-body);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

/* Framebook Desktop mockup spec */
.whatsapp-desktop {
    width: 100%;
    height: 250px;
}

.window-content {
    display: flex;
    height: 100%;
    flex-grow: 1;
}

.app-sidebar {
    width: 40px;
    background: #05060a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    gap: 1.2rem;
}

.sidebar-item {
    font-size: 14px;
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition-quick);
}

.sidebar-item.active {
    opacity: 1;
    color: var(--accent-primary);
}

.chat-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #07080e;
}

.chat-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .avatar {
    width: 22px;
    height: 22px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: bold;
    color: var(--accent-primary);
}

.chat-header .details {
    display: flex;
    flex-direction: column;
}

.chat-header .name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
}

.chat-header .status {
    font-size: 7px;
    color: #22c55e;
    font-family: var(--font-mono);
}

.chat-messages {
    height: 120px;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 10px;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.incoming { align-self: flex-start; }
.chat-message.outgoing { align-self: flex-end; }

.msg-bubble {
    position: relative;
    padding: 0.5rem 2.8rem 0.5rem 0.85rem;
    border-radius: 8px;
    line-height: 1.4;
}

.incoming .msg-bubble {
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.outgoing .msg-bubble {
    background-color: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    color: var(--accent-secondary);
}

/* Automated Green Bubble Style */
.chat-message.automated .msg-bubble {
    background-color: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
    padding: 0.6rem 2.8rem 0.6rem 0.85rem;
}

.automated-header {
    font-size: 8px;
    letter-spacing: 0.5px;
    color: #10b981;
    font-weight: bold;
    margin-bottom: 4px;
    opacity: 0.85;
}

.automated-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.automated-body .map-link {
    color: #6ee7b7;
    text-decoration: underline;
    pointer-events: auto;
}

.automated-footer {
    margin-top: 6px;
    font-size: 7.5px;
    opacity: 0.6;
    font-style: italic;
}

/* Tiny WhatsApp-style Timestamp */
.msg-time {
    position: absolute;
    bottom: 3px;
    right: 6px;
    font-size: 7px;
    opacity: 0.45;
    font-family: var(--font-mono);
    color: var(--text-body);
}

.chat-message.automated .msg-time {
    color: #34d399;
    opacity: 0.6;
}

.chat-input-bar {
    border-top: 1px solid var(--border-color);
    background: #05060a;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-input {
    font-size: 9px;
    color: var(--text-body);
    opacity: 0.5;
}

.send-btn {
    color: var(--accent-primary);
    font-size: 10px;
    opacity: 0.8;
}

/* DhandaHQ Showcase Layout Styles */
.dhandahq-card {
    grid-column: span 3;
}

.dhandahq-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.dhandahq-title-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dhandahq-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    font-style: italic;
    color: var(--accent-secondary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.dhandahq-logo-sub {
    font-size: 15px;
    color: var(--text-body);
    max-width: 250px;
    line-height: 1.5;
}

.dhandahq-deploy-card {
    background: rgba(11, 12, 22, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.deploy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(26, 27, 46, 0.45);
    padding-bottom: 1.25rem;
}

.deploy-eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-body);
    opacity: 0.6;
}

.btn-concierge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 19, 36, 0.35);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-body);
    letter-spacing: 0.5px;
    transition: var(--transition-quick);
}

.btn-concierge:hover {
    border-color: var(--accent-primary);
    color: var(--text-light);
}

.deploy-card-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.deploy-card-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.deploy-grids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.deploy-grid-box {
    background: rgba(18, 19, 36, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-lbl {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--accent-primary);
    letter-spacing: 1px;
    opacity: 0.85;
}

.grid-val {
    font-size: 11px;
    color: var(--accent-secondary);
    font-weight: 500;
    line-height: 1.4;
}

.btn-green-pill {
    background-color: #10b981;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 13px;
    border-radius: 30px;
    padding: 0.85rem 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.btn-green-pill:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.25);
}

.btn-green-pill svg {
    transition: transform 0.3s ease;
}

.btn-green-pill:hover svg {
    transform: translateX(4px);
}

/* Tablet adjustments for DhandaHQ */
@media (max-width: 1279px) {
    .dhandahq-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dhandahq-title-side {
        align-items: center;
        text-align: center;
    }
    
    .dhandahq-deploy-card {
        padding: 2.5rem 1.75rem;
    }
    
    .deploy-grids {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SERVICES & AI SECTION
   ========================================================================== */
.services-section {
    position: relative;
    z-index: 1;
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.services-col {
    padding: 1rem 0;
}

.col-eyebrow {
    margin-bottom: 2rem;
}

.services-title {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    max-width: 480px;
}

.services-text {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 480px;
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    height: 100%;
    min-height: 450px;
    background-color: var(--border-color);
    align-self: stretch;
}

/* Web speed gauge styling */
.interactive-mockup {
    background: #06070E;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: #090a12;
    padding: 0.65rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    animation: flashPulse 1.5s ease-in-out infinite alternate;
}

.mockup-title {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-body);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.web-speed-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2.2rem;
}

.gauge-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-ring__circle-bg {
    stroke: #121324;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
}

.speed-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric {
    font-size: 11px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
}

.m-dot {
    width: 5px;
    height: 5px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.m-val {
    color: var(--text-light);
    font-weight: bold;
}

/* AI Pipeline Node Pulse Graph mockup */
.pipeline-mockup {
    width: 100%;
}

.pipeline-body {
    padding: 2.5rem 1.5rem;
}

.pipeline-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.pipeline-node .node-icon {
    width: 44px;
    height: 44px;
    background: #0a0b12;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.pipeline-node.active .node-icon {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.25);
    background: var(--surface-light);
    transform: scale(1.1);
}

.node-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-body);
    letter-spacing: 0.5px;
}

.pipeline-node.active .node-label {
    color: var(--text-light);
}

.pipeline-line {
    height: 1px;
    background: var(--border-color);
    flex-grow: 1;
    margin: 0 -5px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px; /* Offset label spacing align */
}

.pulse-spark {
    position: absolute;
    top: -2.5px;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    opacity: 0;
    transition: left 0.8s linear, opacity 0.1s ease;
}

.pulse-spark.moving {
    opacity: 1;
}

/* ==========================================================================
   WHY US SECTION (EDITORIAL VALUE THESIS)
   ========================================================================== */
.why-section {
    background-color: var(--surface-color);
    position: relative;
    z-index: 1;
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
}

.thesis-card {
    position: relative;
    padding: 4rem 2.5rem;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.thesis-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 0;
    background-color: var(--accent-primary);
    transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.thesis-card:hover::after {
    height: 100%;
}

.card-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    opacity: 0.8;
}

.card-coord {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-body);
    opacity: 0.3;
    letter-spacing: 1.5px;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--accent-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2; /* Sits above canvas */
    overflow: hidden;
}

.contact-container {
    max-width: 680px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-eyebrow {
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 72px;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.contact-subtext {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 3rem;
    max-width: 480px;
}

.contact-actions {
    margin-bottom: 3rem;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-body);
    opacity: 0.6;
    letter-spacing: 1px;
    transition: var(--transition-quick);
}

.contact-email:hover {
    color: var(--accent-primary);
    opacity: 1;
}

/* Singularity Target anchor placement */
#singularity-cluster-target {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
}

/* ==========================================================================
   FOOTER BAR
   ========================================================================== */
.footer-bar {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-body);
    opacity: 0.5;
    letter-spacing: 1.5px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link:hover {
    color: var(--text-light);
}

.divider-dot {
    opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

/* Tablet Portrait / Small Desktop (Under 1280px) */
@media (max-width: 1279px) {
    .section-padding {
        padding: 8rem 0;
    }

    .hero-title {
        font-size: 84px;
    }

    .hero-title .line-2 {
        margin-left: 3.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .col-span-2, .col-span-1 {
        grid-column: span 1;
    }

    .bento-inner.horizontal-layout {
        flex-direction: column;
        gap: 3rem;
        align-items: stretch;
    }

    .whatsapp-desktop {
        max-width: 100%;
        height: 230px;
    }

    .services-columns {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .vertical-divider {
        display: none;
    }

    .services-col {
        padding: 0;
    }

    .thesis-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .thesis-card {
        padding: 2.5rem 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .thesis-card::after {
        top: -1px;
        left: 0;
        width: 0;
        height: 1px;
        transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .thesis-card:hover::after {
        width: 100%;
        height: 1px;
    }
}

/* Tablet (Under 768px) */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-title .line-2 {
        margin-left: 0;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .coordinate-label {
        display: none;
    }

    .contact-title {
        font-size: 42px;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1.5rem;
    }
}

/* Small Mobile (Under 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
    }

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

    .bento-inner {
        padding: 2.5rem 1.5rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes flashPulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes wave {
    0% { height: 2px; }
    100% { height: 10px; }
}

@keyframes scrollDraw {
    0% { transform: translateY(-15px); }
    100% { transform: translateY(50px); }
}
