/* =========================================
   NOLTAK DIGITAL SOLUTIONS - styles
   ========================================= */

:root {
    --bg: #07080F;
    --bg-soft: #0C111E;
    --bg-card: #11172A;
    --bg-card-hover: #151C33;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #F4F6FB;
    --text-muted: #9099B0;
    --text-dim: #6B7388;
    --brand: #2563EB;
    --brand-bright: #3B82F6;
    --brand-soft: rgba(37, 99, 235, 0.18);
    --brand-glow: rgba(59, 130, 246, 0.45);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 80px -20px rgba(37, 99, 235, 0.45);
    --container: 1240px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
ul, ol { list-style: none; }

/* =========================================
   Custom scrollbar
   ========================================= */

html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--bg);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    border-radius: 999px;
    border: 2px solid var(--bg);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60A5FA, var(--brand-bright));
    background-clip: padding-box;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-corner { background: var(--bg); }

/* =========================================
   Scroll progress bar
   ========================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #60A5FA 0%, var(--brand-bright) 50%, var(--brand) 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 0 24px rgba(37, 99, 235, 0.35);
    z-index: 200;
    will-change: transform;
    transition: transform 0.08s linear;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
}

/* =========================================
   Back to top button
   ========================================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px -8px rgba(37, 99, 235, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 14px 36px -8px rgba(37, 99, 235, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.back-to-top:active { transform: translateY(-1px) scale(0.98); }

@media (max-width: 768px) {
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: opacity 0.2s, visibility 0s; transform: none !important; }
}

/* =========================================
   Backgrounds
   ========================================= */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 30%, rgba(37, 99, 235, 0.10), transparent 50%),
        radial-gradient(ellipse 60% 50% at 0% 70%, rgba(59, 130, 246, 0.08), transparent 50%),
        var(--bg);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
    pointer-events: none;
}

/* =========================================
   Layout
   ========================================= */

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

.section {
    padding: 120px 0;
    position: relative;
}

.section-tight { padding: 80px 0; }
.section-contact { padding: 100px 0 140px; }

.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    max-width: 100%;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-bright);
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 50%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.btn-sm { padding: 13px 22px; font-size: 0.95rem; }
.btn-block { width: 100%; padding: 16px 24px; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    color: white;
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.8), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-bright);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.25s var(--ease);
}

.link-arrow:hover { gap: 12px; }

/* =========================================
   Header
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 36px 0;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(0);
}

.site-header.scrolled {
    background: rgba(7, 8, 15, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.brand img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        width 0.3s var(--ease),
        height 0.3s var(--ease),
        border-radius 0.3s var(--ease);
}

.site-header.scrolled .brand img {
    width: 48px;
    height: 48px;
    border-radius: 11px;
}

.brand-text {
    font-size: 2rem;
    letter-spacing: -0.03em;
    transition: font-size 0.3s var(--ease);
}

.site-header.scrolled .brand-text {
    font-size: 1.35rem;
}

.primary-nav {
    display: flex;
    gap: 40px;
}

.primary-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}

.primary-nav a:hover { color: var(--text); }

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-bright);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
    transform-origin: left;
}

.primary-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   Hero
   ========================================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    padding: 180px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 920px;
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--brand-soft);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #93C5FD;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-bright);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--brand-bright);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0;
    text-wrap: balance;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.55;
    margin: 0;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

/* Social proof badge */
.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-top: 8px;
}

.hero-trust-avatars {
    display: inline-flex;
    flex-shrink: 0;
}

.hero-trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-trust-avatar + .hero-trust-avatar {
    margin-left: -10px;
}

.hero-trust-text {
    text-align: left;
    line-height: 1.2;
}

.hero-trust-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
}

.hero-trust-text span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Key metrics strip */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 720px;
    margin-top: 28px;
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.07), rgba(37, 99, 235, 0.01));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.hero-metrics::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at center, rgba(37, 99, 235, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-metric {
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 8px;
}

.hero-metric:last-child { border-right: 0; }

.hero-metric strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    font-weight: 700;
    background: linear-gradient(135deg, #93C5FD 0%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-metric strong span { font-size: 0.55em; }

.hero-metric > span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Atmospheric blurred orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.hero-orb-1 {
    width: 360px;
    height: 360px;
    background: rgba(37, 99, 235, 0.35);
    top: 10%;
    right: 5%;
    animation: float 9s ease-in-out infinite;
}

.hero-orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(59, 130, 246, 0.25);
    bottom: 12%;
    left: 6%;
    animation: float 11s ease-in-out infinite reverse;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-orb-1, .hero-orb-2 { animation: none; }
}

/* Scroll hint anchored to bottom of hero */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 3;
}

.hero-scroll:hover {
    color: var(--text);
    transform: translate(-50%, -3px);
}

.hero-scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--border-strong);
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    padding-top: 6px;
    transition: border-color 0.25s var(--ease);
}

.hero-scroll:hover .hero-scroll-mouse {
    border-color: var(--brand-bright);
}

.hero-scroll-wheel {
    width: 3px;
    height: 7px;
    border-radius: 99px;
    background: var(--brand-bright);
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 20%   { transform: translateY(0); opacity: 1; }
    80%, 100% { transform: translateY(10px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-wheel { animation: none; }
}

@media (max-width: 1024px) {
    .hero-scroll { display: none; }
}

/* =========================================
   Services
   ========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.25);
    background: var(--bg-card-hover);
}

.service-card:hover::before { transform: translateX(0); }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

/* =========================================
   Projects
   ========================================= */

/* =========================================
   Portfolio — interactive browser card
   ========================================= */

/* Friendly hint above the browser card */
.pf-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #93C5FD;
    margin: 0 auto 22px;
    width: max-content;
    max-width: 100%;
    position: relative;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), margin 0.4s var(--ease), padding 0.4s var(--ease), max-height 0.4s var(--ease);
    overflow: hidden;
    max-height: 50px;
    z-index: 2;
}

.pf-hint-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), transparent 70%);
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
    animation: hint-glow 3s ease-in-out infinite;
}

.pf-hint > span:not(.pf-hint-glow) {
    position: relative;
    z-index: 1;
}

.pf-hint-arrow {
    animation: hint-bounce 1.4s ease-in-out infinite;
    color: var(--brand-bright);
    flex-shrink: 0;
}

.pf-hint.is-dismissed {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    pointer-events: none;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

@keyframes hint-glow {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-hint-arrow, .pf-hint-glow { animation: none; }
}

.pf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 40px 100px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 0 80px -30px rgba(37, 99, 235, 0.35);
}

/* Tab strip */
.pf-tabs {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 12px 14px 0;
    background: linear-gradient(180deg, #0B0F1B 0%, #0E1322 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}

.pf-tabs::-webkit-scrollbar { display: none; }

.pf-traffic {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px 0;
    margin-right: 6px;
    flex-shrink: 0;
}

.pf-traffic span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.pf-traffic span:nth-child(1) { background: #FF5F57; }
.pf-traffic span:nth-child(2) { background: #FEBC2E; }
.pf-traffic span:nth-child(3) { background: #28C840; }

.pf-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 11px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    margin-bottom: -1px;
    max-width: 240px;
    flex-shrink: 0;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.pf-tab img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: inherit;
}

.pf-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.pf-tab.is-active {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pf-tab:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: -2px;
}

/* Attention pulse on inactive tabs — stops after first interaction */
.pf-card:not(.is-touched) .pf-tab:not(.is-active) {
    animation: tab-attention 2.6s ease-in-out infinite;
    position: relative;
}

.pf-card:not(.is-touched) .pf-tab:not(.is-active):nth-of-type(2) { animation-delay: 0.4s; }
.pf-card:not(.is-touched) .pf-tab:not(.is-active):nth-of-type(3) { animation-delay: 0.8s; }
.pf-card:not(.is-touched) .pf-tab:not(.is-active):nth-of-type(4) { animation-delay: 1.2s; }

.pf-card:not(.is-touched) .pf-tab:not(.is-active)::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-bright);
    box-shadow: 0 0 8px var(--brand-bright);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes tab-attention {
    0%, 100% { background: transparent; color: var(--text-muted); }
    50%      { background: rgba(59, 130, 246, 0.07); color: #BFDBFE; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-card:not(.is-touched) .pf-tab:not(.is-active) { animation: none; }
    .pf-card:not(.is-touched) .pf-tab:not(.is-active)::after { animation: none; }
}

.pf-tabs-fill { flex: 1; min-width: 12px; }

/* URL bar */
.pf-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-bar-actions,
.pf-bar-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.pf-bar-tools svg,
.pf-nav-spacer svg { opacity: 0.45; }
.pf-nav-spacer { display: inline-flex; padding: 6px; }

.pf-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.pf-nav-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-bright);
}

.pf-nav-btn:active { transform: scale(0.92); }

.pf-nav-btn:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 2px;
}

.pf-bar-url {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 60%;
    margin: 0 auto;
}

.pf-bar-url svg { color: #34D399; flex-shrink: 0; }

.pf-bar-domain {
    transition: opacity 0.25s var(--ease);
}

.pf-bar.is-loading .pf-bar-domain {
    opacity: 0.4;
}

/* Content area */
.pf-content {
    position: relative;
    padding: 40px 40px 36px;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(37, 99, 235, 0.12), transparent 70%),
        var(--bg-card);
}

.pf-page {
    animation: pfFadeIn 0.4s var(--ease);
}

.pf-page[hidden] { display: none; }

@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pf-preview {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
}

.pf-desktop {
    flex: 1;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    display: block;
}

.pf-phone {
    flex-shrink: 0;
    width: 18%;
    max-width: 140px;
    padding: 5px;
    background: linear-gradient(180deg, #2A3045 0%, #131826 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 50px -10px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    align-self: flex-end;
}

.pf-phone img {
    width: 100%;
    display: block;
    border-radius: 13px;
    background: #000;
}

.pf-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-meta > div { min-width: 0; max-width: 580px; }

.pf-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #93C5FD;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pf-meta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pf-meta p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.pf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), gap 0.25s var(--ease);
}

.pf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    gap: 12px;
}

.pf-link svg { transition: transform 0.25s var(--ease); }
.pf-link:hover svg { transform: translate(2px, -2px); }

/* =========================================
   About
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-copy h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.about-copy > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 560px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.about-features h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-features p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease);
}

.about-card:hover { transform: translateY(-4px); }
.about-card-shift { margin-top: 40px; }

.about-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-strong);
}

.avatar-1 { background-image: linear-gradient(135deg, #1E3A8A, #2563EB), url('https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=200&q=70'); background-blend-mode: multiply; }
.avatar-2 { background-image: linear-gradient(135deg, #1E3A8A, #2563EB), url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?auto=format&fit=crop&w=200&q=70'); background-blend-mode: multiply; }
.avatar-3 { background-image: linear-gradient(135deg, #1E3A8A, #2563EB), url('https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=200&q=70'); background-blend-mode: multiply; }

.team-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.5);
}

.about-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-card span {
    font-size: 0.82rem;
    color: var(--brand-bright);
    font-weight: 500;
}

.about-card p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* =========================================
   Process & Stats
   ========================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.process-step {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: all 0.3s var(--ease);
}

.process-step:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
}

.process-number {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-bright);
    margin-bottom: 24px;
    padding: 6px 12px;
    background: var(--brand-soft);
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.process-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 40px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.stats-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12), transparent 70%);
    pointer-events: none;
}

.stat {
    text-align: center;
    position: relative;
}

.stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #93C5FD 0%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat strong span { font-size: 0.7em; }

.stat p {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* =========================================
   Testimonials
   ========================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

.testimonial {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: all 0.3s var(--ease);
}

.testimonial:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
}

.quote-mark {
    font-family: 'Space Grotesk', serif;
    font-size: 4rem;
    line-height: 0.6;
    color: var(--brand-bright);
    opacity: 0.4;
    margin-bottom: 12px;
    height: 30px;
}

.testimonial blockquote {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid var(--border-strong);
}

.testimonial figcaption strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial figcaption span {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* =========================================
   Contact
   ========================================= */

.section-contact {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37, 99, 235, 0.15), transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.contact-copy h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.contact-copy > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info svg {
    color: var(--brand-bright);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

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

.contact-form label {
    display: block;
    margin-bottom: 18px;
}

.contact-form span {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-bright);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239099B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form select option { background: var(--bg-card); color: var(--text); }

.form-fineprint {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}

.form-flash {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid;
}

.form-flash-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86EFAC;
}

.form-flash-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(7, 8, 15, 0.6);
    padding-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 360px;
    margin: 18px 0 24px;
    line-height: 1.6;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.socials a:hover {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-cols h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-cols a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-cols a:hover { color: var(--text); }

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

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================
   Reveal animations
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-orb-1, .hero-orb-2 { animation: none; }
    .eyebrow-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .hero { padding: 160px 0 80px; }
    .hero-inner { gap: 24px; }
    .hero-metrics { padding: 24px 18px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-content { padding: 32px 28px 28px; }
    .pf-preview { gap: 20px; }
    .pf-bar-url { max-width: 70%; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-tight { padding: 60px 0; }
    .hero { padding: 130px 0 80px; }
    .hero-inner { gap: 22px; }
    .brand img { width: 56px; height: 56px; border-radius: 12px; }
    .brand-text { font-size: 1.35rem; }

    .primary-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }

    .primary-nav.is-open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        background: rgba(11, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 24px;
        gap: 16px;
        z-index: 99;
    }

    .primary-nav.is-open a {
        font-size: 1.05rem;
        padding: 8px 0;
    }

    .hero-trust { flex-direction: row; padding: 8px 16px 8px 12px; }
    .hero-trust-text strong { font-size: 0.82rem; }
    .hero-trust-text span { font-size: 0.72rem; }
    .hero-metrics { padding: 22px 14px; gap: 4px; }
    .hero-metric { padding: 0 4px; }
    .hero-metric > span { font-size: 0.72rem; }
    .hero-orb-1 { width: 240px; height: 240px; }
    .hero-orb-2 { width: 200px; height: 200px; }

    .btn-lg { padding: 14px 22px; font-size: 0.95rem; }

    .section-head-row { flex-direction: column; align-items: flex-start; }

    .services-grid { grid-template-columns: 1fr; }
    .pf-tabs { padding: 10px 10px 0; }
    .pf-traffic { padding: 0 8px 10px 0; margin-right: 2px; }
    .pf-tab { padding: 8px 12px 10px; font-size: 0.78rem; max-width: 160px; }
    .pf-bar { padding: 9px 12px; gap: 8px; }
    .pf-bar-actions, .pf-bar-tools { gap: 8px; }
    .pf-bar-url { padding: 6px 12px; font-size: 0.75rem; max-width: none; }
    .pf-content { padding: 24px 18px 22px; }
    .pf-preview { flex-direction: column; align-items: center; gap: 14px; }
    .pf-desktop { max-width: 100%; }
    .pf-phone { width: 38%; max-width: 110px; align-self: center; }
    .pf-meta { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 22px; }
    .about-features { grid-template-columns: 1fr; gap: 18px; }
    .about-visual { grid-template-columns: 1fr; }
    .about-card-shift { margin-top: 0; }
    .process-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
