/* ===== CSS VARIABLES ===== */
/* BRAND CONVENTION — helloWorld camel = logo/CLI/terminal/table-columns/WhatsApp voice (helloWorld).
   "Hello World" spaced = legal name, titles, meta/OG, prose, JSON-LD, chat product name.
   Never: HelloWorld / hello world / HELLOWORLD. Tagline stays lowercase by style. */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --font-main: 'Inter', -apple-system, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

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

input,
textarea,
select {
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-primary);
}

.logo-cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-cta {
    background: var(--gradient-1) !important;
    color: var(--text-primary) !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-tertiary);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-tagline {
    margin-top: 80px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.tagline-text {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.service-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card > a.card-link {
    margin-top: auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 2px;
    border: none;
    background: none;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--text-primary);
}

.service-card > a.card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.service-card > a.card-link .arr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.16);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
    transition: var(--transition-normal);
}

.service-card > a.card-link:hover .arr,
.service-card:hover > a.card-link .arr {
    background: var(--gradient-1);
    transform: translateX(5px);
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.6);
}

.service-card .service-list {
    margin-bottom: 20px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.service-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding-left: 16px;
    position: relative;
}

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

/* ===== WORK SECTION ===== */
.work {
    padding: 120px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.work-card-large {
    grid-column: span 2;
}

.work-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.work-info {
    padding: 24px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.work-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    border-radius: 100px;
    font-weight: 500;
}

.work-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.work-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ===== AI LAB ===== */
.ai-lab {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.ai-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ai-demo-card {
    padding: 40px;
    background: var(--gradient-1);
    border-radius: var(--radius-xl);
    color: white;
}

.ai-demo-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ai-demo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-demo-icon svg {
    width: 24px;
    height: 24px;
}

.ai-demo-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    flex: 1;
}

.ai-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-demo-desc {
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.7;
}

.ai-demo-card .btn {
    background: white;
    color: var(--bg-primary);
}

.ai-demo-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ai-capabilities {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.capability-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.capability-icon {
    font-size: 1.8rem;
}

.capability-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.capability-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== STATS ===== */
.stats-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item {
    display: block;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stats-grid .stat-label {
    display: block;
    margin-top: 8px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.contact-method:hover {
    border-color: var(--accent-primary);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: block;
}

.method-value {
    font-weight: 600;
}

.contact-form-wrapper {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 12px;
}

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

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    transition: var(--transition-normal);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

.chat-toggle .close-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle .close-icon {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.open .chat-window {
    display: flex;
}

.chat-header {
    padding: 20px;
    background: var(--gradient-1);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.chat-title {
    font-weight: 600;
    display: block;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.chat-message.user .message-content {
    background: var(--gradient-1);
    color: white;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

.quick-reply {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.quick-reply:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-send {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-card-large {
        grid-column: span 2;
    }

    .ai-showcase {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.page-header .section-desc {
    max-width: 700px;
    margin: 16px auto 0;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===== SERVICES DETAIL ===== */
.services-detail {
    padding: 100px 0;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.service-block.reverse {
    flex-direction: row-reverse;
}

.service-block-content {
    flex: 1;
}

.service-block-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 12px 0 24px;
    line-height: 1.2;
}

.service-block-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.detail-list {
    display: grid;
    gap: 16px;
}

.detail-list li {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    padding-left: 24px;
    position: relative;
}

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

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 800;
}

.service-block-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 70%);
}

.code-snippet {
    background: #1a1a25;
    padding: 24px;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    width: 100%;
}

.design-shapes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.shape {
    background: var(--gradient-1);
}

.shape.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.shape.square {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    opacity: 0.6;
}

.graph {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
}

.bar {
    width: 40px;
    background: var(--gradient-1);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.5s ease forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.ai-node {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-pulse {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===== PRICING OVERVIEW ===== */
.pricing-overview {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.price-card {
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.price-card.featured {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-desc {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price-list {
    text-align: left;
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.price-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.price-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 32px;
        transition: var(--transition-normal);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle span {
        transition: var(--transition-fast);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card-large {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .chat-window {
        width: calc(100vw - 48px);
        right: -12px;
    }

    .service-block,
    .service-block.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: none;
    }
}

/* ===== WORK GALLERY ===== */
.work-gallery {
    padding: 60px 0 120px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* ===== AI LAB CONTENT ===== */
.ai-tools {
    padding: 100px 0;
}

.ai-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-inline: auto;
}

.ai-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.agent-card {
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.agent-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

.agent-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.agent-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.agent-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.agent-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-features span {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
}

.ai-interactive {
    padding: 100px 0;
}

.interactive-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 60px;
    overflow: hidden;
    position: relative;
}

.interactive-content {
    flex: 1;
    z-index: 1;
}

.interactive-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.interactive-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.ai-orb {
    width: 250px;
    height: 250px;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(20px);
    animation: orbPulse 4s infinite ease-in-out;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
        filter: blur(40px);
    }
}

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

    .interactive-box {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 60px 0 120px;
}

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

.faq-brief {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.faq-brief h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT PAGE ===== */
.about-mission {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.vibrant-orb {
    width: 250px;
    height: 250px;
    background: var(--gradient-2);
    filter: blur(80px);
    border-radius: 50%;
    animation: orbFloat 10s infinite alternate ease-in-out;
}

.glass-box {
    position: absolute;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-values {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.founder-note {
    padding: 120px 0;
}

.note-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.note-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 12rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.quote {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    color: white;
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.founder-info strong {
    font-size: 1.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.founder-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes orbFloat {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(20px, 20px);
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .note-box {
        padding: 60px 40px;
    }

    .quote {
        font-size: 1.8rem;
    }
}

/* ===== ABOUT MISSION (small screens) ===== */
@media (max-width: 640px) {
    .about-mission {
        padding: 60px 0;
    }

    .about-grid {
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-visual {
        height: 280px;
    }

    .vibrant-orb {
        width: 180px;
        height: 180px;
    }

    .glass-box {
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
        max-width: 90%;
    }
}

/* ===== PAGE TRANSITIONS ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0b;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loader-orb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    border-radius: 50%;
    filter: blur(20px);
    animation: loaderPulse 1.5s infinite alternate ease-in-out;
}

@keyframes loaderPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

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

/* ===== SERVICES TITLES — gradient-forward (services.html) ===== */
.service-block-content h2 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.service-block-content .text-gradient {
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.45));
}

.service-block-content .section-label {
    padding: 8px 16px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

.page-header .text-gradient,
.services-detail .section-title .text-gradient {
    filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.4));
}

.services-detail .section-title {
    letter-spacing: -0.03em;
}

/* ===== LEAD MAGNET LAYER (hw) — matches site tokens ===== */
/* Shared widget primitives (canonical — same values as service pages) */
.widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.widget-card { padding: 40px 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.widget-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.widget-card p { color: var(--text-tertiary); font-size: .9rem; margin-bottom: 20px; }
.widget-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: .95rem; color: var(--text-secondary); }
.widget-result strong { color: var(--text-primary); font-size: 1.4rem; display: block; }
input[type="range"] { width: 100%; accent-color: #6366f1; margin: 12px 0; }
.source-note { font-size: .75rem; color: var(--text-tertiary); margin-top: 16px; }
@media (max-width: 900px) { .widget-grid { grid-template-columns: 1fr; } }

/* Widget result capture — inherits .btn metrics via markup (.btn.btn-primary) */
.hw-capture { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.hw-capture-btn { align-self: flex-start; }
.hw-capture small { font-size: .75rem; color: var(--text-tertiary); margin-top: 2px; }

/* Sticky mobile CTA */
.hw-sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1200;
    display: none; gap: 10px; padding: 10px;
    background: rgba(18,18,26,.96); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
.hw-sticky-cta a {
    flex: 1; text-align: center; padding: 14px 10px; font-size: .95rem; font-weight: 600;
    border-radius: var(--radius-md); transition: var(--transition-normal);
}
.hw-sticky-cta .hw-a { background: var(--gradient-1); color: var(--text-primary); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }
.hw-sticky-cta .hw-b { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
@media (max-width: 768px) { .hw-sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* Audit quiz — card matches .contact-form-wrapper */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.quiz-progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--gradient-1); transition: width .3s ease; }
.quiz-step { display: none; padding: 40px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); }
.quiz-step.active { display: block; }
.quiz-step h2 { font-size: 1.4rem; margin-bottom: 16px; }
.quiz-step .quiz-summary { color: var(--text-secondary); font-size: .9rem; margin-bottom: 12px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
    text-align: left; padding: 14px 16px; border-radius: 10px;
    border: 1px solid var(--border-color); background: rgba(255,255,255,.03);
    color: var(--text-secondary); font-weight: 600; font-size: .95rem; transition: var(--transition-normal);
}
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--accent-primary); color: #fff; background: rgba(99,102,241,.12); outline: none; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.quiz-back { color: var(--text-tertiary); font-weight: 600; font-size: .9rem; transition: var(--transition-fast); }
.quiz-back:hover { color: var(--text-primary); }
/* Quiz lead form reuses .form-group rhythm */
.lead-form { display: grid; gap: 0; margin-top: 16px; }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; padding: 14px 18px; border-radius: var(--radius-md); color: var(--text-primary);
    background: var(--bg-tertiary); border: 1px solid var(--border-color); font-size: .95rem; transition: var(--transition-fast);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--text-tertiary); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
    outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.lead-form .form-row { margin-bottom: 0; }
.consent { font-size: .85rem; color: var(--text-tertiary); display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; }
.consent input { width: auto; margin-top: 4px; }

/* Proof bar — quiet row, matches hero tone (no pill container) */
.hw-proofbar {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center;
    margin-top: 28px; font-size: .9rem; color: var(--text-tertiary);
    animation: fadeInUp 0.8s ease 0.35s both;
}
.hw-proofbar strong { color: var(--text-primary); font-weight: 700; }
.hw-proofbar span + span::before { content: '•'; margin-right: 8px; color: var(--text-tertiary); opacity: .6; }
/* Tighten tagline gap only when proofbar is present (was 80px solo) */
.hero-content .hw-proofbar + .hero-tagline { margin-top: 40px; }

/* Homepage fallback sections — button row matches .hero-cta rhythm */
.hw-fallback-cta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-top: 32px;
}

/* Thank-you steps — same rhythm as .faq-item */
.ty-steps { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.ty-steps .faq-item:last-child { margin-bottom: 0; }

/* Disabled contact method */
.contact-method.is-disabled { opacity: .7; cursor: default; }
.contact-method.is-disabled:hover { border-color: var(--border-color); }