:root {
  --bg: #040712;
  --bg-alt: #0b1024;
  --fg: #f6f8ff;
  --fg-muted: rgba(246, 248, 255, 0.72);
  --accent: linear-gradient(135deg, #537bff 0%, #7f5aff 100%);
  --accent-solid: #6b6cff;
  --card-bg: rgba(12, 18, 42, 0.72);
  --card-border: rgba(111, 128, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --pill-bg: rgba(150, 160, 255, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 52, 101, 0.45);
  --shadow-md: 0 16px 40px rgba(26, 34, 75, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --space: clamp(1.5rem, 1.4rem + 1.2vw, 2.5rem);
}

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

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top right, #1a2259, #040712 55%);
  color: var(--fg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 0.8rem + 1vw, 3rem) 6rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav.nav--scrolled {
  padding: 18px 0;
  background: rgba(6, 9, 24, 0.85);
  border-bottom: 1px solid rgba(126, 138, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand.small .brand-logo {
  width: 36px;
  height: 36px;
}

.brand.mark-only .brand-name {
  display: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(52, 92, 193, 0.35);
}

.brand-name {
  font-size: 1.1rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28.8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border: 1px solid rgba(138, 151, 255, 0.25);
  background: rgba(116, 127, 255, 0.12);
  color: #dadeff;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.btn-ghost.small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.hero {
  padding-top: 40px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 0.8rem + 2vw, 3rem);
  align-items: stretch;
  padding: 40px 0 64px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 2.2rem + 1.6vw, 3.6rem);
  line-height: 1.1;
  margin: 18px 0 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-self: stretch;
  max-width: 560px;
  width: 100%;
  padding-top: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #7af3ff, #7f5aff 45%, #ff7ebe 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 20px;
  text-align: left;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(217, 223, 255, 0.6);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(217, 223, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 32px;
  justify-content: flex-start;
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

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

.demo-card {
  width: min(100%, 390px);
  position: relative;
  margin: 0 auto;
}

.demo-card--light {
  padding: 14px;
  border-radius: 40px;
  background: rgba(244, 248, 255, 0.16);
  box-shadow: 0 32px 60px rgba(9, 12, 38, 0.28);
  border: 1px solid rgba(185, 202, 255, 0.28);
  backdrop-filter: blur(14px);
}

.demo-phone {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1179 / 2556;
  border-radius: 44px;
  background: #eef2ff;
  padding: 32px 24px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #101529;
  font-size: clamp(0.86rem, 0.82rem + 0.2vw, 0.95rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(153, 166, 210, 0.3);
  overflow: hidden;
}

.phone-status {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(18, 23, 40, 0.68);
}

.time {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dynamic-island {
  justify-self: center;
  width: 122px;
  height: 32px;
  border-radius: 18px;
  background: #070914;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.island-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8c4c;
}

.phone-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon {
  display: inline-block;
  position: relative;
  color: rgba(26, 31, 46, 0.72);
}

.icon.signal {
  width: 6px;
  height: 14px;
}

.icon.signal::before,
.icon.signal::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 2px;
  border-radius: 4px;
  background: currentColor;
}

.icon.signal::before {
  height: 10px;
  left: -4px;
}

.icon.signal::after {
  height: 14px;
  left: 0;
}

.icon.wifi {
  width: 18px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
}

.icon.battery {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid currentColor;
  position: relative;
}

.icon.battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -4px;
  width: 3px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.phone-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: rgba(18, 23, 40, 0.68);
}

.toolbar-icon {
  font-size: 1.18rem;
}

.language-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.flag {
  font-size: 1.1rem;
}

.swap {
  font-size: 0.9rem;
  background: rgba(135, 214, 166, 0.18);
  color: #1c8f63;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}

.chat-bubble {
  border-radius: 22px;
  padding: 18px 22px 24px;
  position: relative;
  display: grid;
  gap: 12px;
}

.chat-bubble--light {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(38, 63, 134, 0.08);
}

.chat-bubble--accent {
  background: #93d7ad;
  color: #0c2c17;
  box-shadow: 0 10px 24px rgba(39, 99, 66, 0.18);
}

.chat-text {
  line-height: 1.52;
  font-size: 0.96em;
}

.chat-text--secondary {
  color: rgba(37, 44, 64, 0.64);
  font-size: 0.9em;
}

.chat-text--primary {
  color: #101528;
  font-weight: 600;
}

.chat-bubble--accent .chat-text--secondary {
  color: rgba(9, 31, 17, 0.75);
}

.chat-audio {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(35, 45, 95, 0.1);
  color: rgba(41, 59, 122, 0.6);
}

.chat-bubble--accent .chat-audio {
  background: rgba(12, 42, 25, 0.12);
  color: rgba(12, 50, 30, 0.55);
}

.chat-audio::before,
.chat-audio::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-top-color: transparent;
}

.chat-audio::after {
  inset: 4px;
  border-width: 1px;
}

.record-bar {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: auto;
}

.record-line {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(62, 179, 123, 0.5);
}

.record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: #ff4343;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 26px rgba(255, 67, 67, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.record-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 67, 67, 0.45);
}

.record-square {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
}

.section {
  padding: clamp(3.5rem, 3rem + 2vw, 5.5rem) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section--visible {
  opacity: 1;
  transform: none;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  margin-bottom: 16px;
}

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

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 198, 255, 0.35);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(114, 141, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

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

.feature-card p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.6;
}

.feature-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(215, 225, 255, 0.7);
  line-height: 1.6;
}

.scenarios {
  background: linear-gradient(180deg, rgba(11, 17, 40, 0.15), rgba(8, 12, 32, 0.6));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(115, 128, 255, 0.2);
  padding: clamp(3rem, 2.6rem + 2vw, 5rem);
  margin-top: 40px;
  backdrop-filter: blur(18px);
}

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

.scenario-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(35, 45, 90, 0.4);
  border: 1px solid rgba(119, 133, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scenario-icon {
  font-size: 1.8rem;
}

.scenario-card p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.6;
}

.scenario-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(219, 228, 255, 0.7);
  line-height: 1.6;
}

.highlight {
  position: relative;
}

.highlight-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  background: linear-gradient(120deg, rgba(17, 26, 60, 0.9), rgba(26, 32, 74, 0.95) 60%, rgba(88, 52, 174, 0.3));
  padding: clamp(2.5rem, 2.1rem + 2vw, 3.6rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(112, 126, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.highlight-copy p {
  color: var(--fg-muted);
  line-height: 1.7;
}

.metric-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.metric {
  background: rgba(31, 45, 95, 0.5);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  min-width: 140px;
  border: 1px solid rgba(132, 148, 255, 0.2);
}

.metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  color: rgba(211, 220, 255, 0.7);
  font-size: 0.85rem;
}

.latency-card {
  background: rgba(17, 30, 72, 0.75);
  border: 1px solid rgba(122, 138, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latency-header h3 {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

.sparkline {
  width: 120px;
  height: 52px;
  background: url("data:image/svg+xml,%3Csvg width='120' height='52' viewBox='0 0 120 52' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 42L19 24L36 34L53 14L69 24L85 10L101 20L119 4' stroke='%238FD7FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1 51H119' stroke='url(%23paint0_linear_1_2)' stroke-opacity='0.4'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_1_2' x1='1' y1='51' x2='119' y2='51' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%238FD7FF' stop-opacity='0'/ %3E%3Cstop offset='0.51' stop-color='%23D9DBFF' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%238FD7FF' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.8;
}

.latency-body dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.latency-body dt {
  font-size: 0.8rem;
  color: rgba(213, 222, 255, 0.6);
  margin-bottom: 4px;
}

.latency-body dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.latency-body p {
  margin: 16px 0 0;
  color: var(--fg-muted);
  line-height: 1.6;
}

.reasons {
  padding-top: 48px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.reason {
  background: rgba(22, 32, 68, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 142, 255, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reason h3 {
  margin: 0;
  font-size: 1.2rem;
}

.reason p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.6;
}

.tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(128, 142, 255, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 224, 255, 0.7);
}

.testimonials {
  padding-bottom: 72px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(36, 45, 90, 0.6);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(112, 126, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(223, 229, 255, 0.85);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(209, 218, 255, 0.8);
  font-size: 0.9rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(116, 132, 255, 0.25);
}

.footer {
  padding: clamp(3rem, 2.6rem + 2vw, 4.5rem) 0 80px;
}

.footer-inner {
  position: relative;
  overflow: hidden;
  background: #2c2e37;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(2.5rem, 2.2rem + 1.6vw, 4rem);
  display: grid;
  gap: 40px;
  justify-items: center;
}

.footer-inner::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle at center,
    rgba(255, 120, 210, 0.85),
    rgba(128, 95, 255, 0.55),
    transparent 65%
  );
  transform: rotate(-12deg);
  filter: blur(0);
  z-index: 0;
}

.footer-cta h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
}

.footer-cta p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.6;
  text-align: center;
}

.footer-cta {
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #0b0b0d;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.store-icon {
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.2;
}

.store-text span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
}

.store-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.cta-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-meta {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.footer-contact {
  color: rgba(214, 222, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-contact p {
  margin: 0;
}

.footer .links {
  display: flex;
  gap: 18px;
  color: rgba(214, 222, 255, 0.75);
  font-size: 0.9rem;
}

.footer .links a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  color: rgba(179, 188, 255, 0.5);
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .page {
    padding-bottom: 5rem;
  }
}

@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .hero-visual {
    order: -1;
  }
  .demo-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0 1.3rem 4rem;
  }
  .nav {
    padding: 20px 0;
  }
  .hero-stats {
    gap: 20px;
  }
  .feature-card,
  .scenario-card,
  .reason,
  .testimonial-card {
    padding: 22px;
  }
  .footer-inner {
    padding: 2.5rem 1.8rem;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    font-size: 0.8rem;
  }
  .cta-actions {
    width: 100%;
  }
  .cta-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .store-buttons {
    width: 100%;
  }
  .store-badge {
    flex: 1;
    justify-content: center;
  }
  .store-text {
    align-items: center;
  }
}
