:root {
  --bg: #07111f;
  --bg-soft: rgba(255,255,255,0.07);
  --panel: rgba(9, 20, 39, 0.72);
  --panel-strong: rgba(10, 19, 36, 0.88);
  --line: rgba(255,255,255,0.12);
  --text: #e9f3ff;
  --muted: #9cb0cb;
  --accent: #1f75ff;
  --accent-2: #14d6ff;
  --accent-3: #6ce6ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

body.light {
  --bg: #f5fbff;
  --bg-soft: rgba(255,255,255,0.66);
  --panel: rgba(255,255,255,0.76);
  --panel-strong: rgba(255,255,255,0.88);
  --line: rgba(13, 45, 89, 0.1);
  --text: #0b1730;
  --muted: #5e7090;
  --shadow: 0 24px 60px rgba(32, 79, 145, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(32, 117, 255, 0.18), transparent 30%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-shell { position: relative; isolation: isolate; }
.background-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.85), transparent 85%);
  pointer-events: none;
}
.orb {
  position: fixed; border-radius: 999px; filter: blur(30px); opacity: 0.35; pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.orb-a { width: 320px; height: 320px; background: #0f8dff; top: 6%; right: -8%; }
.orb-b { width: 240px; height: 240px; background: #0fdcff; bottom: 14%; left: -6%; animation-delay: -6s; }
.orb-c { width: 280px; height: 280px; background: #245cf5; top: 45%; left: 45%; opacity: 0.18; animation-delay: -10s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0, -28px, 0) scale(1.08); }
}

.glass, .glass-soft {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.glass { background: var(--panel); }
.glass-soft { background: var(--bg-soft); }

.topbar {
  position: sticky; top: 16px; z-index: 40;
  width: min(1200px, calc(100% - 24px)); margin: 18px auto 0;
  border-radius: 24px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px; background: white; padding: 7px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.04rem; }
.brand-text span { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

.nav-links { display: flex; gap: 22px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.currency-switch { display: flex; padding: 4px; border-radius: 999px; }
.currency-btn, .theme-toggle, .menu-btn, .icon-btn {
  border: 0; cursor: pointer; color: var(--text);
  background: transparent;
}
.currency-btn {
  padding: 10px 12px; border-radius: 999px; color: var(--muted);
}
.currency-btn.active { background: rgba(30, 116, 255, 0.18); color: var(--text); }
.theme-toggle, .menu-btn, .icon-btn {
  width: 44px; height: 44px; border-radius: 14px; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.menu-btn { display: none; }

.hero {
  width: min(1200px, calc(100% - 24px)); margin: 36px auto 0; padding: 34px 0 24px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
}
.eyebrow {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: rgba(31,117,255,0.15); color: #8bdfff; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid rgba(140,224,255,0.18);
}
body.light .eyebrow { color: #1566d9; }
.hero h1, .section-head h2 { margin: 14px 0 14px; line-height: 0.95; letter-spacing: -0.04em; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.1rem); max-width: 12ch; }
.hero p { font-size: 1.07rem; color: var(--muted); max-width: 62ch; line-height: 1.75; }
.hero-actions, .hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 16px; font-weight: 700; border: 1px solid var(--line);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.btn-secondary { background: var(--bg-soft); }
.compact { padding: 12px 16px; border-radius: 12px; }
.stat { padding: 16px 18px; border-radius: 20px; min-width: 180px; }
.stat strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.device-stack { position: relative; width: min(100%, 520px); padding: 36px; border-radius: 36px; overflow: hidden; }
.device-stack::before {
  content: ''; position: absolute; inset: 0; background:
    linear-gradient(135deg, rgba(31,117,255,0.18), rgba(20,214,255,0.08)),
    radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 40%);
}
.device-main { position: relative; z-index: 1; background: rgba(5,12,24,0.74); border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; overflow: hidden; }
body.light .device-main { background: rgba(255,255,255,0.75); }
.device-topline { height: 8px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.device-content { padding: 28px; }
.mini-badge {
  display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(31,117,255,0.14);
  color: #8ee6ff; margin-bottom: 14px; font-size: 0.84rem;
}
.mini-list { display: grid; gap: 14px; padding: 0; margin: 22px 0 0; list-style: none; }
.mini-list li {
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
body.light .mini-list li { background: rgba(0,0,0,0.03); }
.floating-card {
  position: absolute; right: -10px; bottom: 34px; z-index: 2; width: 280px;
  padding: 18px; border-radius: 22px; display: flex; gap: 14px; animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform: translateY(0)} 50%{transform: translateY(-12px)} }
.pulse-dot {
  width: 12px; height: 12px; border-radius: 999px; background: #4cffb0; margin-top: 6px;
  box-shadow: 0 0 0 0 rgba(76,255,176,0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70%{box-shadow:0 0 0 10px rgba(76,255,176,0)} 100%{box-shadow:0 0 0 0 rgba(76,255,176,0)} }
.ring {
  position: absolute; border-radius: 999px; border: 1px solid rgba(140,223,255,0.22);
}
.ring-one { inset: 16px; animation: spin 30s linear infinite; }
.ring-two { inset: 52px; animation: spinReverse 24s linear infinite; }
@keyframes spin { from {transform: rotate(0deg)} to {transform: rotate(360deg)} }
@keyframes spinReverse { from {transform: rotate(360deg)} to {transform: rotate(0deg)} }

.section {
  width: min(1200px, calc(100% - 24px)); margin: 0 auto; padding: 86px 0 16px;
}
.section-head { max-width: 900px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 13ch; }
.section-head p { color: var(--muted); line-height: 1.75; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.currency-note { border-radius: 16px; padding: 14px 16px; color: var(--muted); }

.about-grid, .services-grid, .solutions-grid, .contact-grid {
  display: grid; gap: 18px;
}
.about-grid { grid-template-columns: repeat(3, 1fr); }
.panel, .service-card, .solution, .contact-card, .assistant-shell, .assistant-info, .pricing-board { border-radius: 28px; }
.panel { padding: 28px; }
.panel p, .service-body p, .solution p { color: var(--muted); line-height: 1.7; }

.services-grid { grid-template-columns: repeat(2, 1fr); }
.service-card { overflow: hidden; position: relative; }
.service-card.featured { outline: 1px solid rgba(20,214,255,0.35); }
.service-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-body { padding: 24px 24px 28px; }
.service-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31,117,255,0.2), rgba(20,214,255,0.18));
  margin-bottom: 16px; font-size: 1.35rem;
}
.service-body h3 { font-size: 1.55rem; margin: 0 0 12px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.price-line span { color: var(--muted); }
.price-line strong, .pricing-row strong { font-size: 2rem; letter-spacing: -0.03em; }
.service-body ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 10px; }

.assistant-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: start; }
.assistant-info, .assistant-shell { padding: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.chip {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer;
}
body.light .chip { background: rgba(0,0,0,0.03); }
.info-block + .info-block { margin-top: 16px; }
.info-block h4 { margin-bottom: 8px; }
.info-block p { color: var(--muted); line-height: 1.7; margin: 0; }
.assistant-header {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.assistant-header span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.assistant-actions { display: flex; gap: 10px; }
.chat-window {
  height: 480px; overflow: auto; padding: 20px 6px 4px; display: flex; flex-direction: column; gap: 14px;
}
.message {
  max-width: 82%; padding: 14px 16px; border-radius: 18px; line-height: 1.6;
  border: 1px solid var(--line);
}
.message.bot { align-self: flex-start; background: rgba(255,255,255,0.05); }
.message.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.message.typing { color: var(--muted); font-style: italic; }
.chat-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); align-items: center; }
.chat-controls input {
  width: 100%; min-width: 0; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text); padding: 16px;
}
body.light .chat-controls input { background: rgba(0,0,0,0.025); }
.large { width: 52px; height: 52px; }

.solutions-grid { grid-template-columns: repeat(3, 1fr); }
.solution { overflow: hidden; }
.solution img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.solution div { padding: 22px; }
.solution h3 { margin-top: 0; }

.pricing-board { padding: 14px 22px; }
.pricing-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row span { font-size: 1.05rem; font-weight: 600; }

.contact-section { padding-bottom: 90px; }
.contact-card { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.contact-item { padding: 20px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
body.light .contact-item { background: rgba(0,0,0,0.03); }
.contact-item span { display: block; color: var(--muted); margin-bottom: 8px; }

.footer {
  width: min(1200px, calc(100% - 24px)); margin: 0 auto; padding: 0 0 46px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 14px; background: white; padding: 6px; }
.footer-brand strong { display: block; color: var(--text); }
.footer-brand span { font-size: 0.94rem; }

@media (max-width: 1040px) {
  .hero, .assistant-layout, .contact-card { grid-template-columns: 1fr; }
  .about-grid, .solutions-grid, .services-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: 15ch; }
  .hero-visual { min-height: 460px; }
}

@media (max-width: 780px) {
  .topbar { padding: 12px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 12px); display: none; flex-direction: column;
    padding: 16px; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 22px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: grid; place-items: center; }
  .currency-switch { display: none; }
  .about-grid, .solutions-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-head { flex-direction: column; align-items: start; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 3rem; }
  .section { padding-top: 70px; }
  .chat-window { height: 420px; }
  .message { max-width: 90%; }
  .footer { flex-direction: column; align-items: flex-start; }
}
