:root {
    --color-primary: #0a0a0f;
    --color-secondary: #111116;
    --color-accent: #d4952b;
    --color-accent-light: #e5b04a;
    --color-accent-dark: #b87d20;
    --color-red: #cc3e3e;
    --color-surface: #1a1a22;
    --color-surface-light: #25252f;
    --color-text: #f0f0f2;
    --color-text-muted: #9a9aa8;
    --color-text-dim: #6b6b78;
    --color-border: #1a1a22;
    --color-success: #10b981;
    --color-white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --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 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 149, 43, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --max-width: 1200px;
    --header-height: 72px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section--sm {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(212, 149, 43, 0.2);
    border-radius: 100px;
    background: rgba(212, 149, 43, 0.08);
}

.section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-white);
}

.section-header__desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.header--scrolled {
    background: rgba(10, 10, 15, 0.97);
    border-bottom-color: rgba(212, 149, 43, 0.12);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.header__inner {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    color: #ffffff;
}

.header__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-red));
    border-radius: 1px;
    transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-white);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(212, 149, 43, 0.2);
}

.header__cta:hover {
    background: linear-gradient(135deg, var(--color-accent-dark), #a83232);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 149, 43, 0.3);
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 32px 24px;
    overflow-y: auto;
}

.mobile-menu--open {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--color-white);
}

.mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    border-radius: var(--radius-md);
    text-decoration: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 48px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 149, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 149, 43, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero__gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    background: var(--color-accent);
}

.hero__gradient--1 {
    top: -200px;
    right: -100px;
}

.hero__gradient--2 {
    bottom: -200px;
    left: -100px;
    opacity: 0.06;
    background: var(--color-red);
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    padding: 6px 16px;
    border: 1px solid rgba(212, 149, 43, 0.2);
    border-radius: 100px;
    background: rgba(212, 149, 43, 0.08);
}

.hero__label-dot {
    width: 6px;
    height: 6px;
    background: #28c840;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(212, 149, 43, 0.1);
}

.hero__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-light);
    font-family: var(--font-mono);
}

.hero__stat-label {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero Visual */
.hero__visual {
    position: relative;
}

.hero__terminal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 149, 43, 0.06);
    animation: terminal-in 0.8s ease-out both;
}

@keyframes terminal-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--color-border);
}

.hero__terminal-dots {
    display: flex;
    gap: 6px;
}

.hero__terminal-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hero__terminal-dots span:nth-child(1) { background: #ff5f57; }
.hero__terminal-dots span:nth-child(2) { background: #febc2e; }
.hero__terminal-dots span:nth-child(3) { background: #28c840; }

.hero__terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
    letter-spacing: 0.02em;
    flex: 1;
}

.hero__terminal-lock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #28c840;
    letter-spacing: 0.02em;
}

.hero__terminal-lock svg {
    width: 10px;
    height: 10px;
}

.hero__terminal-body,
.hero__terminal-response {
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    overflow-x: auto;
}

.hero__terminal-divider {
    height: 1px;
    background: rgba(212, 149, 43, 0.15);
    margin: 0 18px;
}

.hero__code-line {
    white-space: nowrap;
}

.hero__code-indent {
    padding-left: 20px;
}

.hero__code-indent2 {
    padding-left: 40px;
}

.hero__code-dim {
    color: var(--color-text-dim);
}

.hero__code-cmd {
    color: var(--color-text);
    font-weight: 600;
}

.hero__code-flag {
    color: var(--color-accent-light);
}

.hero__code-key {
    color: var(--color-accent);
}

.hero__code-string {
    color: var(--color-text-muted);
}

.hero__code-number {
    color: var(--color-text);
    font-weight: 600;
}

.hero__code-bracket {
    color: var(--color-text-dim);
}

.hero__code-status-ok {
    color: #28c840;
    font-weight: 700;
}

.hero__code-status-val {
    color: #28c840;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    box-shadow: 0 2px 8px rgba(212, 149, 43, 0.2);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-accent-dark), #a83232);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 149, 43, 0.3);
}

.btn--secondary {
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--secondary:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.btn--lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}

.btn__icon {
    width: 16px;
    height: 16px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    padding-left: 36px;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-red));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--color-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: rgba(212, 149, 43, 0.08);
    border: 1px solid rgba(212, 149, 43, 0.12);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent-light);
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.service-card__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent);
    padding: 3px 10px;
    background: rgba(212, 149, 43, 0.06);
    border: 1px solid rgba(212, 149, 43, 0.1);
    border-radius: 100px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__content {
    position: relative;
}

.about__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.25;
}

.about__text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about__features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--color-accent);
}

.about__feature-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.about__feature-text strong {
    color: var(--color-white);
    font-weight: 600;
}

.about__visual {
    position: relative;
    padding: 40px;
}

.about__code-block {
    background: var(--color-secondary);
    border: 1px solid rgba(212, 149, 43, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about__code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.about__code-dot--red { background: #ef4444; opacity: 0.7; }
.about__code-dot--yellow { background: #f59e0b; opacity: 0.7; }
.about__code-dot--green { background: #10b981; opacity: 0.7; }

.about__code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about__code-body .keyword { color: #c084fc; }
.about__code-body .string { color: #34d399; }
.about__code-body .property { color: #e5b04a; }
.about__code-body .comment { color: var(--color-text-dim); }
.about__code-body .number { color: #fb923c; }

/* Industries */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.industry-card:hover {
    border-color: rgba(212, 149, 43, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.industry-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
}

.industry-card__icon svg {
    width: 28px;
    height: 28px;
}

.industry-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.industry-card__desc {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 62, 62, 0.3), rgba(212, 149, 43, 0.3), transparent);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-light);
    background: var(--color-secondary);
    border: 1px solid rgba(212, 149, 43, 0.15);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.process-step:nth-child(even) .process-step__number {
    color: var(--color-red);
    border-color: rgba(204, 62, 62, 0.15);
}

.process-step__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.process-step__desc {
    font-size: 0.825rem;
    color: var(--color-text-dim);
    line-height: 1.55;
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    border-color: rgba(212, 149, 43, 0.2);
    color: var(--color-accent-light);
    background: var(--color-surface);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    position: relative;
    padding: 64px;
    background: linear-gradient(135deg, rgba(212, 149, 43, 0.06), rgba(204, 62, 62, 0.04));
    border: 1px solid rgba(212, 149, 43, 0.12);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-red), transparent);
}

.cta-box__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-box__desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(212, 149, 43, 0.08);
    border: 1px solid rgba(212, 149, 43, 0.15);
    color: var(--color-accent-light);
}

.contact-info__icon svg {
    width: 18px;
    height: 18px;
}

.contact-info__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-info__value {
    font-size: 0.925rem;
    color: var(--color-text);
}

.contact-info__value a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-info__value a:hover {
    color: var(--color-accent-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group__input,
.form-group__textarea,
.form-group__select {
    padding: 12px 16px;
    background-color: #111116;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group__input:focus,
.form-group__textarea:focus,
.form-group__select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(212, 149, 43, 0.1);
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
    color: var(--color-text-dim);
}

.form-group__textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group__select option {
    background-color: #111116;
    color: #f0f0f2;
    padding: 10px 16px;
}

.form-group__select option:checked {
    background-color: #1a1a22;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid rgba(212, 149, 43, 0.08);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__brand-desc {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.65;
    margin-top: 16px;
    max-width: 280px;
}

.footer__col-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent-light);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.footer__legal-links {
    display: flex;
    gap: 24px;
}

.footer__legal-link {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--color-accent-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px 24px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-banner__btn--accept {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent), var(--color-red));
    border: none;
}

.cookie-banner__btn--accept:hover {
    background: var(--color-accent-dark);
}

.cookie-banner__btn--reject {
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner__btn--reject:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Legal Pages */
.legal-content {
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 96px;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.legal-content__date {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-content ul li {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 6px;
    position: relative;
    list-style: disc;
}

.legal-content a {
    color: var(--color-accent-light);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-content table th,
.legal-content table td {
    padding: 10px 14px;
    font-size: 0.85rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    font-weight: 600;
}

.legal-content table td {
    color: var(--color-text-muted);
}

/* Page Header */
.page-header {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header + .section {
    padding-top: 48px;
}

.page-header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fiscal Box (contacto) */
.fiscal-box {
    margin-top: 40px;
    padding: 24px;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.fiscal-box__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.fiscal-box__text {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.fiscal-box__name {
    color: var(--color-text);
    font-weight: 600;
}

/* Form Privacy */
.form-privacy {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.form-privacy a {
    color: var(--color-accent-light);
}

/* Alternating Section */
.section--alt {
    background: var(--color-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Light Theme */
html.theme-light {
    --color-primary: #ffffff;
    --color-secondary: #f5f5f7;
    --color-accent: #b87d20;
    --color-accent-light: #a06e1a;
    --color-accent-dark: #8c5e14;
    --color-red: #b83535;
    --color-surface: #eeeef0;
    --color-surface-light: #e4e4e8;
    --color-text: #1a1a22;
    --color-text-muted: #52525e;
    --color-text-dim: #7a7a88;
    --color-border: #dcdce0;
    --color-white: #0f0f14;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(184, 125, 32, 0.1);
}

/* Header */
.theme-light .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-light .header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(184, 125, 32, 0.2);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.theme-light .header__cta {
    color: #ffffff;
}

.theme-light .header__cta:hover {
    color: #ffffff;
}

/* Mobile Menu */
.theme-light .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

.theme-light .mobile-menu__link {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.theme-light .mobile-menu__cta {
    color: #ffffff;
}

/* Hero */
.theme-light .hero__grid {
    background-image:
        linear-gradient(rgba(184, 125, 32, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 125, 32, 0.06) 1px, transparent 1px);
}

.theme-light .hero__gradient {
    opacity: 0.08;
}

.theme-light .hero__gradient--2 {
    opacity: 0.04;
}

.theme-light .hero__label {
    border-color: rgba(184, 125, 32, 0.25);
    background: rgba(184, 125, 32, 0.08);
}

.theme-light .hero__stats {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Hero Terminal - Light Theme */
.theme-light .hero__terminal {
    background: var(--color-secondary);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(184, 125, 32, 0.1);
}

.theme-light .hero__terminal-header {
    background: rgba(0, 0, 0, 0.04);
}

/* Buttons */
.theme-light .btn--primary {
    color: #ffffff;
}

.theme-light .btn--primary:hover {
    color: #ffffff;
}

.theme-light .btn--secondary {
    color: var(--color-text-muted);
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-light .btn--secondary:hover {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.03);
}

/* Section Labels */
.theme-light .section-header__label {
    border-color: rgba(184, 125, 32, 0.3);
    background: rgba(184, 125, 32, 0.08);
}

/* Service Cards */
.theme-light .service-card {
    background: var(--color-secondary);
    border-color: var(--color-border);
}

.theme-light .service-card:hover {
    border-color: rgba(184, 125, 32, 0.3);
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.theme-light .service-card__icon {
    background: rgba(184, 125, 32, 0.1);
    border-color: rgba(184, 125, 32, 0.2);
}

.theme-light .service-card__tag {
    background: rgba(184, 125, 32, 0.08);
    border-color: rgba(184, 125, 32, 0.15);
}

/* About Code Block */
.theme-light .about__code-block {
    border-color: var(--color-border);
}

.theme-light .about__code-header {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: var(--color-border);
}

.theme-light .about__code-dot {
    background: rgba(0, 0, 0, 0.1);
}

.theme-light .about__code-dot--red { background: #ef4444; }
.theme-light .about__code-dot--yellow { background: #f59e0b; }
.theme-light .about__code-dot--green { background: #10b981; }

.theme-light .about__code-body .keyword { color: #7c3aed; }
.theme-light .about__code-body .string { color: #059669; }
.theme-light .about__code-body .property { color: #b87d20; }
.theme-light .about__code-body .number { color: #d97706; }

/* Industry Cards */
.theme-light .industry-card {
    background: var(--color-secondary);
    border-color: var(--color-border);
}

.theme-light .industry-card:hover {
    border-color: rgba(184, 125, 32, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Process */
.theme-light .process-grid::before {
    background: linear-gradient(90deg, transparent, rgba(184, 94, 53, 0.3), rgba(184, 125, 32, 0.3), transparent);
}

.theme-light .process-step__number {
    background: var(--color-primary);
    border-color: rgba(184, 125, 32, 0.25);
}

.theme-light .process-step:nth-child(even) .process-step__number {
    border-color: rgba(184, 53, 53, 0.25);
}

/* Tech Badges */
.theme-light .tech-badge {
    background: var(--color-secondary);
    border-color: var(--color-border);
}

.theme-light .tech-badge:hover {
    border-color: rgba(184, 125, 32, 0.3);
    background: var(--color-primary);
}

/* CTA */
.theme-light .cta-box {
    background: linear-gradient(135deg, rgba(184, 125, 32, 0.06), rgba(184, 53, 53, 0.04));
    border-color: rgba(184, 125, 32, 0.15);
}

/* Contact */
.theme-light .contact-info__icon {
    background: rgba(184, 125, 32, 0.1);
    border-color: rgba(184, 125, 32, 0.2);
}

/* Forms */
.theme-light .form-group__input,
.theme-light .form-group__textarea,
.theme-light .form-group__select {
    background-color: var(--color-secondary);
    border-color: var(--color-border);
    color: var(--color-text);
}

.theme-light .form-group__input:focus,
.theme-light .form-group__textarea:focus,
.theme-light .form-group__select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(184, 125, 32, 0.12);
}

.theme-light .form-group__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352525e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.theme-light .form-group__select option {
    background-color: #ffffff;
    color: #1a1a22;
}

.theme-light .form-group__select option:checked {
    background-color: #f5f5f7;
}

/* Fiscal Box */
.theme-light .fiscal-box {
    background: var(--color-secondary);
    border-color: var(--color-border);
}

/* Footer */
.theme-light .footer {
    border-top-color: var(--color-border);
}

.theme-light .footer__top {
    border-bottom-color: var(--color-border);
}

/* Cookie Banner */
.theme-light .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--color-border);
}

.theme-light .cookie-banner__btn--accept {
    color: #ffffff;
}

.theme-light .cookie-banner__btn--reject {
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.theme-light .cookie-banner__btn--reject:hover {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Legal Content */
.theme-light .legal-content table th,
.theme-light .legal-content table td {
    border-color: var(--color-border);
}

.theme-light .legal-content table th {
    background: var(--color-secondary);
}

/* SVG Logo stroke color for light backgrounds */
.theme-light .header__logo-icon {
    color: #1a1a22;
}

.theme-light .footer__brand .header__logo-icon {
    color: #1a1a22;
}

/* Section alt backgrounds */
.theme-light .section--alt {
    background: var(--color-secondary);
}

/* Scrollbar */
.theme-light ::-webkit-scrollbar {
    width: 8px;
}

.theme-light ::-webkit-scrollbar-track {
    background: var(--color-secondary);
}

.theme-light ::-webkit-scrollbar-thumb {
    background: var(--color-surface-light);
    border-radius: 4px;
}

.theme-light ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-dim);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-left: auto;
    margin-right: 12px;
    max-height: 34px;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 10;
    align-self: flex-start;
    margin-top: 19px;
}

.theme-toggle:hover {
    max-height: 96px;
}

.theme-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle__btn svg {
    width: 14px;
    height: 14px;
}

.theme-toggle__btn:hover {
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.theme-light .theme-toggle__btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle__btn--active {
    color: var(--color-accent);
    background: rgba(212, 149, 43, 0.12);
}

.theme-toggle__btn--active:hover {
    color: var(--color-accent);
    background: rgba(212, 149, 43, 0.18);
}

.theme-light .theme-toggle__btn--active {
    color: var(--color-accent);
    background: rgba(184, 125, 32, 0.12);
}

.theme-light .theme-toggle__btn--active:hover {
    color: var(--color-accent);
    background: rgba(184, 125, 32, 0.18);
}

/* Mobile theme toggle */
.mobile-menu__theme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    margin-top: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.mobile-menu__theme .theme-toggle__btn {
    flex: 1;
    width: auto;
    height: 36px;
    border-radius: 7px;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-primary);
}

.mobile-menu__theme .theme-toggle__btn span {
    display: inline;
    width: auto;
    height: auto;
    background: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__visual {
        max-width: 540px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid::before {
        display: none;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }

    .header__nav,
    .theme-toggle,
    .header__cta { display: none; }

    .header__mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 40px;
    }

    .hero__header {
        margin-bottom: 20px;
    }

    .hero__layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .hero__content {
        display: contents;
    }

    .hero__title {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
        order: 1;
        margin-bottom: 0;
    }

    .hero__desc {
        font-size: 0.95rem;
        margin-bottom: 0;
        order: 2;
    }

    .hero__visual {
        max-width: 100%;
        order: 3;
    }

    .hero__actions {
        order: 4;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
        padding-top: 24px;
        order: 5;
    }

    .hero__label {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .hero__terminal {
        border-radius: 10px;
    }

    .hero__terminal-header {
        padding: 8px 12px;
        gap: 8px;
    }

    .hero__terminal-dots span {
        width: 7px;
        height: 7px;
    }

    .hero__terminal-title {
        font-size: 0.6rem;
    }

    .hero__terminal-lock {
        font-size: 0.55rem;
    }

    .hero__terminal-lock svg {
        width: 8px;
        height: 8px;
    }

    .hero__terminal-body,
    .hero__terminal-response {
        font-size: 0.58rem;
        padding: 10px 12px;
        line-height: 1.55;
    }

    .hero__terminal-divider {
        margin: 0 12px;
    }

    .hero__terminal-response {
        display: none;
    }

    .hero__terminal-divider {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid .about__visual {
        order: 2 !important;
    }

    .about-grid .about__content {
        order: 1 !important;
    }

    .about-grid[style*="margin-bottom"] {
        margin-bottom: 56px !important;
    }

    .about__visual {
        padding: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .page-header {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .cta-box__actions {
        flex-direction: column;
    }
}


