:root {
  color-scheme: dark;
  --bg: #101417;
  --bg-soft: #121c21;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2068f2;
  --teal: #2cb9b0;
  --gold: #f2ad4b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #111820 0%, #121c21 52%, #101417 100%);
}

.hero {
  min-height: calc(100vh - 118px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.site-header,
.hero-grid,
.site-footer {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  font-size: 16px;
  font-weight: 650;
}

.outline-gradient-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--blue), var(--teal) 64%, var(--gold)) border-box;
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.outline-gradient-button:hover {
  background: linear-gradient(135deg, var(--blue), var(--teal) 64%, var(--gold)) border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 78px 0 96px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #7ad8ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
}

.launch-note {
  max-width: 520px;
  margin-top: 34px;
  border-left: 2px solid var(--blue);
  color: rgba(255, 255, 255, 0.78);
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-visual {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-row {
  display: flex;
  width: 100%;
  max-width: 660px;
  height: 360px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.preview-card {
  position: relative;
  aspect-ratio: 390 / 844;
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  opacity: 0.48;
  transform: translateY(10px) scale(0.9);
  transition:
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 1300ms ease,
    box-shadow 1300ms ease;
  will-change: transform, opacity;
}

.preview-card.is-active {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.preview-label {
  position: relative;
  z-index: 10;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-title {
  position: relative;
  z-index: 10;
  max-width: 144px;
  margin: 8px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.16;
}

.phone-frame {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 20;
  width: 48%;
  transform: translate(-50%, -50%);
}

.phone-screen {
  position: absolute;
  inset: 3.3% 6.6%;
  overflow: hidden;
  border-radius: 10% / 4.9%;
  background: #f8fbff;
}

.phone-ui {
  height: 100%;
  background: linear-gradient(180deg, #ffffff, #e9f3ff);
  padding: 18% 9% 0;
}

.phone-hero {
  height: 23%;
  border-radius: 6px;
  background: #1d2b3d;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7%;
  margin-top: 8%;
}

.phone-grid span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #bed7f4;
}

.phone-grid span + span {
  background: #cce0f6;
}

.phone-line,
.phone-line-short {
  height: 4%;
  margin-top: 8%;
  border-radius: 999px;
  background: #b8cbe0;
}

.phone-line-short {
  width: 66%;
  margin-top: 5%;
  background: #d1deec;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-glass {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 10;
  height: 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.preview-bar,
.preview-bar-small {
  position: absolute;
  bottom: 32px;
  z-index: 20;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.preview-bar {
  left: 24px;
  width: 80px;
}

.preview-bar-small {
  right: 24px;
  width: 40px;
  background: rgba(255, 255, 255, 0.3);
}

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-links button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  padding: 0;
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-links button:hover {
  color: #fff;
}

.newsletter-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.04);
}

.newsletter-modal {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #101417;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  color: #fff;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.newsletter-modal-header {
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(32, 104, 242, 0.98), rgba(44, 185, 176, 0.82) 58%, rgba(242, 173, 75, 0.92));
  padding: 22px 56px 22px 22px;
}

.newsletter-modal h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.newsletter-modal p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.newsletter-modal form {
  display: grid;
  gap: 10px;
  padding: 18px 22px 0;
}

.newsletter-modal input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  padding: 0 12px;
}

.newsletter-modal input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-modal input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32, 104, 242, 0.22);
}

.newsletter-modal form button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.newsletter-modal form button:disabled {
  cursor: default;
  opacity: 0.65;
}

.newsletter-modal .form-message {
  min-height: 22px;
  margin: 10px 22px 22px;
  color: rgba(255, 255, 255, 0.72);
}

.newsletter-modal .form-message.error {
  color: #ffb3b3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 54px 0 72px;
  }

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

  .preview-row {
    justify-content: flex-start;
    overflow-x: hidden;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero-grid,
  .site-footer {
    width: min(100% - 32px, 1280px);
  }

  .outline-gradient-button {
    height: 36px;
    padding: 0 12px;
  }

  h1 {
    max-width: 430px;
    font-size: 48px;
  }

  .lede {
    font-size: 18px;
  }

  .preview-row {
    height: 330px;
    gap: 10px;
  }

  .preview-card {
    height: 292px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-modal {
    right: 16px;
    bottom: 16px;
  }
}
