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

:root {
  --accent: #078b80;
  --accent-dark: #056860;
  --accent-on-dark: #5eead4;
  --accent-tint: #e6f5f3;
  --ink: #0b172a;
  --ink-soft: #334155;
  --line: #cbd5e1;
  --surface: #ffffff;
  --canvas: #ffffff;
  --muted: #f1f5f9;
  --footer: #0b172a;
  --radius: 12px;
  --shadow-sm: 0 1px 0 var(--line);
  --shadow-md: 0 2px 0 var(--line);
  --shadow-lg: 0 4px 0 var(--line);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Heebo', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: 'Heebo', 'Outfit', system-ui, sans-serif;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Nav */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--ink);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}

.logo-word {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.logo-dot {
  color: var(--accent);
}

.logo-word--footer {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.brand-mark-img {
  width: 64px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}

.brand-word {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.lang-toggle {
  border: 2px solid var(--ink);
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.lang-toggle:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background: var(--canvas);
  pointer-events: none;
}

.hero-atmosphere::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border: 3px solid var(--ink);
  border-radius: 50%;
  opacity: 0.08;
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 70% 40%, black, transparent);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
  max-width: 18ch;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 36ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.voice-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.voice-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.voice-links line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: link-flow 2.2s linear infinite;
}

.voice-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--ink);
  opacity: 0.15;
  animation: ring-breathe 5s ease-in-out infinite;
}

.voice-ring-1 { width: 62%; height: 62%; animation-delay: 0s; }
.voice-ring-2 { width: 78%; height: 78%; animation-delay: 0.6s; }
.voice-ring-3 { width: 94%; height: 94%; animation-delay: 1.2s; }

.voice-core {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.voice-stage:hover .voice-core {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
}

.voice-bars span {
  width: 7px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: center;
  animation: bar 1.1s ease-in-out infinite;
}

.voice-bars span:nth-child(1) { height: 18px; animation-delay: 0s; }
.voice-bars span:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.voice-bars span:nth-child(3) { height: 42px; animation-delay: 0.2s; }
.voice-bars span:nth-child(4) { height: 28px; animation-delay: 0.3s; }
.voice-bars span:nth-child(5) { height: 46px; animation-delay: 0.15s; }
.voice-bars span:nth-child(6) { height: 24px; animation-delay: 0.25s; }
.voice-bars span:nth-child(7) { height: 16px; animation-delay: 0.05s; }

.system-chip {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  animation: float-chip 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.system-chip:hover {
  background: var(--accent-tint);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent);
}

.chip-crm { top: 14%; left: 4%; animation-delay: 0s; }
.chip-erp { top: 18%; right: 2%; animation-delay: 1s; }
.chip-phone { bottom: 18%; left: 8%; animation-delay: 1.8s; }
.chip-api { bottom: 14%; right: 6%; animation-delay: 0.7s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.btn[hidden],
[hidden] {
  display: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-tint);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--accent);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-inline: auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Demo */
.demo {
  background: var(--muted);
  border-block: 2px solid var(--ink);
}

.demo-panel {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
}

.btn-mic {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-mic::before {
  display: none;
}

.btn-mic:hover {
  background: var(--accent-dark);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-mic.is-live {
  animation: mic-live 1.4s ease-in-out infinite;
}

.btn-mic__icon {
  width: 34px;
  height: 34px;
  z-index: 1;
}

.btn-mic__waves {
  position: absolute;
  inset: 0;
  display: none;
}

.btn-mic.is-live .btn-mic__waves {
  display: block;
}

.btn-mic__waves i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  animation: wave-out 1.8s ease-out infinite;
}

.btn-mic__waves i:nth-child(2) { animation-delay: 0.45s; }
.btn-mic__waves i:nth-child(3) { animation-delay: 0.9s; }

.demo-status {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.demo-hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.demo-actions {
  display: flex;
  gap: 0.75rem;
}

/* Features */
.features {
  background: var(--canvas);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.04);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Connect */
.connect {
  background: var(--muted);
  border-block: 2px solid var(--ink);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.connect-card {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--ink);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--accent);
}

.connect-number {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 1rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.connect-card h3 {
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.connect-card p {
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.connect-list {
  list-style: none;
  position: relative;
}

.connect-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: var(--ink-soft);
}

[dir="rtl"] .connect-list li {
  padding: 0.4rem 1.35rem 0.4rem 0;
}

.connect-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--ink);
}

[dir="rtl"] .connect-list li::before {
  left: auto;
  right: 0;
}

/* Use cases */
.use-cases {
  background: var(--canvas);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.use-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.use-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.use-card p {
  color: var(--ink-soft);
}

/* Contact */
.contact {
  background: var(--muted);
  border-top: 2px solid var(--ink);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.contact-info > p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

.contact-form {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 6px 6px 0 var(--accent);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent);
}

.status-message {
  margin-bottom: 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.25s ease;
}

.status-message:not(:empty) {
  max-height: 120px;
  opacity: 1;
  padding: 0.75rem 0.9rem;
}

.status-info {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}

.status-success {
  background: #dcfce7;
  color: #166534;
  border: 2px solid #166534;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #991b1b;
}

/* Footer */
.footer {
  background: var(--footer);
  color: #fff;
  padding: 3.5rem 0 1.75rem;
  border-top: 3px solid var(--accent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section p {
  margin-top: 0.85rem;
  color: #e2e8f0;
  max-width: 32ch;
}

.footer-section h4 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.55rem;
}

.footer-section a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-on-dark);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* RTL */
[dir="rtl"] .nav-menu a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle {
  max-width: none;
}

/* Animations */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.82); }
}

@keyframes logo-bar {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1); }
}

@keyframes link-flow {
  to { stroke-dashoffset: -28; }
}

@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.03); opacity: 0.22; }
}

@keyframes bar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mic-live {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 6px 6px 0 var(--ink); }
}

@keyframes wave-out {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .connect-grid,
  .use-grid,
  .contact-wrapper,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .voice-stage {
    width: min(100%, 320px);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto;
    left: -100%;
    flex-direction: column;
    background: var(--surface);
    padding: 1.25rem 0 1.5rem;
    gap: 0.85rem;
    box-shadow: var(--shadow-md);
    transition: left 0.3s ease, right 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  [dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
  }

  [dir="rtl"] .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  section {
    padding: 3.5rem 0;
  }
}
