/* =============================================================================
   Nocktech — Design System
   Dark premium consultancy: #0F0F0F base, orange + cyan accents
   ============================================================================= */

:root {
    /* ── Base palette ── */
    --gray-950:      #0A0A0A;
    --gray-900:      #0F0F0F;
    --gray-850:      #141414;
    --gray-800:      #1A1A1A;
    --gray-700:      #2A2A2A;
    --gray-600:      #3A3A3A;
    --gray-500:      #6B6B6B;
    --gray-400:      #8B8B8B;
    --gray-300:      #A3A3A3;
    --gray-200:      #D4D4D4;
    --gray-100:      #EDEDED;
    --white:         #FFFFFF;

    /* ── Accent: Orange ── */
    --orange-600:    #E55A2B;
    --orange-500:    #FF6B35;
    --orange-400:    #FF8A5C;
    --orange-300:    #FFB08A;
    --orange-glow:   rgba(255, 107, 53, 0.3);

    /* ── Accent: Cyan ── */
    --cyan-600:      #00B4D8;
    --cyan-500:      #00D9FF;
    --cyan-400:      #33E1FF;
    --cyan-glow:     rgba(0, 217, 255, 0.2);

    /* ── Semantic ── */
    --bg-body:       var(--gray-900);
    --bg-surface:    var(--gray-850);
    --bg-elevated:   var(--gray-800);
    --bg-footer:     var(--gray-950);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary:  var(--gray-100);
    --text-secondary: var(--gray-400);
    --text-muted:    var(--gray-500);

    /* ── Glass ── */
    --glass-bg:      rgba(255, 255, 255, 0.03);
    --glass-border:  rgba(255, 255, 255, 0.08);
    --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.4);

    /* ── Typography ── */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  clamp(1.5rem, 2vw + 0.5rem, 1.75rem);
    --text-3xl:  clamp(1.75rem, 2.5vw + 0.5rem, 2.25rem);
    --text-4xl:  clamp(2rem, 3vw + 0.5rem, 3rem);
    --text-5xl:  clamp(2.5rem, 4vw + 0.5rem, 4rem);

    /* ── Spacing ── */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ── Layout ── */
    --container-max: 1200px;
    --header-height: 72px;

    /* ── Radius ── */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 999px;

    /* ── Shadows ── */
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl:  0 16px 50px rgba(0, 0, 0, 0.6);

    /* ── Motion ── */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:    150ms;
    --dur-normal:  250ms;
    --dur-slow:    400ms;
}


/* =============================================================================
   Reset
   ============================================================================= */

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

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--cyan-500);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

a:hover {
    color: var(--cyan-400);
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font: inherit;
    color: inherit;
}


/* =============================================================================
   Base Typography
   ============================================================================= */

h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 700;
    color: var(--white);
}

h1 { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }

p {
    color: var(--text-secondary);
    max-width: 65ch;
}


/* =============================================================================
   Utilities
   ============================================================================= */

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

.section {
    position: relative;
    z-index: 1;
    padding: var(--space-24) 0;
}

.section--surface {
    background: var(--bg-surface);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-center {
    text-align: center;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__header p {
    margin: var(--space-4) auto 0;
    font-size: var(--text-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--orange-400);
}


/* =============================================================================
   Background Effects
   ============================================================================= */

/* Dot grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Floating gradient orbs — fixed so they can chase scroll position */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orbs::before,
.bg-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    will-change: transform;
}

.bg-orbs::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-500), transparent 70%);
    top: -200px;
    right: -100px;
    translate:
        calc(var(--orb-mouse-x1, 0px))
        calc(var(--orb-mouse-y1, 0px) + var(--orb1-scroll-y, 0px));
    animation: orb-float-1 20s ease-in-out infinite;
}

.bg-orbs::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan-500), transparent 70%);
    bottom: -150px;
    left: -100px;
    translate:
        calc(var(--orb-mouse-x2, 0px))
        calc(var(--orb-mouse-y2, 0px) + var(--orb2-scroll-y, 0px));
    animation: orb-float-2 25s ease-in-out infinite;
}

.bg-orbs .orb-3 {
    display: block;
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.5), rgba(0, 217, 255, 0.3), transparent 70%);
    filter: blur(100px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(var(--orb3-scroll-y, 0px));
    will-change: transform;
    animation: orb-float-3 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.1); }
    66% { transform: translate(30px, -40px) scale(0.95); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.15); }
}


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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-spring),
                box-shadow var(--dur-normal) ease;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Primary — orange */
.btn--primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    color: var(--white);
    border: none;
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    opacity: 0;
    transition: opacity var(--dur-slow) ease;
    z-index: -1;
}

.btn--primary:hover {
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--orange-glow), 0 10px 40px rgba(255, 107, 53, 0.2);
}

.btn--primary:hover::before {
    opacity: 1;
}

/* Shimmer on hover */
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

.btn--primary:hover::after {
    animation: shimmer 0.8s ease forwards;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* Secondary — outline */
.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn--secondary:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Ghost — minimal */
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
}

.btn--ghost:hover {
    color: var(--white);
}

/* Large variant */
.btn--lg {
    padding: 18px 40px;
    font-size: var(--text-lg);
}

/* CTA pulse */
.btn--pulse {
    animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.4), 0 0 80px rgba(255, 107, 53, 0.1); }
}


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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}

.header--scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header__logo:hover {
    color: var(--white);
}

.header__logo svg {
    width: 28px;
    height: 28px;
}

.header__logo-img {
    height: 32px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header__nav a {
    position: relative;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-1) 0;
    transition: color var(--dur-fast) ease;
}

.header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-500), var(--cyan-500));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.header__nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.header__nav a.is-active {
    color: var(--white);
}

.header__nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__cta {
    padding: 10px 24px;
    font-size: var(--text-sm);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--dur-normal) var(--ease-out),
                opacity var(--dur-fast) ease;
}

.header__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    z-index: 999;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease-out),
                visibility var(--dur-slow) var(--ease-out);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--dur-fast) ease;
}

.mobile-menu a:hover {
    color: var(--white);
}

.mobile-menu .btn {
    margin-top: var(--space-8);
}


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

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-16);
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__badge {
    margin-bottom: var(--space-6);
}

.hero h1 {
    margin-bottom: var(--space-6);
}

.hero__sub {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}


/* =============================================================================
   Capability Cards
   ============================================================================= */

.capabilities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.capability-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-spring),
                border-color var(--dur-slow) ease,
                box-shadow var(--dur-slow) ease,
                background var(--dur-normal) ease;
}

.capability-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0), rgba(0, 217, 255, 0));
    z-index: -1;
    transition: background var(--dur-slow) ease;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.capability-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.capability-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), rgba(0, 217, 255, 0.4));
}

.capability-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 107, 53, 0.1);
    margin-bottom: var(--space-6);
    color: var(--orange-500);
}

.capability-card__icon svg {
    width: 24px;
    height: 24px;
}

.capability-card h3 {
    margin-bottom: var(--space-3);
}

.capability-card p {
    font-size: var(--text-sm);
    line-height: 1.6;
}

.capability-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--orange-500);
    transition: gap var(--dur-normal) ease;
}

.capability-card__link:hover {
    color: var(--orange-400);
    gap: var(--space-3);
}


/* =============================================================================
   Why Nocktech (Values)
   ============================================================================= */

.values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.value-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color var(--dur-normal) ease,
                background var(--dur-normal) ease;
}

.value-item:hover {
    border-color: var(--border-subtle);
    background: var(--glass-bg);
}

.value-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-500);
}

.value-item__icon svg {
    width: 20px;
    height: 20px;
}

.value-item h4 {
    margin-bottom: var(--space-2);
}

.value-item p {
    font-size: var(--text-sm);
}


/* =============================================================================
   Stats
   ============================================================================= */

.stats {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    padding: var(--space-12) 0;
    margin-top: var(--space-12);
    border-top: 1px solid var(--border-subtle);
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}


/* =============================================================================
   Telegram Teaser
   ============================================================================= */

.tg-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.tg-teaser__content h2 {
    margin-bottom: var(--space-4);
}

.tg-teaser__content p {
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.tg-teaser__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.tg-teaser__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.tg-teaser__feature svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--cyan-500);
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 540px;
    background: #1C1C1E;
    border-radius: 40px;
    border: 3px solid #333;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0E0E10;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Telegram chat UI */
.tg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 10px;
    background: #1A1A2E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.tg-header-text {
    display: flex;
    flex-direction: column;
}

.tg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.tg-status {
    font-size: 11px;
    color: var(--cyan-500);
}

.tg-chat {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.tg-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

.tg-msg--user {
    align-self: flex-end;
    background: #2B5278;
    color: white;
    border-bottom-right-radius: 4px;
}

.tg-msg--bot {
    align-self: flex-start;
    background: #1A1A2E;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-msg .command {
    color: var(--cyan-500);
    font-family: var(--font-mono);
}

.tg-msg .link {
    color: var(--orange-500);
    text-decoration: underline;
}

.tg-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #1A1A2E;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    opacity: 0;
}

.tg-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.tg-typing span:nth-child(2) { animation-delay: 0.2s; }
.tg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.tg-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1A1A2E;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-input-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    min-height: 18px;
}

.tg-input-text.typing::after {
    content: '|';
    animation: cursor-blink 1s step-end infinite;
    color: var(--cyan-500);
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tg-send-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cyan-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-body);
    opacity: 0.3;
    transition: opacity var(--dur-fast);
}

.tg-send-btn.active {
    opacity: 1;
}


/* =============================================================================
   Pricing
   ============================================================================= */

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    text-align: center;
    transition: transform var(--dur-normal) var(--ease-spring),
                box-shadow var(--dur-slow) ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card__name {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.pricing-card__price {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.pricing-card__price span {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.pricing-card__features {
    text-align: left;
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.pricing-card__feature svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--cyan-500);
}

.pricing-card .btn {
    width: 100%;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: var(--space-6);
    gap: 2px;
}

.billing-toggle__btn {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.billing-toggle__btn.is-active {
    background: var(--orange-500);
    color: var(--white);
}

.billing-toggle__save {
    font-size: var(--text-xs);
    background: rgba(0, 217, 255, 0.15);
    color: var(--cyan-400);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Featured pricing card — rotating gradient border */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.pricing-card--featured {
    position: relative;
    border-color: transparent;
    z-index: 1;
}

.pricing-card--featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from var(--border-angle), var(--orange-500), var(--cyan-500), var(--orange-500));
    z-index: -2;
    animation: rotate-border 4s linear infinite;
}

.pricing-card--featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bg-surface);
    z-index: -1;
}

@keyframes rotate-border {
    to { --border-angle: 360deg; }
}

.pricing__note {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--text-sm);
    color: var(--text-muted);
}


/* =============================================================================
   Promo Banner
   ============================================================================= */

.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 217, 255, 0.05));
    border: 2px solid rgba(255, 107, 53, 0.25);
    text-align: center;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 53, 0.05), transparent, rgba(0, 217, 255, 0.03), transparent);
    animation: promo-rotate 10s linear infinite;
    z-index: 0;
}

@keyframes promo-rotate {
    to { transform: rotate(360deg); }
}

.promo-banner > * {
    position: relative;
    z-index: 1;
}

.promo-banner h2 {
    margin-top: var(--space-4);
}

.promo-banner p {
    margin: var(--space-4) auto;
    max-width: 550px;
}

.promo-banner__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    margin: var(--space-8) 0;
}

.promo-banner__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.promo-banner__feature svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--orange-500);
}

.promo-banner__fine-print {
    margin-top: var(--space-6);
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* =============================================================================
   Job Site Feature
   ============================================================================= */

.job-site-callout {
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    background: rgba(0, 217, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.12);
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--cyan-400);
    line-height: 1.5;
}


/* =============================================================================
   Blog
   ============================================================================= */

/* Filters */
.blog-filters {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.blog-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.blog-filter-btn:hover {
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}

.blog-filter-btn.is-active {
    background: var(--orange-500);
    color: var(--white);
    border-color: var(--orange-500);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

/* Cards */
.blog-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 217, 255, 0.1);
}

.blog-card:focus-visible {
    outline: 2px solid var(--cyan-500);
    outline-offset: 2px;
}

.blog-card__image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.35;
    mix-blend-mode: luminosity;
}

.blog-card__gradient {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.08);
    opacity: 0.5;
}

.blog-card:hover .blog-card__gradient {
    transform: scale(1.08);
}

/* Dot pattern overlay on card images */
.blog-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 16px 16px;
    z-index: 1;
    pointer-events: none;
}

.blog-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.blog-card__category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 2;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--orange-400);
    font-size: var(--text-xs);
    font-weight: 600;
}

.blog-card__new {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--orange-500);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
}

.blog-card__body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
    color: var(--text-primary);
}

.blog-card:hover .blog-card__title {
    color: var(--orange-500);
}

.blog-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
}

.blog-card__meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Featured Card — gradient hero */
.blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: column;
    position: relative;
    min-height: 360px;
}

.blog-card--featured .blog-card__image {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: inherit;
}

.blog-card--featured .blog-card__image img {
    opacity: 0.2;
}

.blog-card--featured:hover .blog-card__image img {
    opacity: 0.3;
}

.blog-card--featured .blog-card__body {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: var(--space-12) var(--space-10);
    justify-content: flex-end;
    max-width: 700px;
}

.blog-card--featured .blog-card__title {
    font-size: var(--text-3xl);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.blog-card--featured .blog-card__excerpt {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-300);
}

.blog-card--featured .blog-card__meta {
    font-size: var(--text-sm);
}

/* Decorative corner accents on featured card */
.blog-card--featured::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 120px;
    height: 120px;
    border-top: 2px solid var(--orange-500);
    border-right: 2px solid var(--orange-500);
    border-radius: 0 var(--radius-xl) 0 0;
    opacity: 0.4;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.blog-card--featured:hover::before {
    opacity: 0.8;
}

/* NockBot Badge */
.nockbot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-400);
    font-size: var(--text-xs);
    font-weight: 500;
    white-space: nowrap;
}

.nockbot-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-500), var(--cyan-500));
    z-index: 9999;
    width: 0;
    transition: width 0.1s linear;
}

/* Post Hero */
.blog-post__hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.blog-post__hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

.blog-post__hero-gradient {
    position: absolute;
    inset: 0;
}

/* Dot grid on post hero */
.blog-post__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}

.blog-post__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-body) 0%, rgba(15, 15, 15, 0.4) 50%, rgba(15, 15, 15, 0.2) 100%);
    z-index: 1;
}

.blog-post__hero .container {
    position: relative;
    z-index: 2;
}

/* Post Layout */
.blog-post__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.blog-post__back:hover {
    color: var(--orange-500);
}

.blog-post__header {
    margin-bottom: var(--space-10);
}

.blog-post__header h1 {
    font-size: var(--text-4xl);
    line-height: 1.15;
    margin-bottom: 0;
}

.blog-post__meta-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.blog-post__meta-bar .blog-card__category {
    position: relative;
    top: auto;
    left: auto;
}

/* Post Content Typography */
.blog-post__content {
    margin-bottom: var(--space-10);
}

.blog-post__content p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.blog-post__content h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin: 3rem 0 1.25rem;
    padding-left: var(--space-4);
    border-left: 3px solid var(--orange-500);
}

.blog-post__content h3 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.blog-post__content blockquote {
    margin: 2.5rem 0;
    padding: var(--space-8);
    background: rgba(0, 217, 255, 0.04);
    border-left: 3px solid var(--cyan-500);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.blog-post__content blockquote p {
    color: var(--cyan-400);
    font-size: 1.125rem;
    font-style: italic;
    margin: 0;
    line-height: 1.7;
}

.blog-post__content blockquote cite {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: normal;
}

.blog-post__content ul {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.blog-post__content li {
    padding-left: var(--space-6);
    position: relative;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-post__content li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: var(--cyan-500);
    font-weight: 700;
    font-size: 1.25rem;
}

.blog-post__content figure {
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-post__content figure img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.blog-post__content figcaption {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-3);
}

/* Callout */
.blog-post__callout {
    margin: 2.5rem 0;
    padding: var(--space-6) var(--space-8);
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: var(--radius-lg);
}

.blog-post__callout p {
    color: var(--text-primary) !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.7;
}

/* Project Details */
.blog-post__project {
    margin-bottom: var(--space-10);
    padding: var(--space-8);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.blog-post__project h3 {
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--glass-border);
}

.blog-post__project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-5);
}

.blog-post__project-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.blog-post__project-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
}

/* Tags */
.blog-post__tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

.blog-post__tag {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    font-size: var(--text-xs);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.blog-post__tag:hover {
    color: var(--cyan-400);
}

/* Blog responsive — tablet */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card--featured {
        min-height: 300px;
    }

    .blog-card--featured .blog-card__body {
        padding: var(--space-8) var(--space-6);
    }

    .blog-card--featured .blog-card__title {
        font-size: var(--text-xl);
    }

    .blog-card--featured::before {
        width: 80px;
        height: 80px;
    }
}

/* Blog responsive — mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .blog-post__hero {
        min-height: 320px;
        padding-top: calc(var(--header-height) + var(--space-10));
        padding-bottom: var(--space-10);
    }

    .blog-post__hero h1 {
        font-size: var(--text-xl) !important;
    }

    .blog-post__header h1 {
        font-size: var(--text-2xl);
    }

    .blog-post__content p,
    .blog-post__content li {
        font-size: 1rem;
    }

    .blog-post__content figure {
        margin: 1.5rem 0;
    }

    .blog-post__content blockquote {
        padding: var(--space-5);
    }

    .blog-post__project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-card__image {
        height: 180px;
    }

    .blog-filters {
        gap: var(--space-2);
    }

    .blog-filter-btn {
        padding: var(--space-1) var(--space-4);
        font-size: var(--text-xs);
    }
}


/* =============================================================================
   NockBot Waitlist
   ============================================================================= */

.nockbot-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 217, 255, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.nockbot-feature__icon svg {
    width: 22px;
    height: 22px;
    color: var(--orange-500);
}

/* Waitlist form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.waitlist-incentive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-full);
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.15);
    color: var(--orange-400);
    font-size: var(--text-sm);
    font-weight: 600;
}

.waitlist-incentive svg {
    color: var(--orange-500);
    flex-shrink: 0;
}

.waitlist-error {
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: var(--text-sm);
    text-align: center;
}

/* Success state */
.waitlist-success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 217, 255, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitlist-success__icon svg {
    width: 36px;
    height: 36px;
    color: var(--orange-500);
}

@keyframes success-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.waitlist-counter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.waitlist-counter__number {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--orange-500);
}

.waitlist-counter__label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* NockBot Pricing Card */
.nockbot-pricing {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.nockbot-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-500), var(--cyan-500));
}

.nockbot-pricing__amount {
    padding: var(--space-8) 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.nockbot-pricing__dollar {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--orange-500);
    align-self: flex-start;
    margin-top: 0.4em;
}

.nockbot-pricing__number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}

.nockbot-pricing__period {
    font-size: var(--text-xl);
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}

.nockbot-pricing__billed {
    width: 100%;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.nockbot-pricing__includes {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--glass-border);
    text-align: left;
}

.nockbot-pricing__include {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.nockbot-pricing__include svg {
    flex-shrink: 0;
    color: var(--cyan-500);
}

.nockbot-pricing__cancel {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    [data-page="nockbot"] [style*="repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .nockbot-pricing__number {
        font-size: 4rem;
    }
}


/* =============================================================================
   404 Page
   ============================================================================= */

.error-display__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    user-select: none;
}

.error-display__4 {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, var(--gray-400) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-display__0 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(5rem, 12vw, 9rem);
    height: clamp(5rem, 12vw, 9rem);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, rgba(0, 217, 255, 0.06) 60%, transparent 80%);
    border: 2px solid rgba(255, 107, 53, 0.2);
    animation: error-pulse 3s ease-in-out infinite;
    position: relative;
}

.error-display__0 svg {
    width: 50%;
    height: 50%;
    color: var(--orange-500);
    opacity: 0.6;
    animation: error-spin 20s linear infinite;
}

@keyframes error-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.15), 0 0 40px rgba(255, 107, 53, 0.05);
        border-color: rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0), 0 0 60px rgba(0, 217, 255, 0.08);
        border-color: rgba(0, 217, 255, 0.2);
    }
}

@keyframes error-spin {
    to { transform: rotate(360deg); }
}

.error-suggestions {
    margin-top: var(--space-10);
}

.error-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.error-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 110px;
}

.error-link:hover {
    border-color: rgba(0, 217, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.error-link:hover svg {
    color: var(--orange-500);
}

.error-link svg {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .error-links {
        gap: var(--space-3);
    }

    .error-link {
        padding: var(--space-4) var(--space-6);
        min-width: 90px;
    }
}


/* =============================================================================
   CTA Block
   ============================================================================= */

.cta-block {
    text-align: center;
    padding: var(--space-24) 0;
}

.cta-block h2 {
    margin-bottom: var(--space-4);
}

.cta-block p {
    margin: 0 auto var(--space-8);
    font-size: var(--text-lg);
}


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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--dur-normal) ease,
                box-shadow var(--dur-normal) ease,
                background var(--dur-normal) ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--cyan-500);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--cyan-glow), 0 0 20px rgba(0, 217, 255, 0.05);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}


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

.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-footer);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--space-3) 0 var(--space-6);
    max-width: 280px;
}

.footer__heading {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--dur-fast) ease;
}

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

.footer__socials {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.footer__socials a {
    color: var(--text-muted);
    transition: color var(--dur-fast) ease;
}

.footer__socials a:hover {
    color: var(--white);
}

.footer__socials svg {
    width: 20px;
    height: 20px;
}

.footer__divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: var(--space-6);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* =============================================================================
   Scroll Animation States (set by GSAP)
   ============================================================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}


/* =============================================================================
   Page Loader
   ============================================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--orange-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


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

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

    .tg-teaser {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tg-teaser__features {
        align-items: center;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .section {
        padding: var(--space-16) 0;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Header mobile */
    .header__nav,
    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-12));
        padding-bottom: var(--space-12);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    /* Values mobile */
    .values__grid {
        grid-template-columns: 1fr;
    }

    /* Stats mobile */
    .stats {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
    }

    /* Footer mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    /* Reduce background effects */
    .bg-orbs::before { width: 300px; height: 300px; filter: blur(60px); }
    .bg-orbs::after { width: 250px; height: 250px; filter: blur(60px); }
    .bg-orbs .orb-3 { display: none; }

    /* Disable backdrop-filter on mobile for perf */
    .capability-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 20, 0.95);
    }

    /* Phone mockup mobile */
    .phone-frame {
        width: 240px;
        height: 460px;
    }

    /* Pricing page grids mobile */
    [data-page="pricing"] [style*="grid-template-columns: 1fr 1fr"],
    [data-page="pricing"] [style*="grid-template-columns:1fr 1fr"],
    [data-page="pricing"] [style*="repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .promo-banner {
        padding: var(--space-8) var(--space-6);
    }
}

/* Touch devices — replace hover with tap feedback */
@media (hover: none) {
    .capability-card:active {
        transform: scale(0.98);
        border-color: rgba(0, 217, 255, 0.3);
    }

    .capability-card:hover {
        transform: none;
    }
}


/* =============================================================================
   Reduced Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .bg-orbs::before,
    .bg-orbs::after,
    .bg-orbs .orb-3 {
        animation: none;
    }

    .page-loader {
        display: none;
    }
}
