*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --accent: #0066ff;
  --accent-soft: #e8f0ff;
  --navy: #003085;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --border-hover: #0066ff;
  --white: #ffffff;
  --topbar-bg: #111827;
  --footer-bg: #111827;
  --footer-text: #9ca3af;
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-card: #16161f;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.1);
  --text: #f0f0f5;
  --text-2: #a0a0b0;
  --text-3: #5a5a6e;
  --border: #222230;
  --border-hover: #3b82f6;
  --topbar-bg: #06060a;
  --footer-bg: #06060a;
  --footer-text: #5a5a6e;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--topbar-bg);
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar__label { color: rgba(255,255,255,.7); font-weight: 500; }
.top-bar__actions { display: flex; gap: 24px; align-items: center; }
.top-bar__actions a { color: rgba(255,255,255,.7); transition: color .2s; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.top-bar__actions a:hover { color: #fff; }

/* ===== NAV ===== */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: background .3s;
}
.nav .container { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.nav__logo svg { height: 28px; width: auto; }
.nav__logo .logo-text { fill: var(--text); transition: fill .3s; }

.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links li { position: relative; }
.nav__links > li > a {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-2); transition: color .2s; padding: 24px 0;
}
.nav__links > li > a:hover, .nav__links > li:hover > a { color: var(--accent); }

.nav__dropdown {
  position: absolute; top: 100%; left: -16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 0; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s; list-style: none; z-index: 999;
}
.nav__links > li:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text-2); transition: all .2s; }
.nav__dropdown li a:hover { color: var(--accent); background: var(--accent-soft); padding-left: 24px; }

.nav__right { display: flex; align-items: center; gap: 12px; }

.nav__cta {
  background: var(--accent); color: #fff !important; padding: 10px 24px !important;
  border-radius: 8px; font-weight: 600 !important; display: inline-block;
  transition: opacity .2s;
}
.nav__cta:hover { opacity: .85; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 100px; padding: 5px 14px; font-size: 12px; font-weight: 600;
  color: var(--accent); margin-bottom: 24px; font-family: var(--mono);
}
.hero__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s infinite;
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.08;
  margin-bottom: 20px; letter-spacing: -.03em;
}
.hero__title span { color: var(--accent); }
.hero__desc {
  font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 36px; max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { opacity: .85; }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.hero__visual { position: relative; }
.hero__illustration {
  width: 100%; max-width: 520px; margin: 0 auto; display: block;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 44px 0;
  transition: background .3s;
}
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats-bar__item h3 { font-size: 2.25rem; font-weight: 800; color: var(--accent); }
.stats-bar__item p { font-size: 12px; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ===== SECTIONS ===== */
.section { padding: 88px 0; transition: background .3s; }
.section--alt { background: var(--bg-alt); }

.section__header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 14px; font-family: var(--mono);
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 14px; letter-spacing: -.02em; }
.section__desc { font-size: 15px; color: var(--text-2); line-height: 1.75; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.service-card {
  background: var(--bg-card); padding: 36px; transition: all .2s; position: relative;
}
.service-card:hover { background: var(--accent-soft); }
.service-card__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent);
}
.service-card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card__text { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent); transition: gap .2s; font-family: var(--mono);
}
.service-card__link:hover { gap: 10px; }
.service-card__link svg { width: 14px; height: 14px; }

/* ===== BENEFITS ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-card {
  display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: border-color .2s;
}
.benefit-card:hover { border-color: var(--accent); }
.benefit-card__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.benefit-card__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.benefit-card__text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.process-card {
  text-align: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 16px; transition: border-color .2s;
}
.process-card:hover { border-color: var(--accent); }
.process-card__num {
  font-size: 2rem; font-weight: 800; color: var(--accent); opacity: .2; line-height: 1; margin-bottom: 12px;
  font-family: var(--mono);
}
.process-card__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--accent);
}
.process-card__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ===== TECH LOGOS ===== */
.tech-section { padding: 88px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-logos-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 900px; margin: 0 auto;
}
.tech-logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 16px; transition: border-color .2s;
}
.tech-logo-card:hover { border-color: var(--accent); }
.tech-logo-card svg { height: 32px; width: auto; }
.tech-logo-card span { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

/* Second row: 4 logos centered */
.tech-logos-grid-2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 720px; margin: 16px auto 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; transition: border-color .2s;
}
.testimonial-card:hover { border-color: var(--accent); }
.testimonial-card__stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card__quote { font-size: 14px; color: var(--text-2); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: 14px; }
.testimonial-card__role { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ===== CTA ===== */
.cta { background: var(--bg-alt); padding: 88px 0; border-top: 1px solid var(--border); transition: background .3s; }
.cta .container { text-align: center; }
.cta__title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 14px; letter-spacing: -.02em; }
.cta__desc { font-size: 15px; color: var(--text-2); max-width: 500px; margin: 0 auto 36px; line-height: 1.75; }
.cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.cta__channels { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta__channel {
  display: flex; align-items: center; gap: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px;
  transition: border-color .2s; min-width: 240px;
}
.cta__channel:hover { border-color: var(--accent); }
.cta__channel-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.cta__channel-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.cta__channel-value { font-weight: 600; font-size: 14px; margin-top: 2px; }

/* ===== FOOTER ===== */
.footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: 20px; }
.footer__logo svg { height: 26px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: var(--footer-text); transition: all .2s;
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 13px; color: var(--footer-text); }
.footer__links { display: flex; gap: 20px; list-style: none; }
.footer__links a { font-size: 13px; color: var(--footer-text); transition: color .2s; }
.footer__links a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.active {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px; gap: 0; z-index: 999;
  }
  .nav__links.active > li { border-bottom: 1px solid var(--border); }
  .nav__links.active > li > a { display: block; padding: 14px 0; }
  .nav__links.active .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; background: transparent; padding: 0 0 8px 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .tech-logos-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-logos-grid-2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .hero__title { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { flex-direction: column; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-bar__item h3 { font-size: 1.6rem; }
  .cta__channels { flex-direction: column; align-items: center; }
  .cta__channel { min-width: auto; width: 100%; max-width: 320px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .footer__top, .footer__bottom { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .top-bar .container { justify-content: center; text-align: center; }
  .tech-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-logos-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 56px 0; }
  .tech-section { padding: 56px 0; }
}