:root {
    --font-mono:
        ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Roboto,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;
    background: #06090f;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

section h1 {
    font-size: 64px;
    line-height: 72px;
    font-weight: 700;
    text-align: center;
}

section h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    text-align: center;
}

section h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

section h4 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

/* Code blocks - global styling */
code,
pre code {
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 40px;
    background-color: rgba(17, 15, 15, 0.4);
    backdrop-filter: blur(18px);
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    position: static;
    margin: 0;
}

.header-nav {
    display: flex;
    flex-direction: row;
    gap: 26px;
}

.nav-link {
    padding: 10px 0;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #34f8b6;
}

.nav-link.highlight {
    color: #00d4ff;
}

.nav-link.highlight:hover {
    color: #34f8b6;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
}

.hamburger-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.cross-icon {
    display: none;
}

/* Shiny Button Animation */
@keyframes gradient-angle {
    to {
        --gradient-angle: 360deg;
    }
}

@keyframes shimmer {
    to {
        rotate: 360deg;
    }
}

@keyframes breathe {
    from,
    to {
        scale: 1;
    }
    50% {
        scale: calc(1 + (var(--animation-intensity, 1) * 0.2));
    }
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: '<percentage>';
    initial-value: 5%;
    inherits: false;
}

@property --gradient-shine {
    syntax: '<color>';
    initial-value: white;
    inherits: false;
}

.btn-demo-header {
    position: relative;
    display: inline-block;
    min-width: fit-content;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #00d4ff;
    background:
        linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(48, 48, 48) 100%) padding-box,
        conic-gradient(
                from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
                transparent,
                var(--shiny-cta-highlight) var(--gradient-percent),
                var(--gradient-shine) calc(var(--gradient-percent) * 2),
                var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
                transparent calc(var(--gradient-percent) * 4)
            )
            border-box;
    box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1em;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.01em;
    isolation: isolate;
    outline-offset: 4px;
    overflow: hidden;
    transition:
        --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1),
        --gradient-percent,
        --gradient-shine;
    animation:
        var(--animation) var(--duration),
        var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;

    --shiny-cta-bg: rgb(0, 0, 0);
    --shiny-cta-bg-subtle: rgb(48, 48, 48);
    --shiny-cta-fg: rgb(255, 255, 255);
    --shiny-cta-highlight: #00d4ff;
    --shiny-cta-highlight-subtle: rgb(255, 255, 255);
    --animation: gradient-angle linear infinite;
    --duration: 4s;
    --shadow-size: 2px;
    --animation-intensity: 1;
    --focus-ring-color: #00d4ff;
    --focus-ring-width: 3px;
    --hover-color: rgba(0, 212, 255, 0.3);
    --hover-intensity: 1;
    --hover-effect: fill;
    --gradient-angle: 0deg;
    --gradient-angle-offset: 0deg;
    --gradient-percent: 5%;
    --gradient-shine: white;
}

.btn-demo-header::before,
.btn-demo-header::after,
.btn-demo-header span::before {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
    pointer-events: none;
}

.btn-demo-header::before {
    --size: calc(100% - var(--shadow-size) * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background-image: radial-gradient(
        circle at var(--position) var(--position),
        white calc(var(--position) / 4),
        transparent 0
    );
    background-size: var(--space) var(--space);
    background-repeat: space;
    background-position: 0 0;
    mask-image: conic-gradient(
        from calc(var(--gradient-angle) + 45deg),
        black,
        transparent 10% 90%,
        black
    );
    border-radius: inherit;
    opacity: 0.4;
    transform: translateZ(0);
    animation:
        var(--animation) var(--duration),
        var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
}

.btn-demo-header::after {
    --animation: shimmer linear infinite;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(
        -50deg,
        rgba(255, 255, 255, 0.1),
        var(--shiny-cta-highlight),
        rgba(255, 255, 255, 0.2)
    );
    backdrop-filter: blur(5px);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
    animation:
        var(--animation) var(--duration),
        var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
}

.btn-demo-header span {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.btn-demo-header span::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.btn-demo-header:is(:hover, :focus-visible) {
    --gradient-percent: 20%;
    --gradient-angle-offset: 95deg;
    --gradient-shine: var(--shiny-cta-highlight-subtle);
}

.btn-demo-header:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--hover-color);
    opacity: calc(0.2 * var(--hover-intensity));
    border-radius: inherit;
    z-index: -1;
}

.btn-demo-header:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hover-color) 0%, var(--hover-color) 100%);
    opacity: calc(0.7 * var(--hover-intensity));
    border-radius: inherit;
    mask-image: none;
    animation: none;
    transform: none;
    top: 0;
    left: 0;
    translate: 0 0;
    z-index: -1;
}

.btn-demo-header:is(:hover, :focus-visible) span::before {
    opacity: 0;
}

.btn-demo-header:focus {
    outline: none;
}

.btn-demo-header:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transition: outline-offset 150ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .btn-demo-header,
    .btn-demo-header::before,
    .btn-demo-header::after,
    .btn-demo-header span::before {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

.container {
    max-width: 1016px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo img {
    width: 100%;
    height: 44px;
    display: block;
    object-fit: contain;
}

.highlight {
    color: #00ff88;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
}

.cta-primary-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-clarification {
    max-width: 300px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #718096;
    text-align: center;
    opacity: 0.85;
}

.cta-clarification .inline-link {
    color: #8b9bb5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.cta-clarification .inline-link:hover {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.btn {
    display: inline-block;
    padding: 17px 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    line-height: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e1a;
}

/* Shimmer effect on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    border: 2px solid #00d4ff;
    background: transparent;
    color: #00d4ff;
}

/* Shimmer effect on hover for secondary button */
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 40px;
}

.section-dark {
    background: #0f1419;
}

.section-contrast {
    background: linear-gradient(180deg, #06090f 0%, #0f1419 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.section-title {
    margin-bottom: 54px;
    letter-spacing: 0.5px;
}

.section-subtitle {
    display: block;
    margin-top: 16px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #a0aec0;
}

/* Section Tagline - reusable subtitle style */
.section-tagline {
    font-size: 24px;
    text-align: center;
    color: #a0aec0;
    margin: 20px auto 60px;
    max-width: 800px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-2 {
    background: linear-gradient(135deg, #34f8b6 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Color Utilities */
.text-red {
    color: #ff6464;
}

.text-green {
    color: #00ff88;
}

.highlight-blue {
    color: #00d4ff;
    font-weight: 600;
}

.highlight-green {
    color: #00ff88;
    font-weight: 600;
}

.highlight-red {
    color: #ff6464;
    font-weight: 600;
}

/* Inline Links */
.inline-link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.inline-link:hover {
    color: #00ff88;
}

/* Inline Code */
.inline-code {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #00d4ff;
    white-space: nowrap;
}

.inline-code.purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.inline-code.yellow {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Hamburger (Alt) */
.hamburger {
    display: none;
}

.menu-toggle {
    display: none;
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(180deg, #0f1419 0%, #0a0e1a 100%);
    padding: 0;
    color: #a0aec0;
}

.footer-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top-border {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #00d4ff 20%,
        #00ff88 50%,
        #00d4ff 80%,
        transparent 100%
    );
    opacity: 0.4;
    margin-bottom: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
}

/* Brand section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-link:hover img {
    opacity: 1;
}

/* Navigation columns */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-heading {
    font-size: 13px;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.footer-nav-column a {
    font-size: 14px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-nav-column a:hover {
    color: #f5f5f5;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-made-with {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    font-size: 14px;
}

.separator {
    color: #4a5568;
    margin: 0 4px;
}

.hiring-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.hiring-link:hover {
    color: #00ff88;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #a0aec0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section h1 {
        font-size: 48px;
        line-height: 56px;
        font-weight: 700;
    }

    .section-tagline {
        font-size: 20px;
        margin: 20px auto 40px;
    }

    .section,
    .cta-section {
        padding: 80px 40px;
    }

    .header {
        padding: 22px 40px;
    }

    .header-nav {
        position: fixed;
        top: 92px;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 4px;
        width: 100vw;
        height: 100vh;
        padding: 40px;
        background-color: #110f0f;
    }

    .hamburger-icon {
        display: block;
    }

    .hamburger-icon img.cross-icon {
        display: none;
    }

    .section-title {
        margin-bottom: 48px;
        font-size: 40px;
        line-height: 54px;
    }

    .section-subtitle {
        font-size: 22px;
    }

    .btn-demo-header {
        width: fit-content;
    }

    /* Footer responsive 1024px */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav {
        justify-items: center;
        text-align: center;
    }

    .problem-card {
        max-width: unset;
    }
}

@media (max-width: 950px) {
    .menu-toggle:checked ~ .nav {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        margin: 5px 0;
        background: #ffffff;
        transition: 0.3s;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

@media (max-width: 768px) {
    .section,
    .cta-section {
        padding: 60px 20px;
    }

    .header-nav {
        gap: 10px;
    }

    .btn-demo-header {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .cta-clarification {
        max-width: 100%;
        font-size: 12px;
    }

    /* Footer responsive 768px */
    .footer-modern-container {
        padding: 0 20px;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .cta-primary-wrapper {
        width: 100%;
    }
}

/* Animated Arrow Links */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition:
        border-color 0.3s ease,
        gap 0.3s ease;
}

/* Blue variant (default) */
.arrow-link.arrow-link-blue {
    color: #00d4ff;
}

.arrow-link.arrow-link-blue:hover {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

/* Green variant */
.arrow-link.arrow-link-green {
    color: #00ff88;
}

.arrow-link.arrow-link-green:hover {
    border-bottom-color: #00ff88;
}

/* Small variant for inline usage */
.arrow-link.arrow-link-small {
    margin-top: 12px;
    font-size: 15px;
}

.arrow-link .arrow-link-icon {
    font-size: 18px;
}

/* Animated variant with gap expansion on hover */
.arrow-link.arrow-link-animated {
    font-size: 18px;
    gap: 12px;
}

.arrow-link.arrow-link-animated:hover {
    gap: 16px;
    border-bottom-color: #00d4ff;
}

/* Inline CTA wrapper */
.inline-cta-wrapper {
    text-align: center;
    padding-top: 40px;
}

/* Pill Badge - reusable badge/label component */
.pill-badge {
    display: inline-block;
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Blue gradient variant (default) */
.pill-badge-blue {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

/* Green variant */
.pill-badge-green {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 16px;
}

/* Section Title Left Aligned variant */
.section-title-left {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

@media (max-width: 768px) {
    .section-title-left {
        font-size: 32px;
    }
}

/* Video Embed Wrapper */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
}

/* Connecting Line (for step flows) */
.connecting-line {
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #00d4ff, #00ff88);
    margin: 20px auto;
}

@media (max-width: 500px) {
    .section,
    .cta-section {
        padding: 50px 20px;
    }

    .header {
        padding: 22px 20px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    /* Footer responsive 500px */
    .footer-top-border {
        margin-bottom: 40px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-main {
        padding-bottom: 32px;
    }
}
