@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --brand-blue: #3898D4;
  --deep-navy: #0D1117;
  --mid-navy: #1A2332;
  --white: #FFFFFF;
  --light-grey: #F4F6F8;
  --text-dark: #3D3D3D;
  --border: rgba(56,152,212,0.2);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.sora { font-family: 'Sora', sans-serif; }
h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(36px, 5.5vw, 66px); font-weight: 300; }
h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 500; }
h3 { font-size: 20px; font-weight: 500; }
p { max-width: 68ch; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }

/* ─── BADGE / PILL ───────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.badge-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-primary:hover { transform: scale(1.03); background: #4aa8e0; }
.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}
.btn-ghost:hover { background: var(--brand-blue); color: var(--white); }
.btn-dark {
  background: var(--deep-navy);
  color: var(--white);
}
.btn-dark:hover { transform: scale(1.03); }

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
.navbar.scrolled {
  background: var(--deep-navy);
  border-bottom: 1px solid var(--brand-blue);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-shrink: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  gap: 2px;
}
.lang-switcher a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color var(--transition);
}
.lang-switcher a:hover, .lang-switcher a.active { color: var(--brand-blue); }
.nav-cta { padding: 8px 18px; font-size: 14px; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu — hidden by default on ALL screen sizes */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--brand-blue); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 12px; }

@media (max-width: 1080px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: flex; }
  .nav-right { gap: 8px; }
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--brand-blue); }
.typed-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  margin-bottom: 8px;
}
.typed-text { color: var(--brand-blue); font-weight: 500; }
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--brand-blue);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(56,152,212,0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ─── SERVICES ───────────────────────────────────────── */
.services { background: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--text-dark); margin-bottom: 12px; }
.section-header p { color: #666; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #e0e4e8;
  transition: background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(56,152,212,0.3);
}
.service-card:hover::before { background: var(--brand-blue); }
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}
.service-card h3 { color: var(--text-dark); margin-bottom: 10px; font-size: 19px; }
.service-card p { color: #666; font-size: 15px; line-height: 1.65; }

/* ─── STATS ──────────────────────────────────────────── */
.stats { background: var(--mid-navy); }
.stats .section-header h2 { color: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-item { padding: 10px; }
.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-value { color: var(--white); }
.stat-suffix { color: var(--brand-blue); font-size: 0.7em; font-weight: 500; }
.stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat-divider {
  width: 30px;
  height: 1px;
  background: var(--brand-blue);
  margin: 12px auto 0;
  opacity: 0.5;
}

/* ─── WHY ────────────────────────────────────────────── */
.why { background: var(--light-grey); }
.why .section-header h2 { color: var(--text-dark); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 28px 28px 28px;
  border: 1px solid #e8ecf0;
  display: flex;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}
.feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(56,152,212,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--text-dark); }
.feature-body p { font-size: 14px; color: #666; line-height: 1.6; max-width: none; }

/* ─── AI SECTION ─────────────────────────────────────── */
.ai-section { background: var(--deep-navy); }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
.ai-content .badge { margin-bottom: 20px; }
.ai-content h2 { color: var(--white); margin-bottom: 16px; }
.ai-content > p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 32px; }
.ai-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.ai-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}
.ai-points li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.ai-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
}
.ai-canvas-wrap {
  width: 100%;
  height: 100%;
  background: var(--mid-navy);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
#ai-canvas { width: 100%; height: 100%; display: block; }
.ai-badge-float {
  position: absolute;
  background: var(--mid-navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.ai-badge-float:nth-child(2) { bottom: 24px; left: -20px; }
.ai-badge-float:nth-child(3) { top: 24px; right: -20px; }
.ai-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── CONTACT ────────────────────────────────────────── */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h2 { color: var(--text-dark); margin-bottom: 14px; }
.contact-info > p { color: #666; margin-bottom: 36px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-size: 15px;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(56,152,212,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #e0e4e8;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(56,152,212,0.12);
}
.form-group textarea { min-height: 130px; }
.form-submit { align-self: flex-start; }
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-message.success {
  background: rgba(56,152,212,0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(56,152,212,0.3);
}
.form-message.error {
  background: rgba(220,50,50,0.07);
  color: #c0392b;
  border: 1px solid rgba(220,50,50,0.2);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--deep-navy); border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: var(--brand-blue); }

/* ─── SCROLL ANIMATIONS ──────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.08s; }
[data-animate-delay="2"] { transition-delay: 0.16s; }
[data-animate-delay="3"] { transition-delay: 0.24s; }
[data-animate-delay="4"] { transition-delay: 0.32s; }
[data-animate-delay="5"] { transition-delay: 0.40s; }
[data-animate-delay="6"] { transition-delay: 0.48s; }

/* ─── SECTION DIVIDER ────────────────────────────────── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--brand-blue);
  margin: 16px auto 0;
}

/* ─── UTILITY ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blue { color: var(--brand-blue); }

/* Logo image */
.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 42px;
}
.nav-logo-text {
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.3px;
}
