:root {
    --bg-color: #050507;
    --surface-color: #0E0E12;
    --primary-accent: #3B82F6;
    --secondary-accent: #8B5CF6;
    --text-main: #FFFFFF;
    --text-secondary: #9CA3AF;
    --gradient-main: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --nav-height: 80px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

/* Site header only — do not use bare `nav` (sidebar uses <nav> for a11y). */
body > nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

body > nav .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-main);
}

/* Nav Menu & Dropdown */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text-main);
    outline: none;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

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

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

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

.dropdown {
    position: relative;
    display: inline-block;
}

/* Invisible hit area between button and panel so :hover is not lost in the gap */
.dropdown::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 12rem;
    max-width: min(12rem, 85vw);
    height: 16px;
    z-index: 999;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn,
.dropbtn:hover {
    color: var(--text-main);
}

.dropdown-content {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px);
    min-width: 11rem;
    padding: 0.35rem 0;
    background-color: var(--surface-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glass-border);
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arrow/Triangle for dropdown */
.dropdown-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--glass-border) transparent;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    outline: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Hero */
.hero {
    padding-top: calc(var(--nav-height) + 4.5rem);
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(5, 5, 7, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-tagline {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.hero-highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Features Grid */
.features {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Specific layout for alternating rows */
.feature-row {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row.reversed {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.feature-visual {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Dynamic form demo: chatbot app window */
.dynamic-form-demo {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Proactive guidance: fill the full feature panel (default chatbot-window max-width is 280px) */
.guidance-feature-visual.feature-visual {
    aspect-ratio: auto;
    min-height: clamp(280px, 42vw, 420px);
    align-items: stretch;
}

.guidance-feature-visual::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 120%;
    background: radial-gradient(ellipse 80% 70% at 65% 45%, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.06) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.guidance-feature-visual .dynamic-form-demo {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    align-self: stretch;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.guidance-feature-visual .chatbot-window {
    max-width: 100%;
    width: 100%;
}

.guidance-feature-visual .guidance-app-mockup {
    font-size: clamp(0.7rem, 1.15vw, 0.88rem);
    min-height: clamp(168px, 24vw, 240px);
}

.guidance-feature-visual .guidance-app-frame {
    min-height: clamp(168px, 24vw, 240px);
}

.guidance-feature-visual .guidance-sidebar {
    width: clamp(92px, 13vw, 132px);
}

.guidance-feature-visual .guidance-workflow-card.chat-form-reply {
    max-width: min(260px, 52%);
    padding: clamp(0.55rem, 1.2vw, 0.75rem) clamp(0.65rem, 1.4vw, 0.85rem);
}

.guidance-feature-visual .chatbot-window-body.guidance-demo-body {
    min-height: clamp(188px, 26vw, 260px);
}

.guidance-feature-visual .chatbot-window-header {
    padding: clamp(0.5rem, 1.2vw, 0.65rem) clamp(0.75rem, 1.5vw, 1rem);
}

.guidance-feature-visual .chatbot-window-title {
    font-size: clamp(0.72rem, 1.1vw, 0.85rem);
}

/* Proactive guidance mock: same chatbot-window shell + in-app highlight + chat-form-reply card */

.guidance-app-mockup {
    position: relative;
    width: 100%;
    font-size: 0.65rem;
    line-height: 1.35;
    min-height: 142px;
}

.guidance-app-frame {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0E0E12;
    min-height: 140px;
}

.guidance-sidebar {
    width: 72px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.guidance-sidebar-brand {
    font-weight: 700;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.guidance-nav-item {
    padding: 0.25rem 0.35rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.guidance-nav-highlight {
    color: var(--text-main);
    outline: 2px solid #ef4444;
    outline-offset: 1px;
    background: rgba(239, 68, 68, 0.12);
}

.guidance-main {
    flex: 1;
    padding: 0.6rem 0.65rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.guidance-main-title {
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Table-style skeleton rows (mock data) */
.guidance-main-data {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.guidance-data-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.guidance-data-bar {
    flex: 1;
    min-width: 0;
    height: 0.45rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.guidance-data-bar--sm {
    flex: 0 0 18%;
    max-width: 2.5rem;
}

.guidance-data-bar--xs {
    flex: 0 0 12%;
    max-width: 1.75rem;
}

.guidance-data-bar--wide {
    flex: 1.35;
}

.guidance-data-bar--narrow {
    flex: 0.65;
}

.guidance-workflow-card.chat-form-reply {
    position: absolute;
    right: 0.25rem;
    bottom: 0.25rem;
    max-width: 188px;
    width: auto;
    padding: 0.5rem 0.6rem 0.55rem;
    gap: 0.4rem;
    border-radius: 12px;
    border-top-right-radius: 4px;
}

.guidance-workflow-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding-bottom: 0.4rem;
    margin-bottom: 0.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guidance-workflow-card-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    min-width: 0;
}

.guidance-workflow-card-actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.guidance-workflow-iconbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: default;
    transition: background 0.15s ease, color 0.15s ease;
}

.guidance-workflow-iconbtn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.guidance-workflow-iconbtn svg {
    width: 12px;
    height: 12px;
}

.guidance-audio-wave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 26px;
    padding: 0.2rem 0 0.1rem;
}

.guidance-wave-bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    transform-origin: bottom center;
    animation: guidance-wave-pulse 0.9s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}

.guidance-wave-bar:nth-child(1) { height: 35%; animation-delay: 0s; }
.guidance-wave-bar:nth-child(2) { height: 65%; animation-delay: 0.08s; }
.guidance-wave-bar:nth-child(3) { height: 45%; animation-delay: 0.16s; }
.guidance-wave-bar:nth-child(4) { height: 100%; animation-delay: 0.24s; }
.guidance-wave-bar:nth-child(5) { height: 55%; animation-delay: 0.32s; }
.guidance-wave-bar:nth-child(6) { height: 80%; animation-delay: 0.4s; }
.guidance-wave-bar:nth-child(7) { height: 40%; animation-delay: 0.48s; }
.guidance-wave-bar:nth-child(8) { height: 70%; animation-delay: 0.56s; }

@keyframes guidance-wave-pulse {
    0%, 100% {
        transform: scaleY(0.45);
        opacity: 0.75;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.guidance-workflow-copy {
    margin: 0;
    font-size: 0.62rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.guidance-workflow-copy strong {
    color: var(--text-main);
    font-weight: 600;
}

.guidance-workflow-btn.chat-create-btn {
    margin-top: 0;
    padding: 0.42rem 0.5rem;
    font-size: 0.62rem;
    border-radius: 8px;
}

.chatbot-window {
    width: 100%;
    max-width: 280px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.chatbot-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-window-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: auto;
}

.chatbot-window-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-window-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 140px;
}

.chatbot-window-body.guidance-demo-body {
    padding: 0.65rem;
    min-height: 160px;
}

.chat-row {
    display: flex;
    width: 100%;
}

.chat-row-user {
    justify-content: flex-start;
}

.chat-row-bot {
    justify-content: flex-end;
}

.chat-bubble {
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    max-width: 88%;
}

.chat-bubble-question {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-top-left-radius: 4px;
}

.chat-form-reply {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    background: rgba(30, 27, 46, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    border-top-right-radius: 4px;
    max-width: 260px;
    width: 100%;
}

.chat-create-btn {
    margin-top: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--gradient-main);
    border: none;
    border-radius: 8px;
    cursor: default;
    width: 100%;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
}

.chat-create-btn:disabled {
    cursor: default;
    opacity: 1;
}

.dynamic-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    animation: dynamic-field-in 0.4s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes dynamic-field-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dynamic-field .field-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.dynamic-field input,
.dynamic-field select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-main);
    background: #0E0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.75rem;
}

.dynamic-field input {
    background-image: none;
    padding-right: 0.65rem;
}

.dynamic-field input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Animations & Visuals */
.pulse-circle {
    width: 100px;
    height: 100px;
    background: var(--gradient-main);
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

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

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

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

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

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

@keyframes moveCursor {
    0% {
        transform: translate(60px, 40px);
    }

    50% {
        transform: translate(180px, 120px);
    }

    100% {
        transform: translate(60px, 40px);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* FAQ Styles */
.faq-section,
.pricing-section {
    padding-top: 180px;
    padding-bottom: 100px;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

.faq-item.is-open {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    transition: background-color 0.2s ease;
}

.faq-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: -2px;
}

.faq-chevron {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-chevron svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-accent);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-panel {
    grid-template-rows: 1fr;
}

.faq-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-panel-inner p {
    padding: 0 1.35rem 1.25rem;
    padding-top: 0;
    margin-top: -0.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
}

.faq-panel-inner p strong {
    color: var(--text-main);
    font-weight: 600;
}

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

.section-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.pricing-copy {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.05rem;
}

.pricing-copy p + p {
    margin-top: 1.25rem;
}

.pricing-copy strong {
    color: var(--text-main);
    font-weight: 600;
}

.pricing-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-footnote {
    text-align: center;
    font-size: 0.95rem;
}

.pricing-footnote a {
    color: var(--primary-accent);
    text-decoration: none;
}

.pricing-footnote a:hover {
    text-decoration: underline;
}

/* —— Blog index & cards —— */
.blogs-preview {
    padding: 5rem 0 6rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.blogs-preview-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.75rem;
}

.blogs-preview-title {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
    color: var(--text-main);
}

.blogs-preview-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.blogs-preview-actions {
    text-align: center;
    margin-top: 2.5rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto;
}

.blog-list--page {
    max-width: 44rem;
    gap: 1.15rem;
}

.blog-card {
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.blog-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.blog-card-link {
    display: block;
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
    border-radius: 14px;
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.blog-card-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.blog-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-list-error,
.blog-list-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.blogs-page {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 5rem;
}

.blogs-page-header {
    margin-bottom: 3rem;
}

.blogs-page-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 32rem;
    margin: 0 auto;
}

/* —— Article reader layout —— */
.article-page {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 5rem;
    min-height: 60vh;
}

.article-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    column-gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: start;
}

.article-sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: calc(var(--nav-height) + 1.25rem);
    align-self: start;
    z-index: 0;
    max-height: calc(100vh - var(--nav-height) - 2.75rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.article-sidebar-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--text-secondary);
    margin: 0 0 0.65rem;
    padding: 0 0.75rem 0.65rem;
    border-bottom: 1px solid var(--glass-border);
}

.article-sidebar-nav-inner {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    background: none;
    border: none;
    backdrop-filter: none;
}

.article-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.35rem 0 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.article-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.article-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.article-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-sidebar-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.7rem 0.75rem;
    border-radius: 11px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.article-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
}

.article-sidebar-link:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 1px;
}

.article-sidebar-link.is-active {
    background: rgba(59, 130, 246, 0.11);
    border-color: rgba(59, 130, 246, 0.28);
}

.article-sidebar-date {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.article-sidebar-link.is-active .article-sidebar-date {
    color: #93c5fd;
}

.article-sidebar-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.9);
}

.article-sidebar-link.is-active .article-sidebar-title {
    color: var(--text-main);
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-back-link--sidebar {
    flex-shrink: 0;
    align-self: flex-start;
    margin: 0 0 1rem;
    width: auto;
    max-width: 100%;
}

.article-back-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.article-back-link:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

.article-back-icon {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.72;
    flex-shrink: 0;
}

.article-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.article-main .article-prose {
    max-width: 42rem;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.article-meta-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.article-dek {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
}

.article-error {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
}

.article-error a {
    color: var(--primary-accent);
}

.article-prose {
    font-size: 1.125rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

.article-prose > *:first-child {
    margin-top: 0;
}

.article-prose h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin: 0 0 1.25rem;
}

.article-prose h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2.75rem 0 1rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    padding-top: 0.5rem;
}

.article-prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.65rem;
    color: var(--text-main);
}

.article-prose h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}

.article-prose p {
    margin: 0 0 1.25rem;
}

.article-prose p[align='center'],
.article-prose div[align='center'] {
    text-align: center;
}

.article-prose a {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.article-prose a:hover {
    color: #bfdbfe;
}

.article-prose strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-prose em {
    font-style: italic;
}

.article-prose hr {
    border: none;
    height: 1px;
    background: var(--glass-border);
    margin: 2.5rem 0;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 1.35rem;
    padding-left: 1.35rem;
}

.article-prose li {
    margin-bottom: 0.5rem;
}

.article-prose li::marker {
    color: var(--text-secondary);
}

.article-prose blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.15rem;
    border-left: 3px solid rgba(59, 130, 246, 0.55);
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.article-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 0.12em 0.4em;
    border-radius: 6px;
}

.article-prose pre {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}

.article-prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

.article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem auto;
    display: block;
}

.article-table-wrap {
    margin: 1.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-table th,
.article-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
}

.article-table th {
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1024px) {
    .hero {
        padding-top: calc(var(--nav-height) + 5rem);
        padding-bottom: 100px;
    }

    .feature-row {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
    }

    .nav-actions.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .dropdown::after {
        display: none;
    }

    .dropdown,
    .dropdown-content {
        width: 100%;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }

    .dropdown-content {
        display: block;
        padding-left: 1rem;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropbtn {
        font-size: 1.25rem;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 1rem 0;
        width: 100%;
    }

    .btn-primary.nav-cta {
        width: auto;
        margin-top: 0;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 3.75rem);
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .feature-row,
    .feature-row.reversed {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 5rem;
        text-align: center;
    }

    .feature-content h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .feature-visual {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-close {
        top: 0.75rem;
        right: 1rem;
    }

    .faq-section,
    .pricing-section {
        padding-top: 130px;
    }

    .faq-trigger {
        font-size: 1rem;
        padding: 1rem 1.15rem;
    }

    .faq-panel-inner p {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
        font-size: 0.95rem;
    }

    .blogs-preview {
        padding: 3.5rem 0 4rem;
    }

    .blogs-page,
    .article-page {
        padding-top: calc(var(--nav-height) + 2.75rem);
    }

    .article-prose {
        font-size: 1.05rem;
    }

    .article-prose h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p,
    .hero-tagline {
        font-size: 1.1rem;
    }

    .feature-row {
        margin-bottom: 4rem;
    }
}