:root {
  --bg: #F8F5F0;
  --bg-dark: #0A1628;
  --bg-accent: #0F1F35;
  --ink: #0A1628;
  --ink-soft: #3B4451;
  --ink-muted: #6B7480;
  --line: rgba(10, 22, 40, 0.1);
  --line-dark: rgba(255, 255, 255, 0.08);
  --accent: #FF6B4A;
  --accent-2: #FFA94A;
  --grad: linear-gradient(135deg, #FF6B4A 0%, #FFA94A 100%);
  --grad-deep: linear-gradient(135deg, #FF6B4A 0%, #7C5CFF 100%);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 24px 80px rgba(10, 22, 40, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- BG mesh ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.blob-1 { background: #FF6B4A; top: -200px; left: -200px; animation: float1 22s ease-in-out infinite; }
.blob-2 { background: #7C5CFF; bottom: -200px; right: -100px; animation: float2 28s ease-in-out infinite; }
.blob-3 { background: #4AB6FF; top: 40%; right: 30%; opacity: 0.2; animation: float3 35s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(100px, 80px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, -60px) scale(1.15); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-120px, 100px) scale(0.9); } }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-dark .section-title,
.section-accent .section-title { color: #fff; }
.section-title.center { text-align: center; }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 20px;
}
.lead.center { text-align: center; max-width: 700px; margin: 20px auto 0; }
.lead.muted { color: var(--ink-muted); margin-top: 16px; }
.section-dark .lead { color: rgba(255,255,255,0.78); }
.section-dark .lead.muted { color: rgba(255,255,255,0.55); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,22,40,.2);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,74,.35); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(248, 245, 240, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(248, 245, 240, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .logo-dark { display: none; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.lang-btn { color: var(--ink-muted); padding: 4px 2px; font-weight: 600; font-size: 13px; }
.lang-btn.active { color: var(--ink); }
.lang-btn:hover { color: var(--accent); }

.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-accent {
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-accent::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124,92,255,.3), transparent 50%);
  pointer-events: none;
}

.section-header { text-align: center; max-width: 800px; margin: 0 auto 72px; }
.section-header .eyebrow { justify-content: center; }
.section-dark .eyebrow { color: var(--accent-2); }
.section-accent .eyebrow { color: #fff; }
.section-accent .eyebrow::before { background: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; }
.hero-subtitle {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 100px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.5px; }

.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  overflow: hidden;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--ink) 50%, transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- ABOUT ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.value-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255,107,74,0.05);
}
.value-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.value-card p { color: rgba(255,255,255,0.65); font-size: 15px; }

/* ---------- EXPERTISE ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.expertise-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background .3s ease;
  cursor: default;
}
.expertise-card:hover { background: #fff; }
.expertise-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.expertise-icon svg { width: 24px; height: 24px; }
.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.expertise-card p { color: var(--ink-muted); font-size: 15px; }

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.product-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  color: var(--accent);
  padding: 6px 10px;
  background: rgba(255,107,74,0.1);
  border-radius: 4px;
  margin-bottom: 20px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.product-card p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 28px;
  min-height: 48px;
}
.product-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  transition: gap .2s ease;
}
.product-link:hover { gap: 12px; }
.product-link svg { width: 16px; height: 16px; }

.product-visual { margin-top: 32px; }
.mock-browser {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  height: 140px;
  display: flex;
  flex-direction: column;
}
.mock-bar {
  display: flex; gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
}
.mock-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mock-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.1));
  opacity: 0.5;
}
.mock-row.short { width: 60%; }
.mock-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 6px; flex: 1;
}
.mock-grid div { background: rgba(255,255,255,0.08); border-radius: 4px; }
.mock-pulse {
  height: 40px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.mock-chart { display: flex; gap: 6px; align-items: flex-end; height: 60px; }
.mock-chart div {
  flex: 1; background: var(--accent); border-radius: 3px 3px 0 0;
  opacity: 0.5;
}
.mock-chart div:nth-child(1) { height: 40%; }
.mock-chart div:nth-child(2) { height: 70%; }
.mock-chart div:nth-child(3) { height: 55%; }
.mock-chart div:nth-child(4) { height: 90%; }
.mock-chart div:nth-child(5) { height: 60%; }
.mock-bracket {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.mock-bracket span {
  height: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), var(--accent));
  border-radius: 4px;
}

/* ---------- SERVICES ---------- */
.services-list { max-width: 900px; margin: 0 auto; }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding .3s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 16px; }
.service-num {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.service-row h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.service-row p { color: var(--ink-soft); font-size: 16px; }

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  position: relative;
  z-index: 1;
}
.big-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform .3s ease;
}
.big-stat:hover { transform: translateY(-6px); }
.big-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.big-label { font-size: 14px; font-weight: 500; opacity: 0.9; }

/* ---------- CONTACT ---------- */
.contact-info {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.contact-info h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-info p { color: rgba(255,255,255,0.7); margin-bottom: 16px; font-size: 15px; }
.contact-email {
  color: #fff; font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s;
}
.contact-email:hover { color: var(--accent); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; }
.form-row span {
  display: block;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6B4A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(74, 182, 255, 0.12);
  border: 1px solid rgba(74, 182, 255, 0.3);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #05101E;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { max-width: 280px; margin-top: 16px; font-size: 14px; }
.footer-logo { height: 44px; width: auto; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer-entity { color: rgba(255,255,255,0.4); }

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .values-grid, .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 80px 0; }
  .hero { min-height: 90vh; padding: 120px 0 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .values-grid, .expertise-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: auto 1fr; gap: 16px; }
  .service-row p { grid-column: 1 / -1; }
  .contact-form { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; }
  .lang-switch { font-size: 12px; }
  .nav-logo img { height: 36px; }
  .nav-right .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .mesh-blob { animation: none; }
}

/* ---------- Mobile menu open state ---------- */
body.menu-open { overflow: hidden; }
body.menu-open .nav-links {
  display: flex;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 40px 24px;
  gap: 8px;
  z-index: 99;
}
body.menu-open .nav-links a {
  font-size: 24px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
