:root {
  --bg: #1e293b;
  --surface: #0f172a;
  --card: #ffffff;
  --text: #f8fafc;
  --text-dark: #0f172a;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --border: rgba(148, 163, 184, 0.25);
  --accent: #3b82f6;
  --accent-2: #10b981;
  --button: #3b82f6;
  --button-hover: #1e293b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  --radius: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
  margin: 0;
}

.brand img {
  height: 112px;
  width: auto;
  margin-left: -8px;
}

nav {
  margin-left: auto;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  margin: 0;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
}

.nav-toggle .bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 46px 0 36px;
  background: radial-gradient(circle at top, #263449 0%, #1e293b 60%, #0f172a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 2.6vw + 1.5rem, 3rem);
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

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

.button {
  background: var(--button);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

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

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
}

.section p {
  color: var(--muted);
  margin: 0 0 24px;
}

.temp-about-section {
  padding-top: 28px;
}

.download-section {
  text-align: center;
}

.download-section .container {
  width: min(100% - 32px, 680px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-section p {
  max-width: 36rem;
}

.download-section .downloads {
  justify-content: center;
}

.temp-about {
  background: rgba(59, 130, 246, 0.12);
  border: 1px dashed rgba(59, 130, 246, 0.65);
  border-radius: var(--radius);
  padding: 22px;
}

.temp-about h2 {
  margin: 0 0 10px;
}

.temp-about p {
  margin: 0;
  color: #dbeafe;
}

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

.card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-stack {
  position: relative;
  width: min(100%, 560px);
  height: 540px;
}

.shot {
  position: absolute;
  border: none;
  background: transparent;
  transform: rotateZ(var(--shot-rotate, 0deg));
  transition: transform 0.25s ease;
}

.shot.portrait {
  width: 188px;
  height: auto;
}

.shot.landscape {
  width: 332px;
  height: auto;
}

.shot-1 {
  top: 22px;
  left: 34px;
  z-index: 2;
  --shot-rotate: 15deg;
}

.shot-2 {
  bottom: 130px;
  right: 18px;
  z-index: 5;
  --shot-rotate: 7.5deg;
}

.shot-3 {
  top: 120px;
  left: 274px;
  z-index: 3;
  --shot-rotate: -3.5deg;
}

.shot-4 {
  bottom: 54px;
  left: 8px;
  z-index: 4;
  --shot-rotate: 5.8deg;
}

.shot-5 {
  bottom: 0;
  left: 92px;
  z-index: 4;
  --shot-rotate: -20deg;
}

.shot:hover {
  transform: translateY(-6px) rotateZ(var(--shot-rotate, 0deg)) scale(1.01);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

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

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.downloads a,
.downloads span {
  min-width: 180px;
}

.button.is-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.button.secondary.is-disabled:hover {
  background: transparent;
}

.contact {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.page-header {
  padding: 48px 0 24px;
}

.page-header h1 {
  margin: 0 0 6px;
}

.page-header .meta {
  color: var(--muted);
  font-size: 14px;
}

.about-hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 38%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #172033 100%);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.about-kicker,
.story-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.about-intro h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 3.6vw + 1rem, 4.4rem);
  line-height: 0.98;
  max-width: 10ch;
}

.about-intro p {
  max-width: 40rem;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.about-hero-panel {
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.95), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-logo {
  width: min(220px, 60%);
  margin-bottom: 24px;
}

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

.about-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 16px;
  min-height: 118px;
}

.about-mini-label {
  display: block;
  color: #60a5fa;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.story-shell {
  padding: 28px 0 72px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 96px;
}

.story-sticky-inner {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 128px);
  overflow: hidden;
}

.story-sticky h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.4rem);
  line-height: 1.05;
}

.story-sticky p {
  margin: 0 0 20px;
  color: #cbd5e1;
}

.story-index {
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 6px;
}

.story-index-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.story-index-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}

.story-index-button span {
  display: block;
}

.story-index-button:hover,
.story-index-button.is-active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.story-index-button.is-active {
  transform: translateX(4px);
}

.story-stepper {
  display: grid;
  gap: 20px;
}

.stepper-status {
  display: grid;
  gap: 10px;
}

.stepper-count {
  color: #93c5fd;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.stepper-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stepper-progress-fill {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  transition: width 0.25s ease;
}

.stepper-panels {
  position: relative;
}

.story-panel {
  display: none;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.68)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 55%);
  box-shadow: var(--shadow);
  animation: panel-fade 0.25s ease;
}

.story-panel.is-active {
  display: grid;
}

.stepper-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.stepper-controls .button {
  min-width: 150px;
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 16px;
}

.story-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 1.1vw + 1rem, 2rem);
}

.story-copy p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 1rem;
}

.story-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-notes span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
  font-size: 0.88rem;
}

.story-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 18%;
  height: 180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.device-cluster {
  position: relative;
  min-height: 360px;
}

.device-card {
  position: absolute;
  margin: 0;
}

.device-card.offset {
  right: 0;
  bottom: 0;
}

.phone-frame {
  position: relative;
  width: fit-content;
  padding: 14px 10px 12px;
  border-radius: 32px;
  background: linear-gradient(180deg, #020617, #0f172a 85%);
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.45);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
}

.landscape-frame {
  padding: 10px 14px;
  border-radius: 28px;
}

.landscape-frame::before {
  top: 50%;
  left: auto;
  right: 8px;
  width: 10px;
  height: 34%;
  transform: translateY(-50%);
}

.device-image {
  display: block;
  object-fit: cover;
  border-radius: 22px;
  background: #020617;
}

.device-image.portrait {
  width: min(100%, 190px);
  aspect-ratio: 1320 / 2868;
}

.device-image.landscape {
  width: min(100%, 290px);
  aspect-ratio: 16 / 9;
}

.device-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.extra-section {
  padding-top: 0;
}

.extra-header {
  max-width: 42rem;
  margin-bottom: 18px;
}

.extra-header h2 {
  margin-top: 14px;
}

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

.extra-card,
.about-cta .container {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.extra-card {
  padding: 24px;
}

.extra-card h3 {
  margin: 0 0 8px;
}

.extra-card p {
  margin: 0 0 14px;
}

.extra-card span {
  color: #93c5fd;
  font-size: 0.92rem;
}

.about-cta .container {
  padding: 30px;
  text-align: center;
}

.about-cta h2 {
  margin-bottom: 10px;
}

.about-cta p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.about-cta .cta-row {
  justify-content: center;
}

.policy-section {
  margin-bottom: 16px;
}

.form-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(248, 250, 252, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  border-color: transparent;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 14px;
}

.form-status.is-loading {
  color: var(--muted);
}

.form-status.is-success {
  color: #6ee7b7;
}

.form-status.is-error {
  color: #fda4af;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.accordion {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  position: relative;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  color: var(--accent);
}

.accordion[open] summary::after {
  content: "–";
}

.accordion .accordion-content {
  padding: 0 20px 18px;
  color: var(--muted);
}

.accordion .accordion-content h3 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.accordion .accordion-content ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.accordion .accordion-content p {
  margin: 0 0 12px;
}

@media (max-width: 820px) {
  .navbar {
    padding: 6px 0;
  }

  .brand img {
    height: 78px;
    margin-left: -6px;
  }

  .nav-links {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    display: none;
    z-index: 20;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .shot-stack {
    width: min(100%, 460px);
    height: 430px;
  }

  .shot.portrait {
    width: 156px;
  }

  .shot.landscape {
    width: 272px;
  }

  .shot-1 {
    top: 16px;
    left: 6px;
  }

  .shot-2 {
    bottom: 100px;
    right: 4px;
  }

  .shot-3 {
    top: 110px;
    left: 220px;
  }

  .shot-4 {
    bottom: 16px;
    left: 4px;
  }

  .shot-5 {
    bottom: 0;
    left: 128px;
  }

  .about-hero-grid,
  .story-layout,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .about-mini-grid,
  .extra-grid {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    position: static;
  }

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

@media (max-width: 640px) {
  .navbar {
    padding: 4px 0;
  }

  .brand img {
    height: 64px;
    margin-left: -4px;
  }

  .nav-links {
    top: 46px;
    min-width: 210px;
  }

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

  .downloads a,
  .downloads span {
    width: 100%;
  }

  .shot-stack {
    width: min(100%, 340px);
    height: 340px;
  }

  .shot.portrait {
    width: 122px;
  }

  .shot.landscape {
    width: 212px;
  }

  .shot-1 {
    top: 10px;
    left: 0;
  }

  .shot-2 {
    bottom: 78px;
    right: 0;
  }

  .shot-3 {
    top: 84px;
    left: 164px;
  }

  .shot-4 {
    left: 0;
    bottom: 10px;
  }

  .shot-5 {
    bottom: 0;
    left: 88px;
  }

  .about-hero {
    padding-top: 48px;
  }

  .about-hero-panel,
  .story-panel,
  .story-sticky-inner,
  .extra-card,
  .about-cta .container {
    padding: 20px;
  }

  .stepper-controls {
    flex-direction: column;
  }

  .story-visual {
    min-height: auto;
    padding: 20px;
  }

  .device-cluster {
    min-height: 0;
    display: grid;
    gap: 18px;
    justify-items: center;
  }

  .device-card,
  .device-card.offset {
    position: static;
  }

  .device-image.portrait {
    width: min(100%, 180px);
  }

  .device-image.landscape {
    width: min(100%, 250px);
  }
}
