@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "CameraPlainVariable";
  src: url("fonts/CameraPlainVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7f9fd;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.9);
  --text: #1a2333;
  --muted: #55617a;
  --line: rgba(68, 92, 129, 0.24);
  --red: #d71920;
  --red-dark: #b21218;
  --focus-ring: 0 0 0 3px rgba(215, 25, 32, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(215, 25, 32, 0.12) 0%, rgba(215, 25, 32, 0) 64%),
    radial-gradient(760px 460px at 92% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 65%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fd 44%, #f7f9ff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a:not(.btn) {
  font-size: 0.95em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.brand-speed {
  color: #111111;
}

.brand-xyz {
  color: var(--red);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.nav .container {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: contrast(1.08) saturate(1.05) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: center;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #2e3d59;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  transition: color 0.18s ease, opacity 0.18s ease;
  padding: 4px 2px;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: #162238;
  opacity: 1;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn,
button.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-family: CameraPlainVariable, "CameraPlainVariable Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-feature-settings: "liga" 1, "kern" 1;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-cta {
  justify-self: end;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  box-shadow: 0 6px 16px rgba(215, 25, 32, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(215, 25, 32, 0.28);
}

.btn-outline {
  color: #1c2b44;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(68, 92, 129, 0.4);
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.hero {
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}

.hero-home .eyebrow {
  padding: 6px 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 0;
  color: #4d5b74;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 126, 170, 0.26);
}

.hero-home .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 28px;
}

.hero-home .hero-home-copy {
  max-width: 860px;
}

.hero-home h1 {
  margin-top: 32px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.hero-home .text-accent,
.signup .text-accent {
  color: var(--red);
}

.hero-home .lead {
  margin-top: 24px;
  line-height: 1.625;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home .cta-row {
  margin-top: 40px;
  justify-content: center;
}

.hero-home .micro {
  text-align: center;
}

.hero-home .hero-image {
  max-width: 920px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(99, 126, 170, 0.26);
  color: #4e5f7c;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}

h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}

h3,
h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}

h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

.lead {
  font-size: 18px;
  max-width: 64ch;
  margin-top: 16px;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.micro {
  margin-top: 14px;
  font-size: 14px;
  color: #6e7688;
}

.hero-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(72, 94, 130, 0.24);
  box-shadow: 0 18px 34px rgba(84, 105, 139, 0.18);
}

.section {
  padding: 64px 0;
}

.section-title {
  margin-bottom: 22px;
}

.principles-section .container {
  text-align: center;
}

.principles-section .grid {
  justify-items: center;
}

.principles-section .card {
  text-align: center;
}

.principles-section .glyph {
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(84, 105, 139, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(84, 105, 139, 0.14);
  border-color: rgba(68, 92, 129, 0.34);
}

.card p {
  line-height: 1.55;
}

.card .cta-row {
  margin-top: auto;
  padding-top: 16px;
}

.glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2b44;
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid rgba(68, 92, 129, 0.14);
}

.glyph-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.tag {
  color: #5f6d87;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shot {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(84, 105, 139, 0.14);
}

.signup {
  border: 1px solid rgba(83, 108, 148, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 249, 255, 0.82) 100%);
  border-radius: 22px;
  padding: 40px 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(84, 105, 139, 0.1);
}

.signup-centered {
  text-align: center;
}

.signup-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.signup-centered .email-row {
  justify-content: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.signup-centered input[type="email"] {
  max-width: 420px;
}

.email-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(83, 108, 148, 0.32);
  background: rgba(255, 255, 255, 0.85);
  color: #1a2333;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="email"]::placeholder {
  color: #8993a8;
}

input[type="email"]:focus,
input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.18);
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 1em;
}

.form-status.is-success {
  color: #1d7a3a;
}

.form-status.is-error {
  color: var(--red);
}

.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  padding: 48px 0 24px;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer h4 {
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: var(--text);
}

.footer a {
  display: block;
  color: #4b5c78;
  text-decoration: none;
  margin: 4px 0;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: #6e7688;
}

.footer-bottom p {
  color: inherit;
}

.footer-bottom > div {
  display: flex;
  gap: 18px;
}

.footer-bottom a {
  display: inline;
  margin: 0;
}

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

  .card {
    padding: 20px;
  }

  .hero {
    padding: 40px 0 28px;
  }

  .section {
    padding: 48px 0;
  }

  .product {
    gap: 24px;
  }

  .footer-grid {
    gap: 28px;
  }

  .nav .container {
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand menu cta";
    gap: 12px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .menu {
    grid-area: menu;
    justify-self: end;
    gap: 16px;
  }

  .nav-cta {
    grid-area: cta;
    justify-self: end;
    padding: 9px 14px;
    font-size: 14px;
  }

  .nav-cta .btn-icon {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .signup {
    padding: 28px 20px;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .nav .container {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand cta"
      "menu menu";
    row-gap: 6px;
    padding: 10px 0 12px;
  }

  .menu {
    justify-self: start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-home h1 {
    margin-top: 22px;
  }

  .email-row {
    flex-direction: column;
  }

  .signup-centered input[type="email"] {
    max-width: 100%;
  }

  .email-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
