/* Mobile-specific styles */
.hand-image-mobile {
    max-width: 180px;
    margin: 0 auto;
    display: block;
    margin-bottom: 64px;
    position: relative;
    z-index: 5;
}

@media (min-width: 1024px) {
    .hand-image-mobile {
        display: none;
    }
}

/* Base styles */
body {
    font-family: "Roboto Mono", monospace;
    position: relative;
    background-color: #000a09;
    background: linear-gradient(to bottom, #000a09, #0b3b3a);
    line-height: 1.6;
}

/* Hero container styles */
.hero-container {
    max-width: 1280px;
    width: 100%;
}

.hero-section {
    position: relative;
    background: linear-gradient(to bottom, #000a09, #0b3b3a);
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
}

/* Adjust for mobile navbar height */
@media (max-width: 640px) {
    .hero-section {
        margin-top: 56px !important;
        min-height: calc(100vh - 56px) !important;
    }
}

/* Adjust for tablet navbar height */
@media (max-width: 768px) and (min-width: 641px) {
    .hero-section {
        margin-top: 60px !important;
        min-height: calc(100vh - 60px) !important;
    }
}

/* Geometric grid pattern - subtle */
.geometric-grid {
    background-image: 
        linear-gradient(rgba(150, 239, 234, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 239, 234, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(23, 207, 188, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 207, 188, 0.08) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 80px 80px, 80px 80px;
    animation: grid-float 20s ease-in-out infinite;
}

@keyframes grid-float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, -10px);
    }
}

/* Single moving glow - subtle */
.spotlight-beam {
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle at center, 
        rgba(150, 239, 234, 0.04),
        transparent);
    filter: blur(120px);
    animation: spotlightMove 30s ease-in-out infinite;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes spotlightMove {
    0% {
        top: 30%;
        left: 30%;
        opacity: 0.5;
    }
    25% {
        top: 35%;
        left: 70%;
        opacity: 0.6;
    }
    50% {
        top: 70%;
        left: 75%;
        opacity: 0.55;
    }
    75% {
        top: 60%;
        left: 35%;
        opacity: 0.65;
    }
    100% {
        top: 30%;
        left: 30%;
        opacity: 0.5;
    }
}

/* Radial gradient for H1 focal zone */
.bg-gradient-radial {
    background: radial-gradient(circle at center, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to));
}

/* Spotlight animation */
@keyframes spotlight {
    0% {
        transform: rotate(0deg) translateX(0px);
    }
    25% {
        transform: rotate(10deg) translateX(50px);
    }
    50% {
        transform: rotate(-5deg) translateX(-30px);
    }
    75% {
        transform: rotate(5deg) translateX(20px);
    }
    100% {
        transform: rotate(0deg) translateX(0px);
    }
}

.animate-spotlight {
    animation: spotlight 15s ease-in-out infinite;
}

/* Fix occasional left-edge seam from rotating spotlight container */
.animate-spotlight {
    left: -60% !important;
    width: 220% !important;
    height: 220% !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Navbar supernatural effects */
nav {
    position: relative;
    transition: all 0.3s ease;
}

/* Navbar transparent state (initial) */
.navbar-transparent {
    background: linear-gradient(to bottom, 
        rgba(3, 38, 37, 0.3) 0%,
        rgba(3, 38, 37, 0.2) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(150, 239, 234, 0.06);
}

/* Navbar scrolled/solid state */
.navbar-scrolled {
    background: linear-gradient(to bottom,
        rgba(3, 38, 37, 0.90) 0%,
        rgba(3, 38, 37, 0.82) 100%);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    border-bottom: 1px solid rgba(150, 239, 234, 0.14);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(150, 239, 234, 0.03);
}

/* Navbar Layout & Structure */
.navbar-height {
    height: 72px;
}

@media (max-width: 640px) {
    .navbar-height {
        height: 56px;
    }
}

/* Page hero offset: match navbar height across breakpoints */
.page-hero-offset { margin-top: 72px; }
@media (max-width: 640px) { .page-hero-offset { margin-top: 56px !important; } }
@media (max-width: 768px) and (min-width: 641px) { .page-hero-offset { margin-top: 60px !important; } }

@media (max-width: 768px) and (min-width: 641px) {
    .navbar-height {
        height: 60px;
    }
}


/* Navbar link text */
.navbar-link-text {
    font-size: 14px;
    letter-spacing: 0.01em;
    font-weight: 500;
}

/* Navbar CTA */
.navbar-cta {
    font-size: 14px;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .navbar-cta {
        font-size: 13px;
    }
}

/* Logo hover effect */
nav svg {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav svg:hover {
    filter: drop-shadow(0 4px 8px rgba(150, 239, 234, 0.2));
}

/* Navigation link hover effect */
nav a.navbar-link-text {
    position: relative;
}

nav a.navbar-link-text span::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #96efea, #17cfbc);
    transition: width 0.3s ease;
}

nav a.navbar-link-text:hover span::after {
    width: 100%;
}

/* Button hover effect */
nav button {
    position: relative;
    overflow: hidden;
}

nav button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(163, 213, 208, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

nav button:hover::before {
    transform: translateX(100%);
}

/* Dark CTA button (light section) with matching sheen */
.btn-dark-cta {
    position: relative;
    overflow: hidden;
}

.btn-dark-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(163, 213, 208, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-dark-cta:hover::before {
    transform: translateX(100%);
}

/* Removed vertical dividers between hero feature items per feedback */

/* Supernatural effects */
/* Typography refinements */
h1 {
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 700;
}

/* Hero Typography System */
.hero-headline {
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-headline-small {
    font-size: 64px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-headline-large {
    font-size: 76px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

@media (min-width: 1024px) {
    .hero-headline-small {
        font-size: 68px;
    }
    .hero-headline-large {
        font-size: 82px;
    }
}

@media (min-width: 1280px) {
    .hero-headline-small {
        font-size: 72px;
    }
    .hero-headline-large {
        font-size: 86px;
    }
}

@media (max-width: 640px) {
    .hero-headline-small {
        font-size: 44px;
    }
    .hero-headline-large {
        font-size: 50px;
        line-height: 1;
    }
}

@media (max-width: 768px) and (min-width: 641px) {
    .hero-headline-small {
        font-size: 52px;
    }
    .hero-headline-large {
        font-size: 60px;
    }
}

.hero-subhead {
    font-size: 20px;
    line-height: 1.6;
    max-width: 50ch; /* within 48–52ch range */
    font-weight: 400;
    position: relative;
    text-wrap: balance;
}

/* No-break helper for short phrases */
/* Removed unused utility .nb */

/* Extremely small screens: allow H1 lines to wrap */
@media (max-width: 360px) {
    h1 span { white-space: normal; }
}

@media (min-width: 1024px) {
    .hero-subhead {
        font-size: 22px;
        line-height: 1.5;
        max-width: 45ch;
    }
}

@media (max-width: 640px) {
    .hero-subhead {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Footer subhead: smaller type, same wrapping */
.footer-subhead {
    font-size: 14px;
    line-height: 1.6;
    max-width: 46ch;
    font-weight: 400;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    .footer-subhead {
        font-size: 15px;
        line-height: 1.5;
        max-width: 48ch;
    }
}

@media (max-width: 640px) {
    .footer-subhead {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Footer menu item sizing to match footer-subhead rhythm */
.footer-nav-link {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .footer-nav-link {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .footer-nav-link {
        font-size: 13px;
    }
}

.hero-form-label {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hero-form-label {
        font-size: 15px;
    }
}

.hero-input {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}

.hero-feature-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero-feature-title {
        font-size: 14px;
    }
}

.hero-feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
    .hero-feature-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Input styles */
input {
    outline: none;
}

input::placeholder {
    color: #0b3b3a;
    opacity: 0.5;
}

input.error {
    border: 2px solid #96efea;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Button styling */
button {
    border: none;
}

/* Subtle hover effect for non-CTA buttons */
button:not([class*="bg-gradient-to-r"]):hover {
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

/* Gradient button (consistent design) */
.btn-gradient {
    background: #96efea;
    color: #0b3b3a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(11, 59, 58, 0.1);
    box-shadow: 0 1px 2px rgba(11, 59, 58, 0.05);
}

.btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        92deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    background: #a8f1ed;
    box-shadow: 0 4px 12px rgba(11, 59, 58, 0.15);
}

/* CTA button specific styles */
.light-section .btn-gradient {
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #96efea 0%, #86e4e0 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(150, 239, 234, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.light-section .btn-gradient:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(150, 239, 234, 0.25);
    background: linear-gradient(135deg, #a8f1ed 0%, #96efea 100%);
}

/* Button icon animation */
/* Button icon alignment */
.btn-gradient svg {
    display: inline-block;
    margin-top: 0;
    vertical-align: middle;
}

/* Feature section styling */
h3 {
    line-height: 1.3;
    font-size: 1rem;
    font-weight: 600;
}

/* Feature item styling - floating cards */
.feature-item {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                background 0.2s ease,
                border-color 0.2s ease;
    background: linear-gradient(135deg, rgba(14, 65, 64, 0.95) 0%, rgba(10, 54, 53, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 10px 25px -5px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(150, 239, 234, 0.1),
        inset 0 1px 0 rgba(150, 239, 234, 0.2);
    padding: 1.25rem 1.5rem;
    border-radius: 0.875rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(150, 239, 234, 0.15);
    position: relative;
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        0 18px 36px -10px rgba(150, 239, 234, 0.15),
        0 8px 16px rgba(150, 239, 234, 0.12),
        inset 0 1px 0 rgba(150, 239, 234, 0.3);
    background: linear-gradient(135deg, rgba(18, 71, 68, 0.98) 0%, rgba(14, 60, 58, 0.98) 100%);
    border-color: rgba(150, 239, 234, 0.25);
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, transparent 40%, rgba(150, 239, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item p {
    max-width: 90%;
}

/* Normalize feature paragraph wrapping and height */
.feature-item .hero-feature-text {
    /* Encourage balanced line breaks for nicer rag */
    text-wrap: balance;
    /* Constrain measure so most cards wrap to ~2 lines */
    max-width: 28ch;
    /* Ensure consistent visual height for 2 lines at default line-height */
    min-height: calc(1.6em * 2);
}

@media (max-width: 640px) {
    .feature-item .hero-feature-text {
        /* Slightly adjust for tighter mobile line-height */
        min-height: calc(1.5em * 2);
        max-width: 30ch;
    }
}

/* Per-card tuning: force slightly narrower measure to match line count */
.feature-item .hero-feature-text--narrow {
    max-width: 19ch;
}

/* Feature icon styling */
.feature-icon {
    stroke-width: 2;
    width: 32px;
    height: 32px;
    margin-bottom: 0.65rem;
    align-self: flex-start;
    color: #96efea;
    opacity: 0.9;
}

/* Section spacing and transitions */
section {
    position: relative;
}

/* Integration cards styling */
.integration-card {
    cursor: default; /* Ensure integration cards don't show hand cursor unless they're links */
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
    background-color: #0e4140;
    box-shadow: -20px 20px 40px -15px #03262566;
    position: relative;
    overflow: hidden;
}

/* Consistent icon for integration headers */
.integration-card .integration-icon,
.integration-card .feather {
    width: 24px;
    height: 24px;
    color: #96efea;
}

/* API code card styling */
.code-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(150,239,234,0.12);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: 0; /* allow inner code to size and scroll */
    position: relative; /* ensure on top of any background overlays */
    z-index: 2;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(150,239,234,0.12);
}

.code-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    background: rgba(150,239,234,0.12);
    color: #96EFEA;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.code-body {
    font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    /* wrap long lines: no horizontal scrollbar */
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-y: auto;
    overflow-x: hidden;
    height: 240px;    /* fixed height for consistent box size */
    padding-right: 14px; /* reserve gutter for overlay scrollbars on macOS */
    box-sizing: content-box;
    position: relative;
    z-index: 3;
    scrollbar-gutter: stable both-edges; /* reserve space for consistent, clickable scrollbar */
    scrollbar-width: thin; /* Firefox custom scrollbar */
    scrollbar-color: rgba(150,239,234,0.45) rgba(255,255,255,0.06);
}

@media (min-width: 1024px) {
    .code-body { font-size: 14px; height: 300px; }
}

/* Allow the API card to let the code block's overlay scrollbar be interactive */
#api-card { overflow: visible; }
#api-card { overflow: hidden; }

.code-select {
    appearance: none;
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(150,239,234,0.25);
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2396EFEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    min-width: 100px;
    cursor: pointer;
}

.code-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(150,239,234,0.2);
}

.code-select {
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    border: 1px solid rgba(150,239,234,0.25);
    background-color: rgba(3,38,37,0.35);
}
.code-select:hover {
    border-color: rgba(150,239,234,0.45);
}
.code-select:focus {
    border-color: rgba(150,239,234,0.6);
    box-shadow: 0 0 0 2px rgba(150,239,234,0.18);
}
.code-select option {
    background-color: #032625;
    color: #E6FFFB;
}

/* Custom scrollbar (WebKit/Blink) */
.code-body::-webkit-scrollbar {
    height: 10px; /* horizontal */
    width: 12px;  /* vertical */
}
.code-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}
.code-body::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(150,239,234,0.55), rgba(23,207,188,0.45));
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.code-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(150,239,234,0.75), rgba(23,207,188,0.65));
}

/* Standalone API panel styling for separation */
.api-access-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(150,239,234,0.12);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.api-access-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(150,239,234,0.08);
}

/* Integration card with links should have pointer cursor */
.integration-card a {
    cursor: pointer;
}

/* Top integrations: horizontal logo strip with snapping */
.integration-logo-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
}
.logo-tile {
    scroll-snap-align: start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(150,239,234,0.12);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.logo-tile:hover { 
    transform: translateY(-2px);
    border-color: rgba(150,239,234,0.3);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.logo-tile img {
    filter: grayscale(100%);
    transition: filter 0.2s ease, transform 0.2s ease;
}
.logo-tile:hover img { filter: grayscale(0%); transform: scale(1.03); }

/* Bottom integrations: mosaic layout */
.integration-mosaic { display: grid; gap: 16px; }
@media (min-width: 641px) and (max-width: 1023px) { .integration-mosaic { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .integration-mosaic { grid-template-columns: 2fr 1fr; } .mosaic-span-2 { grid-row: span 2; } }

/* Integration section styling */
.integration-section {
    position: relative;
    z-index: 3; /* raise above global overlays to avoid seams */
    background: #032625;
}

.integration-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #032625; /* mask any fixed background seams */
    pointer-events: none;
}

/* Blog-specific card transparency overrides */
.blog-feature,
.blog-card {
    background-color: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Blog improvements */
.subscribe-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(150,239,234,0.14);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.subscribe-card.hero {
    padding: 22px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(150,239,234,0.2);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* Slightly wider measure for subscribe description */
.subscribe-desc {
    max-width: 52ch;
}
.subscribe-card .benefit {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.blog-filter-bar {
    position: sticky;
    top: 72px; /* approximate navbar height */
    z-index: 40;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(3,38,37,0.75), rgba(3,38,37,0.55));
    border-bottom: 1px solid rgba(150,239,234,0.12);
}
.blog-filter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 12px;
    color: #96EFEA;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(150,239,234,0.2);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(150,239,234,0.35); }
.chip.active { background: rgba(150,239,234,0.15); border-color: rgba(150,239,234,0.4); }

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.meta-line {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.thumb-16x9 { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.thumb-16x9 > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-feature {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03));
    border: 1px solid rgba(150,239,234,0.18) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,0.35);
}
.blog-feature:hover {
    box-shadow: 0 28px 64px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(150,239,234,0.25);
}
.blog-card:hover .thumb-16x9 > img { transform: scale(1.04); }

.blog-section-bg {
    background: linear-gradient(180deg, rgba(2,24,23,0.9) 0%, rgba(3,38,37,0.85) 40%, rgba(3,38,37,0.8) 100%);
}

.hero-scanlines {
    background-image: repeating-linear-gradient(
        to bottom, rgba(150,239,234,0.05), rgba(150,239,234,0.05) 1px, transparent 1px, transparent 6px
    );
    opacity: 0.15;
}

/* (reverted) removed blog-hero decorative art and special focus ring */

/* Input focus ring harmonized with CTA gradient */
.hero-input:focus {
    outline: none;
    border-color: rgba(150, 239, 234, 0.5);
    box-shadow:
        0 0 0 2px rgba(150, 239, 234, 0.25),
        0 0 0 6px rgba(23, 207, 188, 0.18);
}

/* Blog hero paragraph: encourage balanced line breaks */
.blog-hero-subhead { text-wrap: balance; }

/* Light section styling with enhanced CTA design */
.light-section {
    background-color: #fffdf5;
    color: #032625;
    position: relative;
    z-index: 2;
}


/* Animation keyframes */
@keyframes glow-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}


/* Hand image styling */
.hand-image {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    z-index: 10;
    animation: floatHand 6s ease-in-out infinite;
    cursor: default; /* Ensure hand image doesn't show hand cursor */
}

@keyframes floatHand {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Floating card animation */
.floating-card {
    animation: floatCard 8s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Line clamp utilities */
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1024px) {
    .hand-image {
        position: relative;
        width: 100%;
        max-width: 500px;
        transform: translateY(0);
        animation: floatHand 6s ease-in-out infinite;
        z-index: 10;
    }
}


/* Mobile responsiveness */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .hand-image {
        position: relative;
        width: 80%;
        max-width: 300px;
        margin: 1rem auto 3rem;
        left: 0;
        right: 0;
        transform: translateY(0);
    }


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

    .form-container button {
        width: 100%;
        margin-top: 0.5rem;
    }

    #contact-dialog .relative {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }

    footer .flex.space-x-6 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .integration-section .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .light-section .flex.items-center.justify-center.gap-6 {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-item {
        min-height: auto;
        padding: 1rem;
    }

    .feature-container .grid-cols-1.sm\:grid-cols-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }


    #contact-dialog .grid.grid-cols-2.gap-3 {
        grid-template-columns: 1fr;
    }

    #contact-dialog .flex.items-center.col-span-2 {
        grid-column: span 1;
    }

    /* Navbar handled by .navbar-height class */

    /* Adjust padding for mobile to prevent content touching edges */
    .container.px-6 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Improve footer text readability on mobile */
    footer .text-white.opacity-80 {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Make contact form more touch-friendly */
    #contact-dialog textarea,
    #contact-dialog input[type="text"],
    #contact-dialog input[type="email"] {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
    }

}

/* Hover effects */
.integration-card:hover {
    background-color: #0a3837;
    transform: translateY(-2px);
}

.integration-card:hover img {
    filter: grayscale(0%) brightness(1.5);
    transform: scale(1.05);
}

.integration-card:hover h3 {
    color: #96efea;
}

/* Integration card glow effect */
.integration-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(83, 193, 184, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Keep API card glow within its bounds to avoid overlap with logo tiles */
#api-card::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.integration-card:hover::after {
    opacity: 1;
}

/* Grayscale for images */
.grayscale {
    filter: grayscale(100%);
}

/* Transition for all transforms */
.transition-all {
    transition: all 0.3s ease;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Create subtle glow for feature icons */
.feature-icon {
    filter: drop-shadow(0 0 3px rgba(83, 193, 184, 0.3));
    transition: filter 0.3s ease;
}

.feature-item:hover .feature-icon {
    filter: drop-shadow(0 0 8px rgba(83, 193, 184, 0.5));
}

/* Add shadow glow to checkmark circles */
.rounded-full.bg-primary-turquoise {
    box-shadow: 0 0 15px rgba(83, 193, 184, 0.2);
    transition: box-shadow 0.3s ease;
}


/* Find out more button */
.absolute button {
    font-weight: 500;
    cursor: pointer;
    background-color: #a3d5d0;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 10px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(83, 193, 184, 0.4);
}

.absolute button:hover {
    box-shadow: 0 0 15px rgba(83, 193, 184, 0.6);
}

.absolute button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.absolute button:hover::after {
    opacity: 1;
}

/* Button glow effect for all buttons */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(163, 213, 208, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

button[type="submit"]:hover::before {
    transform: translateX(100%);
}

/* Supernatural particles animation */
.supernatural-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.supernatural-particles::before {
    content: "";
    position: absolute;
    inset: -20%; /* oversize to prevent edge seams on motion */
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(150, 239, 234, 0.25) 0%,
            transparent 15%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(23, 207, 188, 0.2) 0%,
            transparent 20%
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(150, 239, 234, 0.15) 0%,
            transparent 18%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(163, 213, 208, 0.2) 0%,
            transparent 15%
        ),
        radial-gradient(
            circle at 10% 50%,
            rgba(23, 207, 188, 0.18) 0%,
            transparent 12%
        );
    background-size: 220% 220%;
    animation: particlesFade 10s ease infinite;
    opacity: 0.8;
    will-change: transform, background-position;
    backface-visibility: hidden;
}

.supernatural-particles::after {
    content: "";
    position: absolute;
    inset: -20%; /* oversize to prevent edge seams on motion */
    background-image:
        radial-gradient(
            circle at 30% 20%,
            rgba(83, 193, 184, 0.1) 0%,
            transparent 10%
        ),
        radial-gradient(
            circle at 60% 70%,
            rgba(163, 213, 208, 0.1) 0%,
            transparent 10%
        ),
        radial-gradient(
            circle at 80% 40%,
            rgba(83, 193, 184, 0.1) 0%,
            transparent 10%
        );
    background-size: 250% 250%;
    animation: particlesFadeAlt 12s ease-in-out infinite;
    opacity: 0.5;
    will-change: transform, background-position;
    backface-visibility: hidden;
}

/* Docs page: localize + more subtle, slower hero particles */
.supernatural-particles.docs-hero-particles { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
.docs-hero-particles::before { animation: particlesFade 26s ease infinite !important; opacity: 0.35 !important; }
.docs-hero-particles::after  { animation: particlesFadeAlt 36s ease-in-out infinite !important; opacity: 0.22 !important; }

/* Blog pages: even subtler, slower background glow */
.supernatural-particles.blog-hero-particles { position: fixed !important; inset: 0 !important; }
.blog-hero-particles::before { animation: particlesFadeSoft 32s ease-in-out infinite !important; opacity: 0.32 !important; background-size: 200% 200% !important; }
.blog-hero-particles::after  { animation: particlesFadeAltSoft 44s ease-in-out infinite !important; opacity: 0.18 !important; background-size: 230% 230% !important; }

@keyframes particlesFade {
    0% {
        background-position: 0% 0%;
        opacity: 0.5;
        transform: scale(1);
    }
    25% {
        background-position: 50% 50%;
        opacity: 1;
        transform: scale(1.05);
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.7;
        transform: scale(1);
    }
    75% {
        background-position: 50% 50%;
        opacity: 0.9;
        transform: scale(0.95);
    }
    100% {
        background-position: 0% 0%;
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes particlesFadeAlt {
    0% {
        background-position: 50% 50%;
        opacity: 0.5;
    }
    50% {
        background-position: 0% 100%;
        opacity: 0.9;
    }
    100% {
        background-position: 50% 50%;
        opacity: 0.5;
    }
}

/* Softer keyframes for blog background */
@keyframes particlesFadeSoft {
    0%   { background-position: 0% 0%;   opacity: 0.45; transform: scale(1); }
    25%  { background-position: 40% 40%; opacity: 0.6;  transform: scale(1.01); }
    50%  { background-position: 90% 90%; opacity: 0.5;  transform: scale(1); }
    75%  { background-position: 40% 40%; opacity: 0.55; transform: scale(0.99); }
    100% { background-position: 0% 0%;   opacity: 0.45; transform: scale(1); }
}

@keyframes particlesFadeAltSoft {
    0%   { background-position: 50% 50%; opacity: 0.35; }
    50%  { background-position: 10% 90%; opacity: 0.5;  }
    100% { background-position: 50% 50%; opacity: 0.35; }
}

/* Section transitions and backgrounds */
.fingerprinting-section {
    background-color: #000a09;
    background: linear-gradient(to bottom, #000a09, #0b3b3a);
    position: relative;
    z-index: 5;
}

/* Premium: subtle vignette to focus content */
.fingerprinting-section::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.25) 100%);
}


/* Gradient title for emphasis */
.gradient-title {
    background: linear-gradient(90deg, #96efea 0%, #17cfbc 60%, #96efea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(150, 239, 234, 0.08);
}

/* Premium feature cards */
.uf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px;
    border-radius: 14px;
    min-height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.uf-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 180deg at 50% 50%, rgba(150, 239, 234, 0.45), rgba(23, 207, 188, 0.3), rgba(150, 239, 234, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 1px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.uf-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transform: translateX(-120%);
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.08), rgba(255,255,255,0));
    transition: transform 0.6s ease;
    pointer-events: none;
}

.uf-card:hover::after {
    transform: translateX(120%);
}

.uf-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

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

.uf-icon-ring {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.uf-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aef5f1;
}

.uf-icon > svg {
    width: 20px !important;
    height: 20px !important;
}
/* Ensure img-based icons match sizing */
.uf-icon > img {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.uf-title {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
    margin-bottom: 6px;
    text-align: center;
    text-wrap: balance;
}

.uf-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0;
    line-height: 1.5;
    text-align: center;
    text-wrap: pretty;
    min-height: calc(1.5em * 3);
}

/* Glassy stepper panel with gradient border */
.glass-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Slightly denser variant for modals to reduce transparency */
.modal-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(150, 239, 234, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gradient-border {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(150, 239, 234, 0.35), rgba(23, 207, 188, 0.25), rgba(150, 239, 234, 0.35));
    opacity: 0.25;
    pointer-events: none;
}

.premium-line {
    background: linear-gradient(90deg, rgba(150, 239, 234, 0), rgba(150, 239, 234, 0.35), rgba(150, 239, 234, 0));
}

.premium-node {
    background: linear-gradient(180deg, rgba(150, 239, 234, 0.12), rgba(23, 207, 188, 0.08));
    border: 1px solid rgba(150, 239, 234, 0.4);
    box-shadow: 0 0 12px rgba(150, 239, 234, 0.2);
}

/* Stepper connector segments (between nodes) */
.stepper-connector {
    position: absolute;
    height: 1px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    opacity: 0.9;
}

/* Always One Step Ahead: mobile-friendly layout */
@media (max-width: 768px) {
    /* Stack the three stepper columns */
    .fingerprinting-section .glass-panel .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
        row-gap: 16px;
    }
    /* Hide horizontal connectors on stacked layout */
    .stepper-connector { display: none !important; }
}

@media (max-width: 640px) {
    /* On mobile, place the status pill in the normal flow above content */
    .glass-panel > span.absolute {
        position: static !important;
        display: inline-block;
        margin: 0 auto 0.5rem;
        left: auto; right: auto; top: auto;
        transform: none;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Clean heading layout */
.section-heading .section-title {
    letter-spacing: -0.02em;
}

.section-heading .section-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    line-height: 1.6;
}


/* Footer dark background */
footer {
    background: #021c1a;
    position: relative;
    z-index: 2;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(150, 239, 234, 0.1),
        transparent
    );
}

/* Elements that should not have a pointer cursor */
.hand-image-mobile {
    cursor: default !important;
}
.proof-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    padding: 28px 0 6px;
}

.proof-row::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(150, 239, 234, 0.25), transparent);
    opacity: 0.6;
}

.proof-min {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Center all items by default; grid handles placement */
.proof-min:nth-child(1),
.proof-min:nth-child(2),
.proof-min:nth-child(3),
.proof-min:nth-child(4) { justify-content: center; }

.proof-icon-min {
    width: 12px;
    height: 12px;
    color: #96efea;
    opacity: 0.95;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(150, 239, 234, 0.2));
}

@media (max-width: 640px) {
    .proof-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0 0;
    }
    .proof-min { justify-content: center; }
}

/* At tablet widths, use a tidy 2x2 grid for the bullets */
@media (max-width: 1024px) and (min-width: 641px) {
    .proof-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .proof-min { justify-content: center; }
}

/* Blog-specific hero tuning to avoid visual clipping on wrapped lines */
.blog-hero-title { line-height: 1.12; }

/* Wider blog hero subhead */
.blog-hero-subhead { max-width: 66ch; }
@media (min-width: 1024px) { .blog-hero-subhead { max-width: 72ch; } }
