/* ============================================
   Jabar Tech VC - Tech-forward design system
   ============================================ */

:root {
    --bg-dark: #0a0b0f;
    --bg-card: #12141a;
    --bg-elevated: #181b23;
    --border: rgba(255, 255, 255, 0.06);
    --text: #e8eaef;
    --text-muted: #8b8f9a;
    --accent: #00d4aa;
    --accent-dim: rgba(0, 212, 170, 0.15);
    --accent-glow: rgba(0, 212, 170, 0.35);
    --secondary: #7c5cff;
    --secondary-dim: rgba(124, 92, 255, 0.2);
    --danger: #ff4757;
    --success: #00d4aa;
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-logo: 'Codec Pro', var(--font-sans);
    --transition: 0.2s ease;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    overflow: visible;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.nav-cta {
    color: var(--accent) !important;
}

.nav-cta:hover {
    color: var(--accent) !important;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    color: var(--text);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1rem;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: float 12s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    left: -80px;
    animation: float 14s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 30%;
    right: 20%;
    animation: float 10s ease-in-out infinite 2s;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    margin-bottom: 20px;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 720px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 24px;
    line-height: 1.65;
}

.hero-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

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

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Focus grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.focus-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.focus-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.focus-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.focus-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.focus-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* Process timeline */
.process-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: -24px 0 40px 0;
    line-height: 1.65;
}

.process-timeline {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
}

.process-step {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(28px);
}

.process-step.process-step--visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step.process-step--visible .step-details li {
    opacity: 1;
    transform: translateX(0);
}

.process-connector {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.process-connector::after {
    content: '';
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent-dim));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-connector.process-connector--visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.process-connector:nth-of-type(2)::after { transition-delay: 0.12s; }
.process-connector:nth-of-type(4)::after { transition-delay: 0.24s; }
.process-connector:nth-of-type(6)::after { transition-delay: 0.36s; }

.step-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-details {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}

.step-details li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.step-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.step-details li:nth-child(1) { transition-delay: 0.1s; }
.step-details li:nth-child(2) { transition-delay: 0.18s; }
.step-details li:nth-child(3) { transition-delay: 0.26s; }

.step-meta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .process-timeline {
        flex-direction: column;
        gap: 0;
    }

    .process-connector {
        flex: 0 0 16px;
        width: 100%;
    }

    .process-connector::after {
        width: 2px;
        height: 16px;
        margin: 0 auto;
        transform: scaleY(0);
        transform-origin: center top;
    }

    .process-connector.process-connector--visible::after {
        transform: scaleY(1);
    }
}

@media (max-width: 768px) {
    .process-step {
        padding: 24px 20px;
    }
}

/* Portfolio (Backed by us) – hidden for future redesign; remove display:none to show */
.portfolio-section {
    display: none;
}

.portfolio-intro {
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
}

.portfolio-cta {
    margin-top: 24px;
}

/* CTA card */
.cta-section {
    padding: 80px 0 120px;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Pitch page ----- */
.pitch-hero {
    padding: calc(var(--header-h) + 80px) 0 60px;
}

.pitch-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.pitch-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pitch-form-section {
    padding: 0 0 100px;
}

/* ----- Privacy policy page ----- */
.page-hero {
    padding: calc(var(--header-h) + 80px) 0 48px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin-top: 8px;
}

/* ----- About page ----- */
.about-content {
    padding: 0 0 100px;
}

.about-intro {
    max-width: 720px;
    margin-bottom: 56px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition), transform var(--transition);
}

.about-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.about-focus {
    margin-bottom: 56px;
}

.about-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.about-section-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.65;
}

.about-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.about-list li strong {
    color: var(--text);
}

.about-cta {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.about-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.policy-content {
    padding: 0 0 100px;
}

.container-narrow {
    max-width: 720px;
}

.policy-body {
    color: var(--text);
}

.policy-body .policy-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.policy-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}

.policy-body p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-body ul {
    margin: 0 0 20px 24px;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-body ul li {
    margin-bottom: 8px;
}

.policy-body a {
    color: var(--accent);
    text-decoration: none;
}

.policy-body a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--success);
    color: var(--text);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger);
    color: var(--text);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Form */
.pitch-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b8f9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* File upload */
.file-upload-group {
    margin-bottom: 32px;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-upload-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition);
}

.file-upload:hover .file-upload-ui,
.file-upload:focus-within .file-upload-ui,
.file-upload-ui.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.file-icon {
    color: var(--text-muted);
}

.file-icon svg {
    width: 40px;
    height: 40px;
}

.file-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.file-name {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent);
}

.file-name[data-empty="true"] {
    color: var(--text-muted);
}

.form-actions {
    margin-top: 40px;
}

.form-privacy {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-privacy a {
    color: var(--accent);
    text-decoration: none;
}

.form-privacy a:hover {
    text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .logo-text {
    font-family: var(--font-logo);
    font-size: 1.1rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.footer-social-link:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Our Process page (dedicated)
   ============================================ */

.process-page-hero {
    padding: calc(var(--header-h) + 64px) 0 56px;
    text-align: center;
}

.process-page-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.process-page-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.process-page-timeline-wrap {
    position: relative;
    padding: 24px 0 80px;
}

/* Scroll progress line (vertical) – only inside timeline section so it never appears in footer */
.process-page-progress {
    position: absolute;
    left: max(24px, calc(50% - 360px - 48px));
    top: 0;
    bottom: 0;
    width: 2px;
    max-width: 2px;
    margin-left: -1px;
    background: var(--border);
    z-index: 0;
    pointer-events: none;
}

.process-page-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    transition: height 0.15s ease-out;
    will-change: height;
}

.process-page-progress[data-progress]::after {
    height: var(--progress-height, 0%);
}

.process-page-timeline-wrap .container-narrow {
    position: relative;
    z-index: 1;
}

.process-page-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-page-step {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-page-step.process-page-step--visible {
    opacity: 1;
    transform: translateY(0);
}

.process-page-step:last-child {
    margin-bottom: 0;
}

.process-page-step-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: border-color var(--transition), background var(--transition), box-shadow 0.3s ease;
}

.process-page-step-head:hover {
    border-color: rgba(0, 212, 170, 0.25);
    background: var(--bg-elevated);
}

.process-page-step-head[aria-expanded="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(0, 212, 170, 0.08);
}

.process-page-step-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    width: 48px;
    text-align: center;
}

.process-page-step-head-text {
    flex: 1;
    min-width: 0;
}

.process-page-step-head-text h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.process-page-step-teaser {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.process-page-step-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.process-page-step-toggle::before,
.process-page-step-toggle::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
    width: 12px;
    height: 2px;
    left: 50%;
    top: 50%;
    margin-left: -6px;
    margin-top: -1px;
}

.process-page-step-toggle::after {
    width: 2px;
    height: 12px;
    margin-left: -1px;
    margin-top: -6px;
}

.process-page-step-head[aria-expanded="true"] .process-page-step-toggle::after {
    opacity: 0;
}

.process-page-step-detail {
    overflow: hidden;
    padding: 0 32px 28px 32px;
    margin: -8px 28px 0 104px;
    border-left: 2px solid var(--accent-dim);
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.process-page-step-detail[hidden] {
    display: block !important;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    opacity: 0;
    border-left-color: transparent;
    visibility: hidden;
}

.process-page-step-detail:not([hidden]) {
    max-height: 800px;
    padding-top: 16px;
    opacity: 1;
    visibility: visible;
}

.process-page-step-detail p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.process-page-step-detail p:last-of-type {
    margin-bottom: 12px;
}

.process-page-step-detail a {
    color: var(--accent);
    text-decoration: none;
}

.process-page-step-detail a:hover {
    text-decoration: underline;
}

.process-page-step-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-page-step-detail li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.process-page-step-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.8;
}

.process-page-step-detail li strong {
    color: var(--text);
}

.process-page-cta {
    padding: 72px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 30%, var(--bg-card) 100%);
}

.process-page-cta-inner {
    max-width: 480px;
    margin: 0 auto;
}

.process-page-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.process-page-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.process-page-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .process-page-progress {
        left: 24px;
        margin-left: 0;
    }

    .process-page-step-head {
        padding: 20px 20px;
        gap: 16px;
    }

    .process-page-step-num {
        width: 36px;
        font-size: 0.9rem;
    }

    .process-page-step-detail {
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .process-page-step-head-text h2 {
        font-size: 1.2rem;
    }
}

/* ----- Mobile nav ----- */
@media (max-width: 767px) {
    .header-inner {
        width: 100%;
    }

    .main-nav {
        display: none !important;
    }

    .main-nav.open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        z-index: 1001;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: var(--bg-dark);
        padding: calc(var(--header-h) + 16px) 20px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .main-nav.open a {
        display: block;
        width: 100%;
        max-width: 300px;
        font-size: 1.125rem;
        font-weight: 500;
        padding: 16px 24px;
        text-align: center;
        border-radius: var(--radius);
        transition: background 0.2s ease, color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        color: var(--text);
        text-decoration: none;
        box-sizing: border-box;
    }

    .main-nav.open a:hover,
    .main-nav.open a:focus {
        background: var(--bg-elevated);
        color: var(--text);
    }

    .main-nav.open a.active {
        color: var(--accent);
    }

    .main-nav.open a.nav-cta {
        margin-top: 12px;
        padding: 18px 24px;
        background: var(--accent-dim);
        color: var(--accent);
        font-weight: 600;
    }

    .main-nav.open a.nav-cta:hover,
    .main-nav.open a.nav-cta:focus {
        background: rgba(0, 212, 170, 0.25);
        color: var(--accent);
    }

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

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
}
