:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(13, 18, 29, 0.82);
  --panel-strong: #0d121d;
  --text: #f7f9fc;
  --muted: #a9b2c1;
  --faint: #747e8f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --blue: #42b9ff;
  --blue-deep: #2469e8;
  --red: #ff5145;
  --red-deep: #bd1f2d;
  --radius: 28px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(35, 105, 232, 0.17), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 81, 69, 0.1), transparent 26rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #05070b;
  background: #fff;
  transform: translateY(-160%);
}

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

.site-shell,
.legal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-link img {
  width: 208px;
  height: auto;
}

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

.site-nav a,
.text-link {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: end;
  gap: clamp(40px, 7vw, 96px);
  padding: clamp(70px, 10vw, 132px) 0 clamp(90px, 11vw, 148px);
}

.eyebrow {
  margin: 0 0 20px;
  color: #8bcfff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.product-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span {
  display: block;
  color: var(--muted);
}

.hero-copy {
  padding-bottom: 8px;
}

.hero-copy p,
.product-hero-copy,
.section-intro {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.hero-copy p {
  margin: 0 0 28px;
}

.button-row,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.button.primary {
  color: #06101c;
  border-color: #fff;
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.section-heading h2,
.principles h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-intro {
  max-width: 560px;
  margin: 0;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(20, 27, 42, 0.94), rgba(8, 11, 18, 0.98));
  box-shadow: var(--shadow);
}

.product-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  top: -180px;
  right: -160px;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.32;
}

.product-card.think-deep::before {
  background: var(--blue-deep);
}

.product-card.atx-alerts::before {
  background: var(--red-deep);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.product-card > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d4dae4;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 650;
}

.principles {
  padding: clamp(100px, 12vw, 164px) 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.principle {
  min-height: 230px;
  padding: 28px;
  border-top: 1px solid var(--line-strong);
}

.principle-number {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin: 42px 0 10px;
  font-size: 1.28rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

/* Product pages */
.product-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
  padding: clamp(80px, 10vw, 132px) 0 90px;
}

.product-hero .app-icon {
  width: 180px;
  height: 180px;
  border-radius: 38px;
}

.product-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.product-hero-copy {
  max-width: 700px;
  margin: 24px 0 30px;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 110px;
}

.detail-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.notice {
  margin: 0 0 100px;
  padding: 22px 24px;
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
  color: #dbe0e8;
  background: rgba(255, 81, 69, 0.08);
  line-height: 1.65;
}

/* Legal pages */
.legal-shell {
  width: min(900px, calc(100% - 40px));
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 52px;
}

.legal-header .brand-link img {
  width: 178px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: #fff;
}

.legal-card {
  margin-bottom: 72px;
  padding: clamp(28px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 21, 0.9);
  box-shadow: var(--shadow);
}

.legal-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.legal-product .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.legal-product span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.effective {
  margin: 16px 0 42px;
  color: var(--faint);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-card h2 {
  margin: 42px 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: #b8c0cd;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-card p {
  margin: 0 0 16px;
}

.legal-card ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card address {
  color: #b8c0cd;
  font-style: normal;
  line-height: 1.75;
}

.legal-card a {
  color: #8ed4ff;
  text-underline-offset: 3px;
}

.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding-top: 72px;
  }

  .product-grid,
  .principles-grid,
  .product-details {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .product-hero .app-icon {
    width: 132px;
    height: 132px;
    border-radius: 30px;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .legal-header {
    align-items: flex-start;
  }

  .brand-link img {
    width: 156px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero h1,
  .product-hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .section-intro {
    margin-top: 18px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .product-topline {
    margin-bottom: 42px;
  }

  .legal-card {
    border-radius: 22px;
  }
}

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

  .button {
    transition: none;
  }
}
