/* ===========================
   BROTECH — Design System
   Dark Mode · Neon Accent
=========================== */

/* ---- Tokens ---- */
:root {
    --bg-base: #080c10;
    --bg-surface: #0d1117;
    --bg-card: #111820;
    --bg-card-hover: #151e28;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(0, 230, 130, 0.25);

    --accent: #00e682;
    --accent-dim: rgba(0, 230, 130, 0.12);
    --accent-glow: rgba(0, 230, 130, 0.35);
    --accent-dark: #00bc6a;

    --text-primary: #f0f4f8;
    --text-secondary: #8b98a8;
    --text-muted: #4e5a68;

    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 72px;
    --section-pad: 120px;
}

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

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

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

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

ul {
    list-style: none;
}

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

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

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #020c06;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

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

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.btn--full {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* ---- Section Header ---- */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 18px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Highlight ---- */
.highlight-text {
    background: linear-gradient(135deg, var(--accent), #00c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   HEADER
==================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(8, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

#header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

#header .logo img {
    height: 36px;
}

#header .logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

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

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

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

.btn-nav-cta {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    border: 1px solid var(--border-accent) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.btn-nav-cta:hover {
    background: var(--accent) !important;
    color: #020c06 !important;
    border-color: var(--accent) !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ====================================
   HERO
==================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-grid {
    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: 48px 48px;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.hero-glow--left {
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(0, 230, 130, 0.12) 0%, transparent 70%);
}

.hero-glow--right {
    bottom: -100px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 196, 255, 0.1) 0%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 7px 16px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.75;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 80px rgba(0, 230, 130, 0.08);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.code-window__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot--red {
    background: #FF5F57;
}

.dot--yellow {
    background: #FFBD2E;
}

.dot--green {
    background: #28C840;
}

.code-window__title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.code-window__body {
    padding: 24px 24px 16px;
    overflow-x: auto;
}

.code-block {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre;
}

.code-import {
    color: #c792ea;
}

.code-brace {
    color: #89ddff;
}

.code-str {
    color: #c3e88d;
}

.code-fn {
    color: #82aaff;
}

.code-comment {
    color: #546e7a;
    font-style: italic;
}

.code-punct {
    color: #89ddff;
}

.code-window__status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.status-dot--pass {
    animation: pulse 2s infinite;
}

.status-time {
    margin-left: auto;
    color: var(--text-muted);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(4px);
    }
}

/* ====================================
   WHY BROTECH
==================================== */
.why-brotech {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

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

.pillar-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 230, 130, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pillar-card--accent {
    border-color: var(--border-accent);
    background: linear-gradient(145deg, var(--bg-card), rgba(0, 230, 130, 0.04));
}

.pillar-card--accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.pillar-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.pillar-card p strong {
    color: var(--text-primary);
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pillar-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    padding: 3px 10px;
}

/* ====================================
   SERVICES
==================================== */
.services {
    padding: var(--section-pad) 0;
    background: var(--bg-base);
}

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

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

.service-card:hover {
    border-color: rgba(0, 230, 130, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.service-card--featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-color: var(--border-accent);
    background: linear-gradient(145deg, var(--bg-card), rgba(0, 230, 130, 0.05));
}

.service-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #00c4ff);
}

.service-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(0, 230, 130, 0.2);
    box-shadow: 0 0 20px rgba(0, 230, 130, 0.15);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card p strong {
    color: var(--text-primary);
}

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

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-list li i {
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ====================================
   TECH STACK
==================================== */
.stack {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stack-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 230, 130, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stack-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.stack-column-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stack-column-title i {
    color: var(--accent);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.tech-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-item__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.tech-item__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.methodology-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.methodology-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: var(--transition);
}

.methodology-item:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.methodology-item__num {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.methodology-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.methodology-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ====================================
   PROCESS
==================================== */
.process {
    padding: var(--section-pad) 0;
    background: var(--bg-base);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    padding: 0 20px;
    position: relative;
    text-align: center;
}

.process-step__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    opacity: 0.7;
}

.process-step__connector {
    position: absolute;
    top: 68px;
    right: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
    z-index: 0;
}

.process-step__connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 7px;
    height: 7px;
    background: var(--border);
    border-radius: 50%;
}

.process-step:first-child .process-step__connector {
    right: 0;
    width: 50%;
}

.process-step__connector--last {
    display: none;
}

.process-step__icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .process-step__icon {
    background: rgba(0, 230, 130, 0.2);
    box-shadow: 0 0 24px rgba(0, 230, 130, 0.25);
    transform: scale(1.08);
}

.process-step__content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.process-step__tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.process-step__content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ====================================
   CTA BANNER
==================================== */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 230, 130, 0.06) 0%, rgba(0, 196, 255, 0.04) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner__glow {
    position: absolute;
    width: 600px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(0, 230, 130, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta-banner__content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.2;
}

.cta-banner__content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ====================================
   CONTACT
==================================== */
.contact {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
}

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

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

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--border-accent);
}

.contact-info-card>i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-info-card a,
.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--accent);
}

.contact-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-top: 4px;
}

.contact-guarantee i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-guarantee p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-guarantee strong {
    color: var(--accent);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 230, 130, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

.form-success {
    font-size: 0.88rem;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.form-success.shown {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    padding: 14px 16px;
    max-height: 80px;
}

/* ====================================
   FOOTER
==================================== */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 70px 0 28px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo img {
    height: 34px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-brand>p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.footer-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.footer-email i {
    color: var(--accent);
}

.footer-nav h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li,
.footer-nav ul li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

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

.footer-bottom a {
    transition: var(--transition);
}

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

.footer-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ====================================
   BACK TO TOP
==================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: #020c06;
    transform: translateY(-4px);
}

/* ====================================
   SCROLL REVEAL ANIMATIONS
==================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

/* ====================================
   RESPONSIVE
==================================== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 90px;
    }

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

    .pillars-grid .pillar-card:last-child {
        grid-column: span 2;
    }

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

    .service-card--featured {
        grid-column: span 2;
    }

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

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .process-step__connector {
        display: none;
    }

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

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: rgba(8, 12, 16, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-scroll-hint {
        display: none;
    }

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

    .pillars-grid .pillar-card:last-child {
        grid-column: span 1;
    }

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

    .service-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .contact-form-wrap {
        padding: 28px 20px;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.88rem;
    }

    .btn--lg {
        padding: 14px 26px;
        font-size: 0.92rem;
    }
}

/* ====================================
   INSIGHTS — Shared Sub-page Styles
   Used by /insights/ and /insights/*/
==================================== */

/* Sticky sub-nav (used on all insight pages) */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 16, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 28px;
}

.nav-home {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-home:hover {
    color: var(--accent);
}

/* ---- Blog listing (/insights/) ---- */
.page-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 24px 100px;
}

.page-header {
    margin-bottom: 56px;
}

.page-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 4px 14px;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

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

.article-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #00c4ff);
    opacity: 0;
    transition: 0.3s;
}

.article-card:hover::before {
    opacity: 1;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 16px;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-date i {
    color: var(--accent);
}

.article-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.coming-soon .card-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-muted);
}

.coming-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    display: inline-block;
    margin-left: 8px;
}

/* ---- Article page (/insights/article/) ---- */
.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 100px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

.breadcrumb i {
    font-size: 0.65rem;
}

/* Article header */
.article-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 4px 14px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-title .hl {
    background: linear-gradient(135deg, var(--accent), #00c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--accent);
}

/* Article body typography */
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 52px 0 16px;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 12px;
}

.article-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body strong {
    color: var(--text-primary);
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    color: var(--text-secondary);
    font-size: 0.97rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.7;
}

.article-body ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 10px;
    flex-shrink: 0;
}

.article-body ol {
    counter-reset: list;
}

.article-body ol li {
    counter-increment: list;
}

.article-body ol li::before {
    content: counter(list);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    padding: 1px 8px;
    margin-top: 4px;
    flex-shrink: 0;
    line-height: 1.6;
}

/* Code block */
.code-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 28px 0;
}

.code-wrap__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-wrap__header .dot-r { background: #FF5F57; }
.code-wrap__header .dot-y { background: #FFBD2E; }
.code-wrap__header .dot-g { background: #28C840; }

.code-wrap pre {
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Syntax highlight tokens */
.kw  { color: #c792ea; }
.str { color: #c3e88d; }
.fn  { color: #82aaff; }
.cmt { color: #546e7a; font-style: italic; }
.num { color: #f78c6c; }

/* Callout box */
.callout {
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
}

.callout p {
    color: var(--text-secondary);
    margin: 0;
}

.callout p strong {
    color: var(--accent);
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 36px 0;
}

.stat-cell {
    background: var(--bg-card);
    padding: 20px;
    text-align: center;
}

.stat-cell__num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-cell__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 28px 0;
    font-size: 0.9rem;
}

.compare-table th {
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th:nth-child(3) {
    color: var(--accent);
}

.compare-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.compare-table td .win {
    color: var(--accent);
    font-weight: 600;
}

.compare-table td .lose {
    color: var(--text-muted);
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(0, 230, 130, 0.07), rgba(0, 196, 255, 0.04));
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 64px;
}

.article-cta h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Article footer */
.article-footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

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

.article-footer a {
    color: var(--text-secondary);
}

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

/* Insights responsive */
@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .compare-table {
        font-size: 0.8rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }

    .article-cta {
        padding: 28px 20px;
    }
}