:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --muted-strong: rgba(71, 85, 105, 0.85);
  --line: #e2e8f0;
  --line-strong: rgba(71, 85, 105, 0.6);
  --brand1: #fb7185;
  --brand2: #a78bfa;
  --glass: rgba(255, 255, 255, 0.75);
  --action: #0f172a;
  --action-text: #ffffff;
  --footer-link-border: rgba(148, 163, 184, 0.6);
  --divider: rgba(148, 163, 184, 0.8);
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.nav-buttons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

header.show-nav-buttons .nav-buttons {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-buttons {
    display: none;
  }
}

.nav-buttons-static {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .nav-buttons-static {
    display: none;
  }
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  background: var(--action);
  color: var(--action-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #0ea5e9, #06b6d4, #22d3ee, #67e8f9, #a5f3fc, #67e8f9, #22d3ee, #06b6d4);
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn:hover {
  transform: scale(1.05);
  background: transparent;
  color: #0f172a;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.98);
}

.hero-grid {
  display: grid;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

h1 {
  font-size: 3em;
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
}

.lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.cta-row .btn {
  flex: 1 1 45%;
  text-align: center;
}

.visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.mac-frame {
  position: relative;
  width: 90%;
  max-width: 860px;
  aspect-ratio: 2170 / 1430;
  z-index: 1;
}

.mac-screen {
  position: absolute;
  top: 10.5%;
  left: 9.8%;
  width: 80.4%;
  height: 78.8%;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.mac-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iphone-frame {
  position: absolute;
  bottom: 0;
  right: 2%;
  width: 24%;
  aspect-ratio: 447 / 906;
  z-index: 3;
}

.iphone-screen {
  position: absolute;
  top: 2.3%;
  left: 5.2%;
  width: 89.6%;
  height: 95.4%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.iphone-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.mac-screen .media,
.iphone-screen .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  padding: 32px 0;
}

@media (min-width: 1024px) {
  section {
    padding: 64px 0;
  }
}

ul {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  padding-left: 0;
  list-style-position: inside;
}

ul li {
  margin-bottom: 4px;
}

.price-features {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  font-size: inherit;
}

.price-features li {
  margin-bottom: 6px;
}

.price-features li:last-child {
  margin-bottom: 0;
}

.pricing {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.price-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
}

.price-media {
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
  display: block;
  width: min(100%, clamp(200px, 50vw, 420px));
  aspect-ratio: 2170 / 1430;
}

.price-media .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-media-iphone {
  position: relative;
}

.price-media-mac {
  position: relative;
}

.price-mac-screen,
.price-iphone-screen {
  position: absolute;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.price-mac-screen {
  top: 10.5%;
  left: 9.8%;
  width: 80.4%;
  height: 78.8%;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.price-mac-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.price-mac-frame {
  position: absolute;
  inset: 0;
}

.price-iphone-screen {
  top: 2.3%;
  left: 5.2%;
  width: 89.6%;
  height: 95.4%;
  border-radius: 6px;
}

.price-iphone-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.price-iphone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32.513%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.price-card.highlight {
  border-color: var(--line);
}

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-title {
  font-weight: 700;
}

.price-tag {
  color: var(--muted);
  font-size: 14px;
}

.price-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-card .btn {
  width: 100%;
  margin-top: 0;
  text-align: center;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 28px auto 0;
}

.press-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 12px;
}

.press .logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.press .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-elevated);
  transition: background 0.2s ease;
}

.press .logo-item:hover,
.press .logo-item:focus-within {
  background: var(--line);
}

.press .logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  padding: 12px;
  text-decoration: none;
}

.press .logo-item picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.press .logo-item img {
  max-width: 90%;
  opacity: 0.85;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.press .logo-item:hover img,
.press .logo-item:focus-within img {
  opacity: 1;
  filter: none;
}

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

.faq-container {
  max-width: 720px;
}

.faq-heading {
  text-align: center;
  font-size: clamp(28px, 4vw, 32px);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.faq-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.faq-card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  background: transparent;
  line-height: 1.6;
}

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

.faq-card summary::after {
  content: "\25BC";
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-card[open] summary::after {
  transform: rotate(-180deg);
}

.faq-card[open] {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.faq-card summary:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 4px;
}

.faq-answer {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.legal {
  padding: 64px 0 96px;
  background: var(--surface);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 24px;
  font-weight: 800;
  line-height: 1.1;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.legal-content p {
  margin: 16px 0;
  color: var(--muted);
}

.legal-content ul {
  margin: 16px 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 8px;
  }

  footer > .footer-divider {
    display: none;
  }

  .footer-links .footer-divider {
    display: inline;
  }
}

footer a {
  color: var(--muted-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--footer-link-border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.footer-divider {
  color: var(--divider);
  font-size: 18px;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-elevated: #111827;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --muted-strong: rgba(226, 232, 240, 0.85);
    --line: rgba(148, 163, 184, 0.25);
    --line-strong: rgba(148, 163, 184, 0.45);
    --glass: rgba(15, 23, 42, 0.72);
    --action: #e2e8f0;
    --action-text: #0f172a;
    --footer-link-border: rgba(148, 163, 184, 0.35);
    --divider: rgba(148, 163, 184, 0.55);
  }

  body {
    background: linear-gradient(180deg, var(--surface), var(--bg));
  }

  header {
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.4);
  }

  .btn {
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.45);
  }

  .mac-frame {
    box-shadow: none;
  }

  .iphone-frame {
    border-color: transparent;
    box-shadow: none;
  }

  .price-card {
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  }

  .price-media {
    box-shadow: none;
  }

  .press .logo-item {
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.5);
  }

  footer {
    border-top: 1px solid var(--line);
  }
}
