/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #09090b; color: #fafafa; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* === COLORS === */
:root {
    --bg: #09090b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --border: #27272a;
    --border-hover: #3f3f46;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
}

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

/* === NAV === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all 0.3s; }
.nav.scrolled { background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.logo-mark { width: 36px; height: 36px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: white; }
.logo-text { letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.lang-btn:hover { border-color: var(--border-hover); color: var(--text); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* === HERO === */
.hero { padding: 160px 0 100px; position: relative; text-align: center; }
.hero-badge { display: inline-block; background: var(--accent-glow); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--accent-light); padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; }
.hero-stats { display: flex; justify-content: center; gap: 64px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.hero-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; z-index: -1; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn-full { width: 100%; }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; background: var(--accent-glow); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--accent-light); padding: 4px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* === PRODUCTS === */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: all 0.3s; }
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.product-card.featured { border-color: rgba(99, 102, 241, 0.3); background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05)); }
.product-icon { width: 48px; height: 48px; background: var(--accent-glow); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent-light); margin-bottom: 20px; }
.product-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.product-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tags span { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted); }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 64px; }
.service-card { padding: 40px; border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s; }
.service-card:hover { border-color: var(--accent); }
.service-num { font-size: 3rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.4; margin-bottom: 16px; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.tech-stack { text-align: center; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.tech-logos span { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 8px 18px; border-radius: 100px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; color: var(--text); font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #52525b; }
.form-status { font-size: 0.9rem; min-height: 24px; }
.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }
.contact-info { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.contact-item svg { color: var(--accent-light); flex-shrink: 0; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* === MOBILE === */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9,9,11,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.5rem; }
    .menu-btn { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-sub, .hero-actions, .hero-stats, .hero-badge { animation: fadeUp 0.6s ease-out forwards; opacity: 0; }
.hero-badge { animation-delay: 0s; }
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.4s; }
