:root {
  --bg-main: #04100f;
  --bg-deep: #07151f;
  --bg-card: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.14);
  --text-main: #ffffff;
  --text-muted: #aeb7d4;
  --primary: #22c7b8;
  --secondary: #4f7dff;
  --accent: #f6c85f;
  --success: #51e2a7;
  --danger: #ff7d93;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 199, 184, 0.28), transparent 26rem),
    radial-gradient(circle at 88% 16%, rgba(79, 125, 255, 0.24), transparent 24rem),
    linear-gradient(135deg, var(--bg-main), var(--bg-deep) 48%, #132018);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 82%);
}

a { color: inherit; text-decoration: none; }
p { color: var(--text-muted); line-height: 1.72; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 14px max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(5, 8, 22, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 24px rgba(109, 141, 255, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color .2s ease;
}

.site-nav a:hover { color: #fff; }

.language-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.language-switch button,
.menu-toggle {
  color: var(--text-muted);
  border: 0;
  cursor: pointer;
  background: transparent;
}

.language-switch button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
}

.language-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(109,141,255,0.9), rgba(155,92,255,0.9));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero,
.content-section,
.legal-page {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 56px;
  align-items: center;
  min-height: min(760px, calc(88vh - 74px));
  padding: 58px 0 44px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 10px;
  max-width: 760px;
  font-size: 3.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 760px;
  margin: 0;
  color: #e6ebff;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.34);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 34px rgba(109, 141, 255, 0.3);
}

.btn.ghost { background: rgba(255,255,255,0.06); }

.hero-visual {
  min-height: 540px;
  display: grid;
  place-items: center;
}

.device-panel,
.glass-card {
  border: 1px solid var(--border-card);
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.device-panel {
  position: relative;
  width: min(420px, 100%);
  min-height: 500px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.device-panel::before,
.device-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(16px);
}

.device-panel::before {
  right: -70px;
  top: -70px;
  background: rgba(66, 211, 255, 0.26);
}

.device-panel::after {
  left: -90px;
  bottom: -90px;
  background: rgba(155, 92, 255, 0.28);
}

.panel-top {
  width: 86px;
  height: 7px;
  margin: 0 auto 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.dashboard-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(5,8,22,0.5);
}

.dashboard-card.big {
  min-height: 170px;
  margin-bottom: 18px;
  animation: floaty 5s ease-in-out infinite;
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dashboard-card span,
.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.signal-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.signal-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66,211,255,0.85), transparent);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.content-section { padding: 82px 0; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.align-left { margin-left: 0; text-align: left; }

.section-heading h2,
.feature-card h2,
.contact-section h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.glass-card {
  border-radius: 8px;
  padding: 26px;
}

.app-card {
  position: relative;
  min-height: 390px;
}

.app-card .status {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 10px;
  border: 1px solid rgba(66,211,255,0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.app-card h3,
.mini h3 {
  margin: 24px 0 10px;
  font-size: 1.22rem;
}

.app-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.translate { background: linear-gradient(135deg, #4f7dff, #22c7b8); }
.weather { background: linear-gradient(135deg, #f6c85f, #51e2a7); }

.mini { min-height: 210px; }

.split {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 48px;
  align-items: start;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 42px;
}

.pill-stack {
  display: grid;
  gap: 12px;
}

.pill-stack span {
  min-width: 160px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  background: rgba(255,255,255,0.07);
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-panel dt {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.info-panel dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.contact-lines a,
.legal-card a,
.site-footer a { color: #dbe6ff; }

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #dfe6ff;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 13px 14px;
  color: #fff;
  font: inherit;
  background: rgba(5,8,22,0.5);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(66,211,255,0.7);
  box-shadow: 0 0 0 3px rgba(66,211,255,0.12);
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--success);
}

.form-message.error { color: var(--danger); }

.legal-page { padding: 78px 0; }

.legal-hero {
  padding: 56px 0 32px;
  text-align: center;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 38px;
}

.legal-card article + article {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.15fr;
  gap: 34px;
  padding: 46px max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid rgba(255,255,255,0.11);
  background: rgba(5,8,22,0.76);
}

.site-footer h2,
.site-footer h3 { margin-top: 0; }

.site-footer nav {
  display: grid;
  gap: 8px;
}

.footer-filing {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.footer-filing a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; padding-inline: 20px; }
  .menu-toggle { display: block; }
  .site-nav,
  .language-switch {
    display: none;
    width: 100%;
  }
  .site-header.menu-open .site-nav,
  .site-header.menu-open .language-switch { display: flex; }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 0;
  }
  .site-nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .hero,
  .split,
  .feature-card,
  .site-footer { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.7rem; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero-visual { min-height: 430px; }
  .card-grid.three,
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero,
  .content-section,
  .legal-page { width: min(100% - 32px, var(--max-width)); }
  .hero h1 { font-size: 2rem; }
  .card-grid.three,
  .card-grid.four,
  .info-panel,
  .dashboard-row { grid-template-columns: 1fr; }
  .app-card { min-height: auto; }
  .app-card .status {
    position: static;
    display: inline-flex;
    margin: 14px 0 0;
  }
  .feature-card,
  .legal-card { padding: 24px; }
  .pill-stack span { min-width: 0; }
}
