/*
 * PrompTive — Light-Mode Redesign
 * Brand: teal→blue gradient (from logo), light cyan accent.
 */

/* ===== Page loader ===== */
.page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: #FAFBFC;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 24px;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.page-loader__logo {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1FB6D4, #7C3AED);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 50px -16px rgba(124,58,237,0.5);
    animation: loader-pop 1.4s cubic-bezier(0.22,1,0.36,1) infinite alternate;
}
.page-loader__logo img { width: 56px; height: 56px; }
.page-loader__ring {
    position: absolute;
    width: 110px; height: 110px;
    border: 3px solid transparent;
    border-top-color: #1FB6D4;
    border-right-color: #7C3AED;
    border-radius: 50%;
    animation: loader-spin 1.1s linear infinite;
}
.page-loader__label {
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4B6275;
    margin-top: 20px;
}
.page-loader__bar {
    width: 180px; height: 3px;
    background: rgba(124,58,237,0.12);
    border-radius: 100px; overflow: hidden; position: relative;
}
.page-loader__bar::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #1FB6D4, #7C3AED);
    transform-origin: left;
    animation: loader-bar 1.4s ease-in-out infinite;
}
@keyframes loader-pop  { from { transform: scale(0.94); } to { transform: scale(1.04); } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-bar  { 0% { transform: scaleX(0); } 50% { transform: scaleX(0.7); } 100% { transform: scaleX(1); transform-origin: right; } }

/* ===== Custom cursor ===== */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select, [role="button"], .tilt, .tool-card, .bento-card, .blog-card, .metric-item, .faq-item { cursor: none; }
    .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99998; mix-blend-mode: normal; }
    .cursor-dot {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1FB6D4, #7C3AED);
        transform: translate(-50%, -50%);
        transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
        box-shadow: 0 0 10px rgba(124,58,237,0.6);
    }
    .cursor-ring {
        width: 38px; height: 38px;
        border: 1.5px solid rgba(124,58,237,0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
        backdrop-filter: blur(2px);
    }
    .cursor-dot.is-hover  { width: 14px; height: 14px; }
    .cursor-ring.is-hover { width: 60px; height: 60px; border-color: rgba(31,182,212,0.8); border-width: 2px; }
    .cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }
}
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

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

:root {
    /* === BRAND (from logo gradient) === */
    --brand-cyan:    #1FB6D4;
    --brand-blue:    #7C3AED;
    --brand-light:   #7DD3FC;   /* inner P accent */
    --brand-deep:    #0E0820;
    --grad-brand:    linear-gradient(135deg, #1FB6D4 0%, #7C3AED 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(31,182,212,0.14), rgba(124,58,237,0.14));
    --grad-brand-glow: radial-gradient(circle, rgba(31,182,212,0.45), rgba(124,58,237,0.15) 60%, transparent 75%);

    /* === Surfaces === */
    --bg:           #F8FAFC;
    --bg-elev:      #FFFFFF;
    --surface:      #EEF4F7;
    --text:         #1A1033;
    --text-muted:   #4B6275;
    --text-dim:     #8AA0B2;
    --border:       #E2EAF0;
    --border-light: #EEF2F5;
    --white:        #FFFFFF;
    --success:      #16A34A;
    --success-bg:   #DCFCE7;
    --warn-bg:      #FEF3C7;
    --warn-fg:      #92400E;
    --info-bg:      #E0F2FE;
    --info-fg:      #075985;

    /* Shadows */
    --shadow-sm:  0 2px 6px -2px rgba(15,23,42,0.08);
    --shadow-md:  0 14px 32px -16px rgba(15,23,42,0.18);
    --shadow-lg:  0 32px 60px -24px rgba(31,182,212,0.35);
    --shadow-brand: 0 18px 40px -16px rgba(124,58,237,0.45);

    --section-pad: clamp(80px, 10vw, 140px);
    --container:   1200px;
    --gap:         24px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }

/* ===== Floating background orbs (whole page) ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orb-float 24s ease-in-out infinite;
}
.bg-orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: var(--brand-cyan); }
.bg-orb-2 { width: 460px; height: 460px; top: 30%; right: -160px; background: var(--brand-blue); animation-delay: -8s; opacity: 0.25; }
.bg-orb-3 { width: 380px; height: 380px; bottom: 10%; left: 20%; background: var(--brand-light); animation-delay: -14s; opacity: 0.22; }
@keyframes orb-float {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(40px,-30px) scale(1.06); }
    66%     { transform: translate(-30px,40px) scale(0.94); }
}

/* ===== Card ===== */
.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.35s ease;
}

/* 3D-tiltable card (JS sets --rx/--ry/--mx/--my on hover) */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
    will-change: transform;
}
.tilt::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%),
                rgba(31,182,212,0.18), transparent 60%);
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
}
.tilt:hover::after { opacity: 1; }
.tilt:hover { box-shadow: var(--shadow-lg); }

/* ===== Buttons ===== */
.btn-acid, .btn-ghost, .btn-dark-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 30px;
    font-family: inherit; font-size: 15px; font-weight: 600;
    letter-spacing: -0.02em; border-radius: 12px;
    cursor: pointer; user-select: none; border: none;
    transition: transform 0.2s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.25s ease,
                border-color 0.2s ease,
                filter 0.2s ease;
    position: relative; overflow: hidden;
}
.btn-acid {
    background: var(--grad-brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}
.btn-acid::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-acid:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 26px 50px -18px rgba(124,58,237,0.55); }
.btn-acid:hover::before { transform: translateX(100%); }
.btn-acid:active { transform: translateY(0); }

.btn-ghost {
    background: var(--bg-elev); color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    box-shadow: 0 14px 30px -16px rgba(124,58,237,0.4);
}

/* ===== Nav ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(248,250,252,0.78);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gap);
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn-acid { padding: 10px 22px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); position: relative; transition: background 0.2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: transform 0.3s ease; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active span::after  { transform: rotate(-45deg); top: 0; }

/* ===== Hero ===== */
.hero { padding-top: 160px; padding-bottom: 0; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
    50%     { opacity: 0.7; box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.hero h1 {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 800; line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 900px; margin: 0 auto 24px;
}
.hero h1 .accent-word {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.hero h1 .accent-word::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: 4px; height: 14px;
    background: var(--grad-brand);
    opacity: 0.18; border-radius: 6px; z-index: -1;
}

.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-muted);
    max-width: 640px; margin: 0 auto 40px;
    line-height: 1.65; font-weight: 400;
}
.hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 72px; flex-wrap: wrap;
}

/* === Hero Dashboard (animated) === */
.hero-dashboard {
    position: relative; max-width: 1080px;
    margin: 0 auto;
    perspective: 1400px;
}
.hero-dashboard::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none; z-index: 2;
}
.dashboard-frame {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow:
        inset 0 1px 0 var(--white),
        0 0 0 1px rgba(0,0,0,0.02),
        0 40px 80px -20px rgba(124,58,237,0.28),
        0 20px 40px -12px rgba(31,182,212,0.18);
    overflow: hidden;
    transform: rotateX(2deg);
    transform-origin: center top;
    animation: dash-float 8s ease-in-out infinite;
}
@keyframes dash-float {
    0%,100% { transform: rotateX(2deg) translateY(0); }
    50%     { transform: rotateX(2deg) translateY(-6px); }
}
.dashboard-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--surface), var(--bg-elev));
}
.dashboard-dots { display: flex; gap: 7px; }
.dashboard-dots span {
    width: 11px; height: 11px; border-radius: 50%; background: var(--border);
}
.dashboard-dots span:nth-child(1) { background: #FF5F57; }
.dashboard-dots span:nth-child(2) { background: #FFBD2E; }
.dashboard-dots span:nth-child(3) { background: #28C941; }
.dashboard-toolbar-tabs { display: flex; gap: 2px; }
.dashboard-toolbar-tabs span {
    padding: 5px 14px; font-size: 12px; font-weight: 500;
    color: var(--text-dim); border-radius: 6px; cursor: default;
}
.dashboard-toolbar-tabs span.active {
    background: var(--bg-elev); color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.dashboard-body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.dash-stat-card {
    background: linear-gradient(140deg, var(--bg-elev), var(--surface));
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    box-shadow: inset 0 1px 0 var(--white), 0 4px 12px -8px rgba(15,23,42,0.08);
    position: relative; overflow: hidden;
}
.dash-stat-card::before {
    content: ''; position: absolute;
    top: 0; right: 0; width: 80px; height: 80px;
    background: var(--grad-brand-glow);
    opacity: 0.5;
}
.dash-stat-label {
    font-size: 11px; font-weight: 600; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
    position: relative;
}
.dash-stat-value {
    font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-stat-change {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 6px; font-size: 12px; font-weight: 600;
    color: var(--success);
}
.dash-stat-change.down { color: #EF4444; }

.dashboard-table-area {
    grid-column: 1 / -1;
    background: var(--bg-elev);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}
.dash-table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.dash-table-header span { font-size: 14px; font-weight: 600; }
.dash-filter { font-size: 12px; font-weight: 500; color: var(--text-dim); padding: 4px 12px; border: 1px solid var(--border); border-radius: 6px; }
.dash-table { width: 100%; }
.dash-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 100px;
    padding: 12px 20px; align-items: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    transition: background 0.3s ease;
}
.dash-table-row:hover { background: var(--surface); }
.dash-table-row.head { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; background: rgba(0,0,0,0.015); }
.dash-table-row.head:hover { background: rgba(0,0,0,0.015); }
.dash-table-row:last-child { border-bottom: none; }
.dash-cell { font-variant-numeric: tabular-nums; }
.dash-cell-name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dash-cell-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.dash-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 600;
}
.dash-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 0 0 currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}
.dash-status.active  { background: var(--success-bg); color: #166534; }
.dash-status.pending { background: var(--warn-bg); color: var(--warn-fg); }
.dash-status.draft   { background: var(--surface); color: var(--text-muted); }

/* Live updating value flash */
.dash-flash {
    animation: dash-flash-anim 0.6s ease;
}
@keyframes dash-flash-anim {
    0%   { background: rgba(31,182,212,0.18); }
    100% { background: transparent; }
}

/* ===== Metrics ===== */
.metrics { padding: var(--section-pad) 0; position: relative; }
.metrics-label {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-dim);
    text-align: center; margin-bottom: 56px;
}
.metrics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.metric-item {
    text-align: center; padding: 56px 24px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.metric-item::before {
    content: ''; position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 220px; height: 220px;
    background: var(--grad-brand-glow);
    opacity: 0.0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.metric-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.metric-item:hover::before { opacity: 1; }
.metric-number {
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 900; letter-spacing: -0.05em;
    line-height: 1; font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-number .metric-unit { font-size: 0.45em; font-weight: 700; letter-spacing: -0.02em; }
.metric-desc { font-size: 15px; color: var(--text-muted); font-weight: 500; max-width: 260px; margin: 0 auto; position: relative; }

/* ===== Engine / Bento ===== */
.engine { padding: 0 0 clamp(48px, 6vw, 80px); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-dim);
    margin-bottom: 16px;
}
.section-tag::before {
    content: ''; width: 6px; height: 6px;
    background: var(--grad-brand); border-radius: 2px;
}
.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
    max-width: 760px; margin: 0 auto;
}
.section-title .grad {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
    font-size: 17px; color: var(--text-muted);
    max-width: 620px; margin: 18px auto 0;
}

.bento-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    perspective: 1200px;
}
.bento-card {
    padding: 36px 32px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    background: var(--bg-elev);
}
.bento-card::before {
    content: ''; position: absolute;
    top: -100px; right: -100px; width: 260px; height: 260px;
    background: var(--grad-brand-glow);
    opacity: 0; transition: opacity 0.5s ease;
    pointer-events: none;
}
.bento-card:hover::before { opacity: 0.6; }
.bento-card-icon {
    width: 56px; height: 56px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px -10px rgba(124,58,237,0.4);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.bento-card:hover .bento-card-icon {
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 14px 28px -10px rgba(124,58,237,0.55);
}
.bento-card-icon svg { width: 26px; height: 26px; stroke: url(#brand-grad); }
.bento-card-icon::after {
    content: ''; position: absolute; inset: -1px;
    border-radius: 14px;
    background: var(--grad-brand);
    z-index: -1; opacity: 0;
    transition: opacity 0.3s ease;
}
.bento-card:hover .bento-card-icon::after { opacity: 1; }
.bento-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; position: relative; }
.bento-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; flex: 1; position: relative; }
.bento-card-link {
    margin-top: 22px; font-size: 14px; font-weight: 600;
    color: var(--brand-blue);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s ease;
    position: relative; z-index: 1;
}
.bento-card:hover .bento-card-link { gap: 12px; }
.bento-card-visual {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
    min-height: 110px;
    position: relative;
}
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 78px; }
.mini-bar { flex: 1; background: var(--border); border-radius: 4px 4px 0 0; transition: height 0.4s cubic-bezier(0.22,1,0.36,1); }
.mini-bar.highlight { background: var(--grad-brand); }
.mini-pipeline { display: flex; align-items: center; gap: 10px; }
.mini-pipeline-node {
    flex: 1; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600;
}
.mini-pipeline-node:nth-child(1) { background: var(--grad-brand); color: var(--white); box-shadow: 0 6px 16px -8px rgba(124,58,237,0.55); }
.mini-pipeline-node:nth-child(3) { background: rgba(31,182,212,0.18); color: var(--brand-blue); }
.mini-pipeline-node:nth-child(5) { background: var(--border-light); color: var(--text-muted); }
.mini-pipeline-arrow { font-size: 14px; color: var(--text-dim); flex-shrink: 0; }
.mini-call {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border-light);
    margin-bottom: 8px; font-size: 12px;
}
.mini-call:last-child { margin-bottom: 0; }
.mini-call .badge {
    background: var(--success-bg); color: #166534;
    padding: 3px 9px; border-radius: 100px;
    font-size: 10px; font-weight: 700;
}
.mini-integ { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-integ span {
    padding: 6px 12px; background: var(--bg-elev);
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    transition: all 0.2s ease;
}
.mini-integ span:hover { color: var(--brand-blue); border-color: var(--brand-cyan); }

/* ===== Tools marquee ===== */
.tools { padding: clamp(48px, 6vw, 80px) 0; overflow: hidden; }
.tools-marquee-wrap {
    display: flex; flex-direction: column; gap: 16px;
    position: relative;
}
.tools-track {
    display: flex; gap: 16px; width: max-content;
    will-change: transform;
}
.tools-track--right { animation: tools-right 36s linear infinite; }
.tools-track--left  { animation: tools-left  36s linear infinite; }
@keyframes tools-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@keyframes tools-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.tools-marquee-wrap:hover .tools-track { animation-play-state: paused; }
.tool-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 26px;
    display: inline-flex; flex-direction: row; align-items: center; gap: 12px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.tool-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 30px -16px rgba(124,58,237,0.35);
    border-color: var(--brand-cyan);
}
.tool-card img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06)); }
.tool-card span { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ===== Testimonials ===== */
.testimonials { padding: clamp(48px, 6vw, 80px) 0; overflow: hidden; }
.testimonials-wrap { position: relative; }
.testimonials-wrap::before, .testimonials-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.testimonials-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.testimonials-wrap::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.testimonials-track {
    display: flex; gap: 20px; width: max-content;
    animation: marquee 50s linear infinite;
}
.testimonials:hover .testimonials-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testimonial-card {
    width: 360px; flex-shrink: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card__stars { color: #F59E0B; margin-bottom: 12px; font-size: 14px; }
.testimonial-card__text { font-size: 15px; color: var(--text); line-height: 1.65; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-brand);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(124,58,237,0.4);
}
.testimonial-card__name { font-size: 14px; font-weight: 700; }
.testimonial-card__role { font-size: 12px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { padding: var(--section-pad) 0; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-controls { max-width: 780px; margin: 0 auto 20px; display: flex; justify-content: flex-end; gap: 8px; }
.faq-ctrl-btn {
    padding: 7px 16px; font-family: inherit; font-size: 13px;
    font-weight: 600; letter-spacing: -0.01em;
    color: var(--text-muted); background: var(--bg-elev);
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.faq-ctrl-btn:hover { color: var(--brand-blue); border-color: var(--brand-cyan); }
.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.faq-item.open { border-color: var(--brand-cyan); box-shadow: 0 14px 30px -16px rgba(124,58,237,0.3); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; width: 100%; padding: 22px 26px;
    background: none; border: none; font-family: inherit;
    font-size: 16px; font-weight: 600; letter-spacing: -0.02em;
    color: var(--text); cursor: pointer; text-align: left; line-height: 1.4;
}
.faq-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.2s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--grad-brand);
    border-color: transparent;
}
.faq-item.open .faq-icon svg path { stroke: var(--white); }
.faq-icon svg { width: 14px; height: 14px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1); }
.faq-answer-inner { padding: 0 26px 22px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ===== Insights ===== */
.insights { padding: clamp(48px, 6vw, 80px) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.blog-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card__img { aspect-ratio: 16/10; background: var(--grad-brand); position: relative; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__cat {
    position: absolute; top: 14px; left: 14px;
    background: var(--bg-elev); color: var(--text);
    padding: 5px 12px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.blog-card__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 10px; }
.blog-card__excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.blog-card__link {
    font-size: 14px; font-weight: 600; color: var(--brand-blue);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s ease;
}
.blog-card:hover .blog-card__link { gap: 12px; }

/* ===== CTA banner ===== */
.cta-banner { padding: var(--section-pad) 0; }
.cta-banner-inner {
    background:
        radial-gradient(circle at 15% 25%, rgba(31,182,212,0.18), transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(124,58,237,0.22), transparent 55%),
        linear-gradient(135deg, #1A1033 0%, #0E0820 60%, #2A1860 100%);
    border-radius: 28px;
    padding: clamp(56px, 8vw, 100px) clamp(32px, 5vw, 80px);
    text-align: center; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-banner-inner::before {
    content: ''; position: absolute;
    top: -140px; right: -140px; width: 420px; height: 420px;
    background: var(--brand-cyan);
    border-radius: 50%; opacity: 0.32;
    filter: blur(90px); pointer-events: none;
    animation: orb-float 16s ease-in-out infinite;
}
.cta-banner-inner::after {
    content: ''; position: absolute;
    bottom: -100px; left: -100px; width: 340px; height: 340px;
    background: var(--brand-blue);
    border-radius: 50%; opacity: 0.32;
    filter: blur(80px); pointer-events: none;
    animation: orb-float 18s ease-in-out infinite reverse;
}
.cta-banner-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px; position: relative; z-index: 1;
}
.cta-banner-tag::before { content: ''; width: 6px; height: 6px; background: var(--brand-light); border-radius: 2px; }
.cta-banner h2 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.1; color: var(--white);
    max-width: 700px; margin: 0 auto 16px;
    position: relative; z-index: 1;
}
.cta-banner h2 .grad {
    background: linear-gradient(90deg, var(--brand-light), var(--brand-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 580px; margin: 0 auto 40px; line-height: 1.6; position: relative; z-index: 1; }
.cta-banner-actions { display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-banner .btn-acid { padding: 16px 40px; font-size: 16px; }
.btn-dark-ghost {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 16px 40px; font-size: 16px;
    backdrop-filter: blur(8px);
}
.btn-dark-ghost:hover { transform: translateY(-2px); color: var(--white); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

/* ===== Footer ===== */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--bg-elev); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 320px; margin-top: 16px; }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-dim); font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--brand-blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 700; font-size: 13px;
    transition: all 0.25s ease;
}
.footer-social a:hover { color: var(--white); border-color: transparent; background: var(--grad-brand); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(124,58,237,0.5); }

/* ===== Reveal ===== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
                transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .bento-grid    { grid-template-columns: 1fr; }
    .blog-grid     { grid-template-columns: 1fr 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .metrics-grid  { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        height: calc(100dvh - 72px);
        background: var(--bg);
        padding: 56px 24px; gap: 24px;
        overflow-y: auto; z-index: 999;
        border-top: 1px solid var(--border);
    }
    .nav-links.open a { font-size: 20px; font-weight: 600; color: var(--text); }
    .hero { padding-top: 120px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-acid, .hero-actions .btn-ghost { width: 100%; max-width: 320px; }
    .dashboard-body { grid-template-columns: 1fr; gap: 12px; }
    .dash-table-row { grid-template-columns: 2fr 1fr 1fr; }
    .dash-table-row .dash-cell:nth-child(4),
    .dash-table-row .dash-cell:nth-child(5) { display: none; }
    .blog-grid     { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .cta-banner-actions { flex-direction: column; }
    .cta-banner .btn-acid, .btn-dark-ghost { width: 100%; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .testimonials-track, .tools-track, .dashboard-frame, .bg-orb { animation: none !important; }
}

/* =========================================================
   INNER PAGE COMPONENTS (services, about, our-story, contact, post)
   ========================================================= */

/* ===== Page hero (dark) used on inner pages ===== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background:
        radial-gradient(circle at 20% 30%, rgba(31,182,212,0.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124,58,237,0.25), transparent 55%),
        linear-gradient(135deg, #0E0820 0%, #1A1033 50%, #2A1860 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute;
    top: -140px; right: -120px; width: 420px; height: 420px;
    background: var(--brand-cyan); border-radius: 50%;
    opacity: 0.35; filter: blur(90px);
    animation: orb-float 18s ease-in-out infinite;
}
.page-hero::after {
    content: ''; position: absolute;
    bottom: -120px; left: -100px; width: 380px; height: 380px;
    background: var(--brand-blue); border-radius: 50%;
    opacity: 0.32; filter: blur(80px);
    animation: orb-float 22s ease-in-out infinite reverse;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--brand-light);
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}
.page-hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--white);
    max-width: 860px; margin: 0 auto 20px;
}
.page-hero h1 .grad {
    background: linear-gradient(90deg, #7DD3FC, #1FB6D4, #7C3AED);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255,255,255,0.72);
    max-width: 640px; margin: 0 auto;
    line-height: 1.65;
}

/* ===== Section wrappers ===== */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--bg { background: var(--surface); }

/* ===== Service detail (alternating rows) ===== */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 60px 0;
}
.service-detail:nth-of-type(even) .service-detail__content { order: 2; }
.service-detail__content h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
    margin: 20px 0 16px;
}
.service-detail__content p {
    font-size: 16px; color: var(--text-muted);
    line-height: 1.75; margin-bottom: 14px;
}
.service-detail__icon-lg {
    width: 64px; height: 64px;
    background: var(--grad-brand);
    color: var(--white);
    border-radius: 18px;
    box-shadow: 0 14px 32px -10px rgba(124,58,237,0.5);
    display: inline-flex; align-items: center; justify-content: center;
}
.service-detail__benefits {
    margin: 24px 0 28px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.service-detail__benefit {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 14px; color: var(--text-muted);
    line-height: 1.5;
}
.service-detail__benefit::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--grad-brand);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    box-shadow: 0 4px 10px -4px rgba(124,58,237,0.5);
}
.service-detail__visual {
    position: relative;
    border-radius: 22px; overflow: hidden;
    aspect-ratio: 5/3;
    box-shadow: 0 30px 60px -24px rgba(124,58,237,0.4);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.service-detail__visual:hover { transform: translateY(-6px); }
.service-detail__visual img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__visual-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31,182,212,0.30), rgba(124,58,237,0.15));
    pointer-events: none;
}

/* ===== Process steps ===== */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative;
}
.process-grid::before {
    content: '';
    position: absolute; left: 6%; right: 6%; top: 30px; height: 2px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    opacity: 0.18; z-index: 0;
}
.process-step {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-step__num {
    width: 48px; height: 48px;
    background: var(--grad-brand); color: var(--white);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px -10px rgba(124,58,237,0.5);
}
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== About: value cards ===== */
.about-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 56px; align-items: center;
}
.about-content h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 14px 0 18px; }
.about-content p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.about-value {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-value h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.about-value p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.about-visual-wrap {
    position: relative;
    border-radius: 22px; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-visual-wrap img { width: 100%; height: 460px; object-fit: cover; }
.about-visual-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31,182,212,0.18), rgba(124,58,237,0.12));
}
.about-visual-badge {
    position: absolute; bottom: 22px; left: 22px;
    background: rgba(15,27,42,0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}
.about-visual-badge .val { font-size: 26px; font-weight: 800; background: linear-gradient(90deg,#7DD3FC,#1FB6D4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-visual-badge .lbl { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== Founder section ===== */
.founder-section { padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; background: var(--surface); }
.founder-grid {
    display: grid; grid-template-columns: 0.85fr 1.15fr;
    gap: 56px; align-items: center;
}
.founder-photo-wrap {
    position: relative;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(124,58,237,0.35);
    aspect-ratio: 4/5;
}
.founder-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.founder-photo-wrap:hover .founder-photo { transform: scale(1.04); }
.founder-badge {
    position: absolute; bottom: 22px; left: 22px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 14px 18px; border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.founder-badge__value { font-size: 22px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founder-badge__label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.founder-eyebrow {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--brand-blue); margin-bottom: 12px;
}
.founder-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px;
}
.founder-content h2 span { display: block; font-size: 0.5em; font-weight: 600; color: var(--text-muted); letter-spacing: -0.02em; margin-top: 6px; }
.founder-content p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.founder-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 26px; }
.founder-stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; }
.founder-stat__value { font-size: 22px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.founder-stat__label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 6px; }
.founder-social { display: flex; gap: 10px; margin-top: 26px; }
.founder-social a {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-elev); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 700; font-size: 14px;
    transition: all 0.25s ease;
}
.founder-social a:hover { background: var(--grad-brand); color: var(--white); border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-brand); }

/* ===== Story timeline ===== */
.story-intro-card {
    position: relative; overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 24/9;
    margin-bottom: 64px;
    box-shadow: var(--shadow-lg);
}
.story-intro-card img { width: 100%; height: 100%; object-fit: cover; }
.story-intro-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,16,51,0.65), rgba(124,58,237,0.4));
}
.story-intro-card__text {
    position: absolute; bottom: 36px; left: 36px; color: var(--white); max-width: 520px;
}
.story-intro-card__text h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.story-intro-card__text p { font-size: 15px; opacity: 0.85; }

.story-timeline {
    position: relative;
    max-width: 800px; margin: 0 auto;
    padding-left: 50px;
}
.story-timeline::before {
    content: '';
    position: absolute; left: 22px; top: 12px; bottom: 12px;
    width: 2px; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-blue));
    border-radius: 2px;
}
.story-milestone { position: relative; padding: 18px 0 38px; }
.story-milestone__dot {
    position: absolute; left: -50px; top: 14px;
    width: 46px; height: 46px;
    background: var(--grad-brand);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px -10px rgba(124,58,237,0.5);
    border: 4px solid var(--bg);
}
.story-milestone__year {
    font-size: 12px; font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.story-milestone h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.story-milestone p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ===== Contact ===== */
.contact-tabs {
    display: flex; gap: 0;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    max-width: 480px; margin: 0 auto 48px;
    background: var(--bg-elev);
    box-shadow: var(--shadow-sm);
}
.contact-tab {
    flex: 1; padding: 14px 20px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none;
    background: transparent; color: var(--text-muted);
    transition: all 0.25s ease;
}
.contact-tab.active {
    background: var(--grad-brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.cal-wrap {
    border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 8px;
}
#cal-inline { min-height: 720px; }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.contact-info > p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.contact-info__hero {
    border-radius: 18px; overflow: hidden;
    height: 200px; position: relative;
    box-shadow: var(--shadow-md);
}
.contact-info__hero img { width: 100%; height: 100%; object-fit: cover; }
.contact-info__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,16,51,0.55), rgba(124,58,237,0.25));
}
.contact-info__hero-label { position: absolute; bottom: 18px; left: 18px; color: var(--white); }
.contact-info__hero-label .t { font-weight: 700; font-size: 16px; }
.contact-info__hero-label .s { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.contact-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-item__icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--grad-brand);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -8px rgba(124,58,237,0.5);
}
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.contact-item a { color: var(--brand-blue); font-weight: 600; }

.contact-form-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.contact-form-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.form__msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.form__msg.ok  { display: block; background: var(--success-bg); color: #166534; border: 1px solid #86EFAC; }
.form__msg.err { display: block; background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form__group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form__group input,
.form__group select,
.form__group textarea {
    font-family: inherit; font-size: 14px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}
.form__group textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--bg-elev);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
.contact-checklist {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.contact-checklist__title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.contact-checklist ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.contact-checklist li { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); }
.contact-checklist li::before { content: '✓'; color: var(--brand-blue); font-weight: 800; flex-shrink: 0; }

/* ===== Quote strip ===== */
.quote-strip {
    background: var(--surface);
    padding: clamp(48px, 6vw, 80px) 0;
    text-align: center;
}
.quote-strip blockquote {
    max-width: 740px; margin: 0 auto;
    font-size: clamp(18px, 2vw, 22px);
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}
.quote-strip__stars { color: #F59E0B; font-size: 18px; margin-bottom: 14px; }
.quote-strip__author { font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.quote-strip__author strong { color: var(--text); }

/* ===== Post (blog detail) ===== */
.post-hero {
    position: relative;
    height: 460px; overflow: hidden;
    margin-top: 0;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(26,16,51,0.3), rgba(26,16,51,0.85));
}
.post-hero__text { position: absolute; bottom: 56px; left: 0; right: 0; z-index: 2; padding-top: 80px; }
.post-hero__text h1 { color: var(--white); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; max-width: 880px; }
.post-hero__meta { color: rgba(255,255,255,0.75); font-size: 14px; display: flex; gap: 18px; align-items: center; }
.post-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--grad-brand); color: var(--white);
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 5px 14px; border-radius: 100px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-brand);
}
.post-no-image {
    background: linear-gradient(135deg, #1A1033 0%, #2A1860 100%);
    color: var(--white);
    padding: 180px 0 80px; text-align: center;
    position: relative; overflow: hidden;
}
.post-no-image::before, .post-no-image::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.post-no-image::before { top: -100px; right: -100px; width: 380px; height: 380px; background: var(--brand-cyan); opacity: 0.3; }
.post-no-image::after  { bottom: -80px; left: -80px;  width: 320px; height: 320px; background: var(--brand-blue); opacity: 0.3; }
.post-no-image > .container { position: relative; z-index: 2; }
.post-no-image h1 { color: var(--white); max-width: 820px; margin: 0 auto 14px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.post-no-image .post-hero__meta { color: rgba(255,255,255,0.65); justify-content: center; }
.post-back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--brand-blue);
    margin: 28px 0 8px;
    transition: gap 0.2s ease;
}
.post-back-link:hover { gap: 12px; }
.post-body { max-width: 780px; margin: 0 auto; padding: 48px 28px 80px; }
.post-body h2 { font-size: 26px; margin: 2rem 0 1rem; font-weight: 800; letter-spacing: -0.02em; }
.post-body h3 { font-size: 20px; margin: 1.5rem 0 0.75rem; font-weight: 700; letter-spacing: -0.02em; }
.post-body p { font-size: 17px; line-height: 1.85; color: var(--text); margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { font-size: 17px; line-height: 1.85; color: var(--text); margin-bottom: 0.5rem; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
    border-left: 4px solid var(--brand-blue);
    padding: 18px 24px; margin: 2rem 0;
    background: var(--grad-brand-soft);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.post-body img { border-radius: 14px; margin: 2rem 0; box-shadow: var(--shadow-md); }

/* ===== Blog filter buttons (used in blog.php) ===== */
.blog-filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 48px;
}
.btn-chip {
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    border-radius: 100px; border: 1px solid var(--border);
    background: var(--bg-elev); color: var(--text-muted);
    transition: all 0.2s ease;
}
.btn-chip:hover { color: var(--brand-blue); border-color: var(--brand-cyan); }
.btn-chip.active { background: var(--grad-brand); color: var(--white); border-color: transparent; box-shadow: var(--shadow-brand); }

/* ===== Stats grid (about page) ===== */
.stats-row {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
    border: 1px solid var(--border);
    border-radius: 22px; overflow: hidden;
    background: var(--bg-elev);
    box-shadow: var(--shadow-md);
}
.stats-row__item {
    padding: 32px 20px; text-align: center;
    border-right: 1px solid var(--border);
}
.stats-row__item:last-child { border-right: none; }
.stats-row__value { font-size: 36px; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stats-row__label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 8px; }

/* ===== Responsive inner pages ===== */
@media (max-width: 1024px) {
    .service-detail        { grid-template-columns: 1fr; gap: 32px; }
    .service-detail:nth-of-type(even) .service-detail__content { order: 0; }
    .about-grid            { grid-template-columns: 1fr; gap: 36px; }
    .about-values          { grid-template-columns: 1fr 1fr; }
    .founder-grid          { grid-template-columns: 1fr; gap: 36px; max-width: 640px; margin: 0 auto; }
    .process-grid          { grid-template-columns: 1fr 1fr; gap: 16px; }
    .process-grid::before  { display: none; }
    .contact-grid          { grid-template-columns: 1fr; gap: 32px; }
    .stats-row             { grid-template-columns: 1fr 1fr; }
    .stats-row__item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
    .service-detail__benefits { grid-template-columns: 1fr; }
    .process-grid          { grid-template-columns: 1fr; }
    .about-values          { grid-template-columns: 1fr; }
    .founder-stats         { grid-template-columns: 1fr; }
    .stats-row             { grid-template-columns: 1fr; }
    .stats-row__item       { border-right: none; border-bottom: 1px solid var(--border); }
    .stats-row__item:last-child { border-bottom: none; }
    .form__row             { grid-template-columns: 1fr; }
    .story-timeline        { padding-left: 38px; }
    .story-milestone__dot  { left: -38px; width: 38px; height: 38px; }
    .story-timeline::before { left: 18px; }
}

/* =========================================================
   PRODUCTION POLISH: textures, glass, floating shapes,
   ultra-wide + ultra-small responsive
   ========================================================= */

/* Global subtle noise/grain texture overlay */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.10 0 0 0 0 0.16 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
    opacity: 0.35;
    mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }
.page-loader { z-index: 99999 !important; }

/* Section paper texture on alternate backgrounds */
.section--bg, .footer, .founder-section, .quote-strip {
    position: relative;
}
.section--bg::after, .founder-section::after, .quote-strip::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none; opacity: 0.5;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(31,182,212,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124,58,237,0.06), transparent 40%);
}
.section--bg > *, .founder-section > *, .quote-strip > * { position: relative; z-index: 1; }

/* ===== Glassmorphism layer (auto-applied to nav + cards) ===== */
.nav {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.nav::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31,182,212,0.04), rgba(124,58,237,0.04));
    pointer-events: none;
}

.card, .bento-card, .process-step, .about-value, .contact-form-card,
.faq-item, .testimonial-card, .blog-card, .metric-item, .tool-card,
.contact-item, .founder-stat, .cal-wrap {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.55));
}
.dashboard-frame {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* ===== Floating geometric shapes (whole-page decoration) ===== */
.float-shapes {
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none; overflow: hidden;
}
.float-shape { position: absolute; opacity: 0.55; will-change: transform; }
.float-shape--ring {
    width: 140px; height: 140px; border-radius: 50%;
    border: 2px dashed rgba(124,58,237,0.22);
    top: 14%; left: 6%;
    animation: drift-1 22s ease-in-out infinite, spin-slow 60s linear infinite;
}
.float-shape--ring.float-shape--small {
    width: 80px; height: 80px;
    top: auto; left: auto; bottom: 14%; right: 8%;
    border-color: rgba(31,182,212,0.28);
    animation: drift-2 26s ease-in-out infinite, spin-slow 80s linear infinite reverse;
}
.float-shape--triangle {
    width: 0; height: 0;
    border-left: 36px solid transparent;
    border-right: 36px solid transparent;
    border-bottom: 60px solid rgba(31,182,212,0.18);
    top: 55%; right: 10%;
    animation: drift-3 24s ease-in-out infinite, spin-slow 50s linear infinite;
}
.float-shape--square {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31,182,212,0.22), rgba(124,58,237,0.22));
    top: 70%; left: 12%;
    animation: drift-1 28s ease-in-out infinite reverse, spin-slow 45s linear infinite;
}
.float-shape--dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(125,211,252,0.6);
    top: 30%; right: 22%;
    animation: drift-2 18s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(125,211,252,0.7);
}
@keyframes drift-1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
@keyframes drift-2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,40px); } }
@keyframes drift-3 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(20px,-25px) rotate(15deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .float-shape--triangle, .float-shape--square { display: none; }
    .float-shape--ring { width: 100px; height: 100px; }
}

/* ===== Ultra-wide / 2K / 4K scaling ===== */
@media (min-width: 1600px) {
    :root { --container: 1360px; }
    .hero { padding-top: 200px; }
    body { font-size: 17px; }
}
@media (min-width: 2000px) {
    :root { --container: 1500px; --gap: 32px; }
    body { font-size: 18px; }
    .hero h1 { font-size: clamp(56px, 5vw, 96px); }
    .section-title { font-size: clamp(40px, 3.5vw, 64px); }
}
@media (min-width: 2560px) {
    :root { --container: 1800px; }
    body { font-size: 19px; }
    .hero h1 { font-size: 108px; }
    .section-title { font-size: 72px; }
    .metric-number { font-size: 112px; }
    .hero-dashboard { max-width: 1400px; }
    .bg-orb-1 { width: 720px; height: 720px; }
    .bg-orb-2 { width: 640px; height: 640px; }
}
@media (min-width: 3500px) {
    :root { --container: 2400px; }
    body { font-size: 22px; }
    .hero h1 { font-size: 140px; }
}

/* ===== Ultra-small (sub-380px / 7-inch portrait) ===== */
@media (max-width: 380px) {
    body { font-size: 15px; }
    :root { --gap: 16px; }
    .nav-inner { height: 60px; }
    .nav-logo img { height: 28px; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 15px; }
    .btn-acid, .btn-ghost { padding: 12px 22px; font-size: 14px; }
    .page-hero { padding: 140px 0 64px; }
    .page-hero h1 { font-size: 30px; }
    .metric-number { font-size: 48px; }
    .section-title { font-size: 26px; }
    .cta-banner-inner { padding: 48px 22px; }
    .cta-banner h2 { font-size: 26px; }
    .testimonial-card { width: 290px; }
    .container { padding: 0 16px; }
    .footer-grid { gap: 24px; }
    .blog-card__body { padding: 18px; }
    .contact-form-card { padding: 22px; }
    .dashboard-toolbar-tabs span { padding: 4px 9px; font-size: 11px; }
    .dashboard-body { padding: 12px; }
}

/* ===== Image rendering quality on hi-DPI ===== */
img { image-rendering: -webkit-optimize-contrast; }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img { image-rendering: auto; }
}

/* ===== Print ===== */
@media print {
    .page-loader, .cursor-dot, .cursor-ring, .float-shapes, .bg-orbs, body::before { display: none !important; }
    body { background: white; color: black; }
}


/* =========================================================
   V2 IMPROVEMENTS
   ========================================================= */

/* ===== Professional cursor ===== */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        width: 6px; height: 6px;
        background: var(--brand-blue);
        border: none;
        box-shadow:
            0 0 10px rgba(124,58,237,0.7),
            0 0 25px rgba(31,182,212,0.4);
    }
    .cursor-ring {
        width: 36px; height: 36px;
        border: none;
        background:
            conic-gradient(from 0deg,
                rgba(31,182,212,0.0) 0deg,
                rgba(31,182,212,0.85) 90deg,
                rgba(124,58,237,0.85) 180deg,
                rgba(125,211,252,0.65) 270deg,
                rgba(31,182,212,0.0) 360deg);
        border-radius: 50%;
        animation: cursor-spin 4s linear infinite;
        mask: radial-gradient(circle, transparent 14px, black 14px, black 18px, transparent 18px);
        -webkit-mask: radial-gradient(circle, transparent 14px, black 14px, black 18px, transparent 18px);
        backdrop-filter: none;
    }
    .cursor-dot.is-hover  { width: 10px; height: 10px; box-shadow: 0 0 22px rgba(124,58,237,0.9); }
    .cursor-ring.is-hover {
        width: 60px; height: 60px;
        mask: radial-gradient(circle, transparent 26px, black 26px, black 30px, transparent 30px);
        -webkit-mask: radial-gradient(circle, transparent 26px, black 26px, black 30px, transparent 30px);
    }
}
@keyframes cursor-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.cursor-trail {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px;
    border-radius: 50%;
    pointer-events: none; z-index: 99997;
    background: var(--brand-cyan);
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* ===== Hero typewriter ===== */
.hero h1 .typewriter {
    /* Own centered line so the reserved width is invisible whitespace
       around the phrase instead of an empty box at the right edge. */
    display: block;
    width: fit-content;
    margin: 0 auto;
    /* Reserve width of the longest phrase ("repetitive work." = 16ch)
       so the H1 doesn't reflow as phrases cycle. */
    min-width: 16ch;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    white-space: nowrap;
    text-align: center;
}
.hero h1 .typewriter::after {
    content: '';
    display: inline-block;
    width: 4px; height: 0.9em;
    background: var(--brand-blue);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: tw-blink 1s steps(1) infinite;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(124,58,237,0.6);
}
@keyframes tw-blink { 50% { opacity: 0; } }

/* ===== Cards: deeper shadow ===== */
.bento-card, .process-step, .about-value, .contact-form-card,
.faq-item, .blog-card, .metric-item, .tool-card, .founder-stat {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,250,252,0.78));
    box-shadow:
        0 1px 2px rgba(15,23,42,0.04),
        0 8px 24px -12px rgba(15,23,42,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}
.bento-card:hover, .blog-card:hover, .metric-item:hover {
    box-shadow:
        0 12px 30px -10px rgba(31,182,212,0.25),
        0 30px 60px -20px rgba(124,58,237,0.35),
        inset 0 1px 0 rgba(255,255,255,0.95);
}

/* ===== Testimonial: stars top, text middle, avatar bottom centered ===== */
.testimonial-card {
    width: 340px; flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 30px 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,245,247,0.88));
}
.testimonial-card__stars {
    color: #F59E0B; font-size: 16px; letter-spacing: 2px; margin: 0;
    order: 1;
}
.testimonial-card__text {
    font-size: 14.5px; color: var(--text);
    line-height: 1.65; margin: 0;
    font-style: italic;
    position: relative;
    padding: 0 10px;
    order: 2;
    flex: 1;
}
.testimonial-card__text::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1;
    color: var(--brand-cyan);
    position: absolute; top: -22px; left: -6px;
    opacity: 0.4;
}
.testimonial-card__author {
    order: 3;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    width: 100%;
}
.testimonial-card__avatar,
.testimonial-card__author img {
    width: 56px !important; height: 56px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow:
        0 0 0 2px var(--brand-cyan),
        0 8px 20px -8px rgba(124,58,237,0.45);
    flex-shrink: 0;
    margin: 0;
}
.testimonial-card__avatar {
    background: var(--grad-brand);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.testimonial-card__name { font-size: 14px; font-weight: 700; margin-top: 6px; }
.testimonial-card__role { font-size: 12px; color: var(--text-muted); }

/* ===== Services bento — DARK ===== */
.engine, #services.engine {
    background:
        radial-gradient(circle at 20% 20%, rgba(31,182,212,0.16), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124,58,237,0.20), transparent 50%),
        linear-gradient(180deg, #1A1033 0%, #0E0820 50%, #2A1860 100%);
    color: var(--white);
    padding: clamp(64px, 8vw, 110px) 0;
    position: relative;
    overflow: hidden;
}
.engine::before, .engine::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.engine::before {
    top: -100px; right: -100px;
    width: 380px; height: 380px;
    background: var(--brand-cyan); opacity: 0.20;
    animation: orb-float 18s ease-in-out infinite;
}
.engine::after {
    bottom: -100px; left: -100px;
    width: 320px; height: 320px;
    background: var(--brand-blue); opacity: 0.24;
    animation: orb-float 22s ease-in-out infinite reverse;
}
.engine > * { position: relative; z-index: 1; }
.engine .section-tag { color: rgba(255,255,255,0.55); }
.engine .section-title { color: var(--white); }
.engine .section-sub { color: rgba(255,255,255,0.7); }

.engine .bento-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.engine .bento-card h3 { color: var(--white); }
.engine .bento-card p { color: rgba(255,255,255,0.75); }
.engine .bento-card .bento-card-icon {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 0 30px -10px var(--brand-cyan);
}
.engine .bento-card-visual {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.engine .mini-call {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
}
.engine .mini-integ span {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.78);
}
.engine .bento-card:hover {
    background: linear-gradient(135deg, rgba(31,182,212,0.14), rgba(124,58,237,0.10));
    border-color: rgba(125,211,252,0.35);
    box-shadow: 0 30px 60px -20px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.engine .bento-card-link { color: var(--brand-light); }

/* ===== Process steps — animated arrows ===== */
.process-grid::before { display: none; }
.process-step { position: relative; overflow: visible; }
.process-step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -28px; top: 48px;
    color: var(--brand-blue);
    font-size: 26px; font-weight: 800;
    text-shadow: 0 0 14px rgba(124,58,237,0.5);
    z-index: 2;
    animation: arrow-pulse 1.6s ease-in-out infinite;
}
@keyframes arrow-pulse {
    0%,100% { opacity: 0.4; transform: translateX(-3px); }
    50%     { opacity: 1; transform: translateX(3px); }
}
@media (max-width: 1024px) {
    .process-step:not(:last-child)::after { display: none; }
}

/* ===== Background — more / faster ===== */
.float-shape--ring      { animation-duration: 14s, 50s; }
.float-shape--triangle  { animation-duration: 16s, 40s; }
.float-shape--square    { animation-duration: 18s, 35s; }
.float-shape--dot       { animation-duration: 11s; }

.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,182,212,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask: radial-gradient(ellipse at center, black 30%, transparent 80%);
    animation: bg-grid-pan 40s linear infinite;
}
@keyframes bg-grid-pan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 60px 60px, 60px 60px; }
}
@media (prefers-reduced-motion: reduce) { .bg-grid { animation: none; } }

.bg-aurora {
    position: fixed;
    top: -160px; left: 50%; transform: translateX(-50%);
    width: 1500px; max-width: 150vw;
    height: 360px; z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(125,211,252,0.35), transparent 60%),
        radial-gradient(ellipse at 60% 50%, rgba(31,182,212,0.30), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(124,58,237,0.32), transparent 60%);
    filter: blur(50px);
    animation: aurora-pan 14s ease-in-out infinite alternate;
    opacity: 0.6;
}
@keyframes aurora-pan {
    0%   { transform: translateX(-50%) skewX(-3deg); }
    100% { transform: translateX(-48%) skewX(3deg); }
}

.bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-particles span {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--brand-cyan);
    opacity: 0;
    animation: particle-rise 14s linear infinite;
    box-shadow: 0 0 10px var(--brand-cyan);
}
.bg-particles span:nth-child(odd)  { background: var(--brand-blue); box-shadow: 0 0 10px var(--brand-blue); }
.bg-particles span:nth-child(1)    { left: 10%; animation-delay: 0s;  }
.bg-particles span:nth-child(2)    { left: 20%; animation-delay: 2s;  }
.bg-particles span:nth-child(3)    { left: 35%; animation-delay: 4s;  }
.bg-particles span:nth-child(4)    { left: 45%; animation-delay: 6s;  }
.bg-particles span:nth-child(5)    { left: 60%; animation-delay: 8s;  }
.bg-particles span:nth-child(6)    { left: 72%; animation-delay: 1s;  }
.bg-particles span:nth-child(7)    { left: 85%; animation-delay: 3s;  }
.bg-particles span:nth-child(8)    { left: 92%; animation-delay: 5s;  }
.bg-particles span:nth-child(9)    { left: 5%;  animation-delay: 7s;  }
.bg-particles span:nth-child(10)   { left: 28%; animation-delay: 9s;  }
.bg-particles span:nth-child(11)   { left: 52%; animation-delay: 11s; }
.bg-particles span:nth-child(12)   { left: 78%; animation-delay: 13s; }
@keyframes particle-rise {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.7; }
    50%  { transform: translateY(50vh) translateX(20px) scale(1); }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-10vh) translateX(-10px) scale(0.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bg-particles { display: none; } }

/* ===== Video placeholder ===== */
.video-section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.video-frame {
    position: relative;
    max-width: 1000px; margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 24px; overflow: hidden;
    background: linear-gradient(135deg, #1A1033, #2A1860);
    box-shadow:
        0 30px 80px -20px rgba(31,182,212,0.35),
        0 50px 100px -30px rgba(124,58,237,0.45);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.video-frame:hover { transform: translateY(-6px) scale(1.01); }
.video-frame::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(31,182,212,0.30), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(124,58,237,0.35), transparent 60%);
    animation: video-bg 8s ease-in-out infinite alternate;
}
@keyframes video-bg {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.1) rotate(2deg); }
}
.video-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.025) 18px 36px);
}
.video-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 96px; height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    animation: pulse-glow 2.5s ease-in-out infinite;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--white); }
.video-play-btn svg { width: 32px; height: 32px; margin-left: 4px; color: var(--brand-blue); }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5), 0 0 0 0 rgba(31,182,212,0.7); }
    50%      { box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5), 0 0 0 24px rgba(31,182,212,0); }
}
.video-label {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: var(--white); font-weight: 600; font-size: 13px;
    letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0.85; z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.video-coming-soon {
    position: absolute; top: 22px; right: 22px; z-index: 3;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 100px;
}

/* ===== Service detail fix ===== */
.service-detail { align-items: center; gap: 80px; }
.service-detail__visual {
    aspect-ratio: 4/3;
    max-width: 100%;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(31,182,212,0.06), rgba(124,58,237,0.04));
}
.service-detail__visual img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.service-detail__content { max-width: 540px; }

/* ===== Value cards ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
    padding: 32px 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241,245,247,0.88));
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px -12px rgba(15,23,42,0.12);
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -16px rgba(124,58,237,0.35);
}
.value-card__icon {
    width: 60px; height: 60px;
    background: var(--grad-brand);
    border-radius: 18px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(124,58,237,0.5);
}
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Hide old loader bits */
.page-loader__logo, .page-loader__ring, .page-loader__bar { display: none; }

/* =========================================================
   V3 — TRAILER CURSOR (replaces dot+ring)
   ========================================================= */

/* Disable the old cursor markup if anything still injects it */
.cursor-dot, .cursor-ring, .cursor-trail { display: none !important; }

/* Trailer cursor — only on devices with a fine pointer */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select, [role="button"],
    .tilt, .tool-card, .bento-card, .blog-card, .metric-item,
    .faq-question, .contact-tab, .interactable, .video-frame { cursor: none; }

    #trailer {
        position: fixed;
        left: 0; top: 0;
        width: 18px; height: 18px;
        background: #fff;
        border-radius: 50%;
        z-index: 99998;
        pointer-events: none;
        opacity: 0;
        transition: opacity 400ms ease, background 250ms ease, box-shadow 250ms ease;
        display: grid;
        place-items: center;
        box-shadow:
            0 0 0 1px rgba(255,255,255,0.4),
            0 0 18px rgba(31,182,212,0.6),
            0 0 40px rgba(124,58,237,0.35);
        mix-blend-mode: normal;
    }
    body:hover > #trailer { opacity: 1; }
    #trailer.is-hidden { opacity: 0; }

    /* Icon inside trailer */
    #trailer-icon {
        font-size: 7px;
        line-height: 0;
        color: #1A1033;
        opacity: 0;
        transition: opacity 300ms ease;
        display: flex; align-items: center; justify-content: center;
        width: 8px; height: 8px;
    }
    #trailer-icon svg {
        width: 8px; height: 8px;
        display: block;
    }
    /* When hovering an interactive element, show icon + tint trailer to brand color */
    #trailer:not([data-type=""]) > #trailer-icon { opacity: 1; }
    #trailer[data-type="link"]   { background: #fff;       box-shadow: 0 0 0 1px rgba(31,182,212,0.6), 0 0 30px rgba(31,182,212,0.7); }
    #trailer[data-type="video"]  { background: #fff;       box-shadow: 0 0 0 1px rgba(239,68,68,0.6),  0 0 30px rgba(239,68,68,0.7); }
    #trailer[data-type="button"] { background: #fff;       box-shadow: 0 0 0 1px rgba(124,58,237,0.6),  0 0 30px rgba(124,58,237,0.7); }

    /* Color the icon per type */
    #trailer[data-type="link"]   #trailer-icon { color: #1FB6D4; }
    #trailer[data-type="video"]  #trailer-icon { color: #EF4444; }
    #trailer[data-type="button"] #trailer-icon { color: #7C3AED; }

    /* On dark sections (services bento, CTA banner, footer) the trailer
       should stay visible — keep the bright background so it pops. */
    .engine #trailer,
    .cta-banner #trailer { /* no-op selectors — fixed-position #trailer never sits inside these,
                              but keeping the variable here in case nested portals appear later */ }
}

@media (hover: none), (pointer: coarse) {
    #trailer { display: none !important; }
    body, a, button, input, textarea, select, [role="button"] { cursor: auto; }
}
