:root {
  color-scheme: dark;
  --bg: #07070a;
  --text: #f7f4ff;
  --muted: #c9c2d9;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff8a00;
  --accent-2: #8a4dff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 20%, rgba(138, 77, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 14% 82%, rgba(255, 138, 0, 0.15), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  min-height: 100vh;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
}

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

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(100%, 590px);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-description {
  width: min(100%, 620px);
  margin-top: 22px;
}

.hero-description p {
  margin-top: 12px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-copy .app-availability {
  width: auto;
  margin-top: 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.phone {
  width: min(78vw, 285px);
  aspect-ratio: 1284 / 2778;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: #111;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

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

.phone.back {
  position: absolute;
  transform: translate(-92px, 34px) rotate(-7deg);
  opacity: 0.72;
}

.phone.front {
  position: relative;
  transform: translate(72px, -10px) rotate(5deg);
}

.section-anchor {
  scroll-margin-top: 96px;
}

.page-section {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 72px;
}

.page-heading {
  max-width: 780px;
}

.page-heading h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.step-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 900;
}

.step-card h2 {
  margin: 30px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.info-panel {
  max-width: 860px;
  margin-top: 44px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

.info-panel p + p {
  margin-top: 20px;
}

.organizer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: start;
  gap: clamp(34px, 6vw, 74px);
}

.organizer-visual {
  position: sticky;
  top: 112px;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.organizer-phone {
  width: min(70vw, 255px);
}

.organizer-phone.back {
  transform: translate(-72px, 38px) rotate(-6deg);
}

.organizer-phone.front {
  transform: translate(60px, -14px) rotate(5deg);
}

.simple-content {
  max-width: 720px;
  margin-top: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.simple-content p {
  margin: 14px 0;
}

.simple-content a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 0, 0.55);
  text-underline-offset: 4px;
}

.legal-content {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.legal-header {
  margin-bottom: 34px;
}

.legal-header h1 {
  color: var(--text);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  overflow-wrap: anywhere;
}

.legal-header p {
  margin-top: 20px;
}

.legal-content h2 {
  margin: 38px 0 14px;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1.12rem;
}

.legal-content p {
  margin: 14px 0;
}

.legal-content ul {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.legal-content li {
  margin: 8px 0;
}

.legal-content hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.legal-content a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 0, 0.55);
  text-underline-offset: 4px;
}

.language-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 34px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.nav-links .language-switch {
  margin-bottom: 0;
}

.language-button {
  min-width: 48px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.language-button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.lang-panel {
  display: none;
}

.lang-panel.active {
  display: block;
}

@media (max-width: 840px) {
  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    grid-template-columns: 1fr;
  }

  .page-section {
    min-height: auto;
    padding-top: 42px;
  }

  .page-heading h1 {
    font-size: clamp(2.6rem, 12vw, 4.6rem);
    line-height: 0.96;
  }

  .legal-header h1 {
    font-size: clamp(2.15rem, 10vw, 3.6rem);
    line-height: 1;
  }

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

  .organizer-layout {
    grid-template-columns: 1fr;
  }

  .organizer-visual {
    position: relative;
    top: auto;
    min-height: 440px;
    overflow: hidden;
  }

  .organizer-phone {
    width: min(56vw, 235px);
  }

  .organizer-phone.back {
    transform: translate(-54px, 28px) rotate(-6deg);
  }

  .organizer-phone.front {
    transform: translate(54px, -8px) rotate(5deg);
  }

  .hero-visual {
    min-height: 430px;
    overflow: hidden;
  }

  .phone {
    width: min(56vw, 240px);
  }

  .phone.back {
    transform: translate(-54px, 26px) rotate(-7deg);
  }

  .phone.front {
    transform: translate(56px, -8px) rotate(5deg);
  }
}

@media (max-width: 520px) {
  .nav,
  .hero,
  .page-section {
    width: min(100% - 40px, 1160px);
  }

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

  h1 {
    font-size: clamp(3.6rem, 15vw, 5.2rem);
    line-height: 0.92;
  }

  .hero-copy p {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-copy .app-availability {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .page-section {
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .page-heading h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .info-panel {
    margin-top: 32px;
    padding: 22px;
  }

  .info-panel p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .info-panel p + p {
    margin-top: 16px;
  }

  .legal-content {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .legal-header {
    margin-bottom: 28px;
  }

  .legal-header h1 {
    font-size: clamp(2rem, 10.5vw, 2.9rem);
    line-height: 1.02;
  }

  .legal-header p {
    margin-top: 16px;
  }

  .legal-content h2 {
    margin-top: 30px;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .legal-content hr {
    margin: 28px 0;
  }

  .nav-links {
    font-size: 0.88rem;
    gap: 10px 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }
}
