:root {
  --bg: #081017;
  --bg-soft: #0d1822;
  --panel: rgba(18, 31, 43, 0.86);
  --panel-strong: #132332;
  --text: #f5f8fb;
  --muted: #9fb0c0;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #67e8c4;
  --accent-strong: #2fc99f;
  --accent-ink: #04251c;
  --blue: #79a9ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(55, 178, 255, 0.11), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(103, 232, 196, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 74px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 23, 0.76);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(103, 232, 196, 0.5);
  border-radius: 9px;
  color: var(--accent);
  background: rgba(103, 232, 196, 0.07);
  font-size: 0.92rem;
}
.nav { justify-self: center; display: flex; gap: 1.8rem; color: var(--muted); font-size: 0.92rem; }
.nav a:hover { color: var(--text); }
.language-switcher { display: flex; gap: 0.32rem; }
.language-switcher button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.35rem 0.52rem;
  color: var(--muted);
  background: transparent;
}
.language-switcher button[aria-pressed="true"] { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.05); }

.section-shell { width: min(1180px, 92vw); margin-inline: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 720px;
  padding-block: 6rem 5rem;
}
.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-lead { max-width: 690px; margin-bottom: 2rem; color: #c5d1dc; font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.3rem; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 1.05rem;
  font-weight: 750;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #7df0cf; }
.button.secondary { background: rgba(255,255,255,0.045); }
.button.secondary:hover { border-color: rgba(255,255,255,0.23); }
.hero-note { margin: 0; color: var(--muted); font-size: 0.88rem; }

.product-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 39, 53, 0.96), rgba(11, 21, 30, 0.98));
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 46px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}
.window-dots { display: flex; gap: 0.4rem; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.24); }
.window-title { justify-self: center; }
.workspace { position: relative; display: grid; grid-template-columns: 58px 1fr; min-height: 430px; }
.toolrail { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 0.6rem; border-right: 1px solid var(--line); }
.toolrail span { display: grid; place-items: center; min-height: 37px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 0.66rem; }
.schematic { position: relative; min-height: 430px; background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 18px 18px; }
.component { position: absolute; display: grid; place-items: center; min-width: 62px; min-height: 38px; padding: 0.35rem; border: 1px solid rgba(103,232,196,0.46); border-radius: 7px; background: #101e29; color: #d9fff3; font-size: 0.72rem; font-weight: 750; }
.resistor { left: 15%; top: 23%; }
.transistor { left: 46%; top: 42%; border-radius: 50%; min-width: 58px; min-height: 58px; }
.output { right: 11%; top: 25%; border-color: rgba(121,169,255,0.55); color: #dce8ff; }
.wire { position: absolute; height: 1px; background: rgba(103,232,196,0.55); transform-origin: left center; }
.w1 { left: 25%; top: 31%; width: 30%; transform: rotate(29deg); }
.w2 { left: 56%; top: 48%; width: 26%; transform: rotate(-35deg); }
.w3 { left: 19%; top: 32%; width: 28%; transform: rotate(91deg); }
.node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(103,232,196,0.08); }
.n1 { left: 19%; top: 30%; }.n2 { left: 53%; top: 47%; }.n3 { right: 20%; top: 31%; }
.results-card { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 210px; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(8,16,23,0.88); backdrop-filter: blur(14px); }
.result-label { margin-bottom: 0.8rem; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.metric { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.45rem; font-size: 0.82rem; }
.metric span { color: var(--muted); }
.sparkline { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 0.8rem; }
.sparkline i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--accent-strong), var(--blue)); opacity: 0.88; }
.sparkline i:nth-child(1){height:32%}.sparkline i:nth-child(2){height:55%}.sparkline i:nth-child(3){height:43%}.sparkline i:nth-child(4){height:78%}.sparkline i:nth-child(5){height:66%}.sparkline i:nth-child(6){height:91%}.sparkline i:nth-child(7){height:73%}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.trust-strip span { padding: 1.15rem 1rem; text-align: center; border-inline-end: 1px solid var(--line); font-size: 0.84rem; }
.trust-strip span:last-child { border-inline-end: 0; }
.section-block { padding-block: 7rem; }
.section-heading { max-width: 780px; margin-bottom: 3rem; }
.section-heading.compact { max-width: 640px; }
h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -0.045em; }
.section-heading p { color: var(--muted); font-size: 1.03rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 240px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.feature-card:hover { background: rgba(255,255,255,0.032); }
.feature-index { margin-bottom: 3.3rem; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.12em; }
.feature-card h3 { margin-bottom: 0.55rem; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.workflow-section { border-top: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.workflow-step { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); }
.workflow-step > span { display: inline-block; margin-bottom: 3rem; color: var(--accent); font-size: 0.74rem; }
.workflow-step h3 { margin-bottom: 0.55rem; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.workflow-arrow { align-self: center; color: rgba(255,255,255,0.24); font-size: 1.5rem; }
.early-access-card { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 4rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(103,232,196,0.28); border-radius: 20px; background: linear-gradient(140deg, rgba(103,232,196,0.075), rgba(121,169,255,0.04)); }
.early-access-card p { color: var(--muted); }
.ea-form { align-self: center; }
.ea-form > label:first-child { display: block; margin-bottom: 0.5rem; font-size: 0.84rem; color: #c9d4de; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; }
.form-row input { min-height: 46px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.72rem 0.85rem; outline: none; color: var(--text); background: rgba(8,16,23,0.72); }
.form-row input:focus { border-color: rgba(103,232,196,0.62); box-shadow: 0 0 0 3px rgba(103,232,196,0.07); }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; margin-top: 0.9rem; color: var(--muted); font-size: 0.8rem; }
.consent-row input { margin-top: 0.25rem; }
.form-status { min-height: 1.4rem; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.8rem; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff9c9c; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a:hover { color: var(--text); }

html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[dir="rtl"] .product-panel { transform: perspective(1400px) rotateY(3deg) rotateX(1deg); }
html[dir="rtl"] .workflow-arrow { transform: scaleX(-1); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .nav { display: none; }
  .language-switcher { justify-self: end; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .product-panel { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-arrow { display: none; }
  .early-access-card { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 4vw; }
  .brand-name { font-size: 0.9rem; }
  .hero { padding-block: 3.4rem; }
  h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .workspace { grid-template-columns: 46px 1fr; min-height: 340px; }
  .schematic { min-height: 340px; }
  .results-card { width: 170px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip span:nth-child(2) { border-inline-end: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-block { padding-block: 5rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
