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

:root {
    --bg-primary: #050507;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(59, 130, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --gradient: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ===== ANIMATIONS ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    background: var(--accent-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
}

.hero-glow-1 {
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-glow-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.hero-visual {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-light);
    margin-bottom: 36px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 76px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3.5px;
    margin-bottom: 28px;
}

.hero-line {
    display: block;
}

.gradient {
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 44px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 56px;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: var(--accent-dark);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tech span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SECTIONS COMMON ===== */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

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

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

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

.service-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.02);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== HERO VISUAL ===== */
.hero-visual-img {
    width: 100%;
    max-width: 560px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.08));
}

/* ===== SHOWCASE ===== */
.showcase {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.showcase-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

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

.showcase-large {
    grid-column: 1 / -1;
}

.showcase-screen {
    padding: 24px 24px 0;
    overflow: hidden;
}

.showcase-large .showcase-screen {
    padding: 32px 32px 0;
}

.showcase-label {
    padding: 20px 24px 24px;
}

.showcase-large .showcase-label {
    padding: 24px 32px 32px;
}

.showcase-label h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.showcase-label p {
    font-size: 13px;
    color: var(--text-muted);
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ===== WHY US ===== */
.why-us {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.why-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s;
}

.why-card:hover {
    border-color: var(--border-hover);
}

.why-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.why-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

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

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

.stat {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    display: inline;
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.stat-suffix {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    display: inline;
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

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

.process-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), rgba(59, 130, 246, 0.1));
}

.process-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 28px 0;
}

.process-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    position: relative;
    z-index: 2;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.process-step:hover .process-icon {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.process-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.process-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

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

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

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

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

.contact-method-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.contact-method-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method-detail {
    font-size: 13px;
    color: var(--text-muted);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.btn-full {
    width: 100%;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
}

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

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: color 0.3s, background 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        gap: 48px;
    }

    .hero-visual {
        width: 100%;
        max-width: 500px;
    }

    .device-group {
        height: 340px;
    }

    .device-laptop {
        width: 320px;
    }

    .hero h1 {
        font-size: 56px;
        letter-spacing: -2.5px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .showcase-large {
        grid-column: auto;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary, .btn-secondary {
        text-align: center;
    }

    .hero-tech {
        gap: 8px;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

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

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

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

    .stat-number, .stat-suffix {
        font-size: 40px;
    }

    .process-grid::before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

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

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

    .services, .why-us, .process, .contact {
        padding: 80px 0;
    }

    .stats {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 34px;
        letter-spacing: -1.5px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-container {
        padding: 16px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .stat-number, .stat-suffix {
        font-size: 32px;
    }
}
