:root {
  color-scheme: dark;
  --background: #050505;
  --panel: #141516;
  --raised: #222425;
  --soft: #191a1b;
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f7f7f4;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.36);
  --blue: #42b7f8;
  --green: #a6ff38;
  --danger: #ff4d57;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand img,
.site-footer img {
  display: block;
  width: 178px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  height: 38px;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
}

.lang-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.lang-button.is-active {
  background: var(--raised);
  color: var(--text);
}

.store-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.store-button,
.secondary-button {
  background: var(--panel);
  color: var(--text);
}

.primary-button {
  background: var(--text);
  color: #050505;
  border-color: var(--text);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 72px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 58px 0 76px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6.8vw, 92px);
  line-height: 0.92;
  font-weight: 1000;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.4vw, 54px);
  line-height: 0.98;
  font-weight: 1000;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
}

.hero-text,
.section-heading,
.screenshots-copy p,
.premium-copy p,
.contact-copy p,
.feature-card p,
.terms-content p,
.terms-content li {
  color: var(--muted);
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 740;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-frame {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: #050505;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

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

.phone-frame-main {
  width: min(100%, 390px);
}

.floating-stat {
  position: absolute;
  right: -18px;
  bottom: 44px;
  width: 158px;
  padding: 16px;
  border: 1px solid rgba(66, 183, 248, 0.36);
  border-radius: 8px;
  background: rgba(20, 21, 22, 0.9);
  backdrop-filter: blur(14px);
}

.floating-stat span,
.floating-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.floating-stat strong {
  display: block;
  margin: 3px 0;
  color: var(--blue);
  font-size: 48px;
  line-height: 0.9;
  font-weight: 1000;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
  background: var(--stroke);
}

.proof-band div {
  padding: 24px;
  background: var(--panel);
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band strong {
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 1000;
}

.proof-band div:nth-child(1) strong {
  color: var(--blue);
}

.proof-band div:nth-child(2) strong {
  color: var(--green);
}

.proof-band span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.screenshots-section,
.contact-section,
.terms-hero,
.terms-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section,
.screenshots-section,
.contact-section {
  padding: 112px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.premium-panel,
.contact-form,
.screenshot-card,
.terms-card {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card {
  min-height: 260px;
  padding: 24px;
}

.feature-index {
  display: block;
  margin-bottom: 74px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 950;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 740;
}

.screenshots-section,
.premium-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: start;
}

.screenshots-copy,
.premium-copy,
.contact-copy {
  position: sticky;
  top: 108px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshot-card {
  overflow: hidden;
  margin-bottom: 0;
}

.screenshot-card.is-large {
  grid-row: auto;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  padding: 15px 16px 17px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
}

.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
  gap: 16px;
  align-items: start;
}

.premium-panel {
  padding: 28px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--stroke);
}

.panel-header span,
.panel-header strong {
  font-weight: 1000;
}

.panel-header span {
  font-size: 22px;
}

.panel-header strong {
  color: var(--green);
  text-align: right;
}

.premium-panel ul {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.premium-panel li {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 850;
}

.premium-shot {
  border-radius: 24px;
}

.contact-section {
  padding-bottom: 88px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.34);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 850;
}

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

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

.terms-hero {
  padding: 76px 0 42px;
}

.terms-hero h1 {
  max-width: 900px;
}

.terms-content {
  display: grid;
  gap: 16px;
  padding-bottom: 88px;
}

.terms-card {
  padding: 24px;
}

.terms-card h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.terms-card p {
  margin-bottom: 0;
  line-height: 1.55;
  font-weight: 720;
}

.terms-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-section,
  .screenshots-section,
  .premium-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 42px;
    padding-top: 34px;
  }

  .screenshots-copy,
  .premium-copy,
  .contact-copy {
    position: static;
  }

  .feature-grid,
  .proof-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .site-header,
  .hero-section,
  .proof-band,
  .section,
  .screenshots-section,
  .contact-section,
  .terms-hero,
  .terms-content,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    min-height: 0;
    padding: 14px 0 0;
    background: transparent;
    backdrop-filter: none;
  }

  .brand img,
  .site-footer img {
    width: 138px;
  }

  .header-actions {
    width: auto;
    gap: 8px;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 30px);
    height: 32px;
    padding: 2px;
  }

  .lang-button {
    border-radius: 5px;
    font-size: 11px;
  }

  .header-actions .store-button {
    display: none;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 12px;
    padding: 0 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    font-size: 12px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-actions,
  .site-footer,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section {
    min-height: auto;
    gap: 34px;
    padding: 38px 0 62px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 12.5vw, 58px);
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: clamp(31px, 9.5vw, 44px);
    letter-spacing: -0.04em;
  }

  .hero-text {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .hero-visual {
    padding: 0 6px;
  }

  .phone-frame-main {
    width: min(100%, 300px);
  }

  .floating-stat {
    right: 0;
    bottom: 22px;
    width: 138px;
    padding: 13px;
  }

  .floating-stat strong {
    font-size: 40px;
  }

  .proof-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-band div {
    padding: 16px 8px;
    text-align: center;
  }

  .proof-band strong {
    font-size: 21px;
  }

  .proof-band span {
    font-size: 12px;
    line-height: 1.25;
  }

  .section,
  .screenshots-section,
  .contact-section {
    padding-top: 78px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .feature-grid {
    gap: 10px;
  }

  .feature-card {
    min-height: 0;
    padding: 20px;
  }

  .feature-index {
    margin-bottom: 38px;
  }

  .screenshot-grid,
  .premium-layout {
    gap: 12px;
  }

  .screenshot-grid,
  .premium-layout {
    grid-template-columns: 1fr;
  }

  .screenshot-card.is-large {
    grid-row: auto;
  }

  .premium-shot {
    max-width: 280px;
    margin: 0 auto;
  }

  .premium-panel {
    padding: 20px;
  }

  .panel-header {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
  }

  .panel-header strong {
    text-align: left;
  }

  .premium-panel ul {
    gap: 10px;
    margin-top: 20px;
  }

  .premium-panel li {
    padding: 14px;
  }

  .contact-section {
    padding-bottom: 62px;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    gap: 14px;
    padding: 22px 0 32px;
  }
}
