:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #0c0c0e;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-hover: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2563eb;
  --blue-hover: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef4444;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--blue-hover), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 1.5rem;
  transition:
    background 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-download {
  position: relative;
}

.nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-download-btn:hover {
  background: var(--blue-hover);
  transform: scale(1.03);
}

.nav-download-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 11rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.nav-download-menu[hidden] {
  display: none;
}

.nav-download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-download-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-download-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
}

.lang-toggle {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

main {
  padding-top: 5rem;
}

.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 37.5rem;
  height: 37.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  filter: blur(100px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  margin: 0 0 2rem;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-desc {
  position: relative;
  max-width: 42rem;
  margin: 0 auto 4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.75;
}

.hero-cta {
  position: relative;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: scale(1.04);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto 6rem;
  padding: 0 1rem;
  text-align: left;
}

.feature-grid .glass-card {
  padding: 2rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.feature-grid .glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--panel-hover);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  font-size: 1.5rem;
}

.feature-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.media-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease;
}

.media-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
}

.media-card[href="#guide"]:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.media-card-bg {
  position: absolute;
  inset: 0;
}

.media-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(2px);
  transition: transform 0.7s ease;
}

.media-card:hover .media-card-bg img {
  transform: scale(1.05);
}

.media-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.42);
  text-align: center;
}

.media-card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.media-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
  transition: transform 0.3s ease;
}

.play-btn svg {
  width: 2rem;
  height: 2rem;
}

.play-btn-blue {
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  cursor: default;
}

.media-card:hover .play-btn {
  transform: scale(1.08);
}

.badge {
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-red {
  background: var(--red);
  color: #fff;
}

.badge-blue {
  background: var(--blue);
  color: #fff;
}

.demo-video-hidden {
  display: none;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.video-overlay[hidden] {
  display: none;
}

.video-overlay video {
  width: min(1080px, 100%);
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.video-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.section {
  padding: 6rem 1.5rem;
}

.section-muted {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.45), transparent);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
}

.section-desc {
  max-width: 40rem;
  margin: 0 auto 4rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: center;
}

.ui-showcase {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

.phone-frame,
.tablet-frame {
  position: relative;
  margin: 0;
  padding: 0.5rem;
  border: 8px solid #121212;
  background: #000;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.phone-frame:hover,
.tablet-frame:hover {
  transform: scale(1.02);
}

.phone-frame {
  justify-self: end;
  width: min(280px, 100%);
  border-radius: 3rem;
  overflow: hidden;
}

.tablet-frame {
  border-radius: 2rem;
  overflow: hidden;
}

.tablet-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.tablet-frame img,
.phone-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dynamic-island {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 6rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.dynamic-island-side {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  width: 1.75rem;
  height: 6rem;
  border-radius: 999px;
  background: #000;
  transform: translateY(-50%);
  pointer-events: none;
}

.landscape-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 87.5rem;
  margin: 0 auto;
}

.promo-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #121212;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.promo-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
}

.promo-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.guide-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--bg);
  border-radius: 999px;
  background: var(--blue);
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.guide-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.download-cta-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
}

.download-cta-panel h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.download-cta-panel p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.download-cta-panel .btn-primary,
.download-cta-panel .btn-ghost {
  margin: 0 0.5rem;
}

.feedback-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.2), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.feedback-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 3rem;
  align-items: center;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.feedback-copy .section-title,
.feedback-copy .section-desc {
  text-align: left;
}

.feedback-copy .section-desc {
  margin-right: 0;
  margin-left: 0;
}

.feedback-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.form-row label {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-row input,
.form-row select {
  min-height: 3rem;
  padding: 0 0.875rem;
}

.form-row textarea {
  min-height: 9rem;
  resize: vertical;
  padding: 0.875rem;
  line-height: 1.6;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6b7280;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(59, 130, 246, 0.75);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.form-row select option {
  background: #1c1c1e;
  color: var(--text);
}

.feedback-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.feedback-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.feedback-status[data-type="success"] {
  color: #86efac;
}

.feedback-status[data-type="error"] {
  color: #fca5a5;
}

.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a,
.footer-link-button {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-link-button:hover {
  color: #e5e7eb;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-note {
  margin: 0 0 0.5rem;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.6;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  transform: scale(1.08);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.download-modal[hidden] {
  display: none;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.download-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #1c1c1e;
  box-shadow: var(--shadow);
}

.download-modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.download-modal-desc {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.qr-card h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.qr-frame {
  padding: 0.625rem;
  border-radius: 1rem;
  background: #fff;
}

.qr-image {
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.qr-card a {
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 600;
}

.qr-card a:hover {
  color: #bfdbfe;
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
    transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .feature-grid,
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-showcase {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    justify-self: center;
  }

  .landscape-grid {
    grid-template-columns: 1fr;
  }

  .tablet-wide {
    grid-column: auto;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .feedback-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .feature-grid,
  .media-cards,
  .guide-steps,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .download-cta-panel .btn-primary,
  .download-cta-panel .btn-ghost {
    display: flex;
    width: 100%;
    margin: 0.5rem 0;
  }

  .feedback-copy .section-title,
  .feedback-copy .section-desc {
    text-align: center;
  }

  .feedback-form {
    padding: 1rem;
  }
}
