html.i18n-pending body {
  visibility: hidden;
}

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

:root {
  color-scheme: light dark;
  --bg: #0b1017;
  --bg-elevated: #111827;
  --surface: #151f2e;
  --surface2: #1e2a3d;
  --text: #e8eef5;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --border: #2a3a52;
  --success: #34d399;
  --danger: #f87171;
  --topbar-accent: #38bdf8;
  --topbar-accent2: #818cf8;
  --hero-gradient: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.14));
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface2: #eef3f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbe3ee;
    --accent-glow: rgba(37, 99, 235, 0.18);
    --hero-gradient: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(79, 70, 229, 0.08));
    --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .legal-doc,
html[dir="rtl"] .footer-grid {
  text-align: right;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.topbar-brand:hover {
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-fill {
  flex: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--surface2);
  text-decoration: none;
}

.lang-select,
.btn,
.form-field input,
.form-field textarea {
  font: inherit;
}

.lang-select {
  min-height: 2.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--topbar-accent), var(--topbar-accent2));
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.hero-card,
.feature-card,
.alpha-card,
.contact-card,
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}

.hero-card {
  padding: 1.5rem;
  background: var(--hero-gradient), var(--surface);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--topbar-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-phone {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
}

.hero-phone strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  padding: 1.5rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(12px);
}

.phone-mock {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(100%, 280px);
  padding: 1.25rem;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--surface2), var(--bg-elevated));
  border: 1px solid var(--border);
}

.phone-screen {
  border-radius: 18px;
  background: var(--bg);
  padding: 1rem;
  min-height: 220px;
}

.wave-line {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  background: linear-gradient(90deg, var(--topbar-accent), var(--topbar-accent2));
  opacity: 0.85;
}

.wave-line:nth-child(2) { width: 88%; opacity: 0.65; }
.wave-line:nth-child(3) { width: 72%; opacity: 0.45; }
.wave-line:nth-child(4) { width: 92%; opacity: 0.55; }

.section {
  padding: 2.5rem 0 0.5rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.15rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--topbar-accent);
  font-weight: 700;
}

.alpha-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--topbar-accent) 12%, var(--surface)), var(--surface));
}

.alpha-card h2 {
  margin-top: 0;
}

.alpha-list {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.2rem;
  color: var(--muted);
}

.alpha-list li + li {
  margin-top: 0.35rem;
}

.cta-band {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
}

.contact-card,
.contact-aside {
  padding: 1.35rem;
}

.contact-aside {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.contact-aside ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-aside li + li {
  margin-top: 0.65rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.lang-select:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.form-status--success {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
}

.form-status--error {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}

.legal-doc {
  padding: 1.5rem 1.65rem;
}

.legal-doc h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul {
  padding-inline-start: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 1.25rem 2rem;
}

.footer-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

.footer-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }

  .header-actions {
    margin-inline-start: auto;
  }
}

@media (max-width: 560px) {
  .site-main {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
