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

:root {
    --color-bg: #0a0a0f;
    --color-bg-2: #12121a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 87, 34, 0.4);
    --color-text: #f5f5f7;
    --color-text-muted: #a0a0ab;
    --color-text-dim: #6b6b75;

    --color-primary: #FF5722;
    --color-primary-light: #FF7043;
    --color-secondary: #FFC107;
    --color-accent: #B71C1C;

    --gradient-flame: linear-gradient(135deg, #FFC107 0%, #FF5722 50%, #B71C1C 100%);
    --gradient-flame-soft: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 87, 34, 0.15) 50%, rgba(183, 28, 28, 0.15) 100%);

    --shadow-glow: 0 0 60px rgba(255, 87, 34, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

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

    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

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

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

/* ==================== BACKGROUND EFFECTS ==================== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(183, 28, 28, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(10, 10, 15, 0.85);
    border-bottom-color: var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.5));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    color: var(--color-text);
}

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

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

.nav-links a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.nav-cta {
    background: var(--gradient-flame);
    color: white !important;
    margin-left: 8px;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
}

.nav-cta:hover {
    background: var(--gradient-flame) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 87, 34, 0.5);
}

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary-light);
    border-color: var(--color-border-hover);
}

.lang-toggle svg {
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.lang-toggle:hover svg {
    transform: rotate(360deg);
}

.lang-code {
    font-size: 0.8rem;
    font-weight: 700;
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-flame);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 87, 34, 0.5);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
}

.btn-block {
    width: 100%;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.gradient-text {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    animation: fadeUp 0.6s ease 0.5s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

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

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

/* ==================== SECTIONS ==================== */
section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--gradient-flame-soft);
    border: 1px solid rgba(255, 87, 34, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

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

.service-card {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-flame-soft);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

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

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-flame);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

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

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

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

/* ==================== ABOUT ==================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    margin-top: 16px;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 24px 0 32px;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 600;
}

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

.benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-flame);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.benefit p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.visual-card {
    position: relative;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-flame);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
}

.code-window {
    background: #060609;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

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

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

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.code-body {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--color-text-muted);
}

.code-line {
    white-space: pre;
}

.code-indent {
    padding-left: 24px;
}

.code-comment { color: #6b6b75; font-style: italic; }
.code-keyword { color: #FF5722; }
.code-var { color: #FFC107; }
.code-func { color: #4FC3F7; }
.code-string { color: #81C784; }
.code-number { color: #FFB74D; }

/* ==================== PROCESS ==================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.process-step {
    padding: 32px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==================== CONTACT ==================== */
.contact {
    padding-bottom: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: 56px;
    background: linear-gradient(180deg, var(--color-surface) 0%, rgba(255, 87, 34, 0.04) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-text {
    color: var(--color-text-muted);
    margin: 24px 0 32px;
    font-size: 1.05rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-flame);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.optional {
    color: var(--color-text-dim);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-message {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81C784;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #E57373;
}

.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 16px;
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-col a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

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

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .contact-wrapper {
        padding: 28px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-header {
        margin-bottom: 40px;
    }

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