:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #101828;
  --muted: #5f6c80;
  --line: #dbe2ec;
  --dark: #0b1220;
  --primary: #3366ff;
  --primary-dark: #244dd8;
  --accent: #8db2ff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 31, 62, 0.11);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 108px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 25%, rgba(51, 102, 255, 0.13), transparent 28%),
    radial-gradient(circle at 10% 85%, rgba(111, 165, 255, 0.08), transparent 25%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 6.2vw, 82px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  margin-bottom: 14px;
  font-size: 23px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(51, 102, 255, 0.24);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  border-color: #b9c4d4;
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.device-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.device-card-main {
  top: 22px;
  right: 30px;
  width: min(100%, 410px);
  min-height: 410px;
  padding: 18px;
  border-radius: 34px;
  transform: rotate(2.5deg);
}

.device-top {
  display: flex;
  gap: 7px;
  padding: 3px 2px 17px;
}

.device-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dbea;
}

.device-content {
  height: 340px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(150deg, #0c1526, #142649 58%, #2758cf);
}

.mini-label {
  margin-bottom: 18px;
  color: #8db2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.mini-title,
.line {
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.mini-title {
  width: 82%;
  margin-bottom: 11px;
}

.mini-title.short,
.line.short {
  width: 58%;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 58px;
}

.mini-grid div {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
}

.device-card-small {
  bottom: 10px;
  left: 0;
  z-index: 2;
  width: 230px;
  padding: 22px;
  border-radius: 24px;
  transform: rotate(-4deg);
}

.app-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
}

.device-card-small .line {
  height: 9px;
  margin-top: 9px;
  background: #d5ddeb;
}

.accent-orb {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  filter: blur(2px);
  opacity: 0.28;
}

.section {
  padding: 100px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 46px;
}

.section-heading > p:last-child,
.about-copy p,
.contact-card p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  min-height: 290px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(27, 43, 75, 0.08);
}

.card-number {
  display: block;
  margin-bottom: 66px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.card p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.about-copy > p {
  font-size: 18px;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0 0;
}

.company-facts div {
  padding-top: 18px;
  border-top: 1px solid #cfd8e6;
}

.company-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-facts dd {
  margin: 0;
  font-weight: 700;
}

.contact-section {
  padding-top: 90px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  padding: 54px;
  border-radius: 28px;
  background: var(--dark);
  color: #fff;
}

.contact-card h2 {
  margin-bottom: 14px;
}

.contact-card p {
  margin-bottom: 0;
  color: #aebbd0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-email {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 750;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 7px;
}

.contact-email:hover {
  text-decoration-color: var(--accent);
}

address {
  color: #aebbd0;
  font-style: normal;
}

.site-footer {
  margin-top: 100px;
  padding: 44px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner p,
.copyright {
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 7px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.copyright {
  margin-top: 34px;
}

.legal-hero {
  padding: 88px 0 38px;
}

.legal-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 66px);
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 80px;
  padding: 30px 0 110px;
}

.legal-aside {
  color: var(--muted);
  font-size: 14px;
}

.legal-aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-copy h2 {
  margin-top: 50px;
  font-size: 30px;
}

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

.legal-copy ul {
  padding-left: 22px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.legal-table th,
.legal-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  padding-right: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.not-found {
  display: grid;
  min-height: 75vh;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 12px;
  font-size: clamp(70px, 14vw, 150px);
}

.not-found p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

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

  .hero-grid {
    gap: 45px;
  }

  .hero-visual {
    max-width: 560px;
    min-height: 420px;
  }

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

  .card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 42px;
  }

  .about-grid,
  .contact-card {
    gap: 38px;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    padding: 68px 0 78px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 355px;
  }

  .device-card-main {
    right: 0;
    width: calc(100% - 22px);
    min-height: 325px;
    padding: 12px;
  }

  .device-content {
    height: 275px;
    padding: 24px;
  }

  .device-card-small {
    width: 190px;
  }

  .mini-grid {
    margin-top: 42px;
  }

  .mini-grid div {
    min-height: 58px;
  }

  .section {
    padding: 76px 0;
  }

  .card {
    padding: 26px;
  }

  .contact-card {
    padding: 34px 26px;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    flex-direction: column;
  }

  .legal-hero {
    padding-top: 62px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .legal-table td {
    padding-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
