:root {
  --echo-bg: #060606;
  --echo-ink: #fff;
  --echo-muted: #494949;
  --echo-soft: rgba(255, 255, 255, 0.58);
  --echo-line: rgba(255, 255, 255, 0.1);
  --echo-field: #141414;
  --echo-field-2: #1b1b1b;
  --echo-purple: #6d28d9;
  --echo-purple-2: #7c3aed;
  --echo-font: Inter, "Helvetica Neue", sans-serif;
  --echo-display: Inter, "Helvetica Neue", sans-serif;
  --echo-serif: "Playfair Display", Georgia, serif;
  --echo-oswald: Oswald, sans-serif;
  --echo-cormorant: "Cormorant Garamond", Georgia, serif;
  --echo-baskerville: "Libre Baskerville", Georgia, serif;
  --echo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.echo-html,
body.echo-page {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  background: #000 !important;
  color: var(--echo-ink);
  font-family: var(--echo-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.echo-page {
  overflow: hidden;
  overflow-x: hidden;
}

.echo-page *,
.echo-page *::before,
.echo-page *::after {
  box-sizing: border-box;
}

body.echo-page button,
body.echo-page input,
body.echo-page select,
body.echo-page a {
  font-family: inherit;
}

.echo-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
}

.echo-frame {
  position: relative;
  z-index: 2;
  width: min(1360px, 100%);
  height: 100%;
  margin: 0 auto;
}

.echo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.echo-bg__spot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 8%;
  display: block;
}

.echo-bg__grain {
  position: absolute;
  inset: -20%;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.echo-giant {
  position: absolute;
  left: 22px;
  top: 82%;
  z-index: 1;
  margin: 0;
  pointer-events: none;
  line-height: 0.76;
  transform: rotate(-90deg);
  transform-origin: left top;
  white-space: nowrap;
}

.echo-giant__kicker {
  display: block;
  font-family: var(--echo-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #494949;
}

.echo-giant__word {
  display: block;
  font-family: var(--echo-display);
  font-weight: 800;
  font-size: clamp(84px, 10vw, 168px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
}

.echo-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 3vw, 64px);
  height: 100%;
  padding: 96px 4% 0 clamp(148px, 12vw, 200px);
}

.echo-phone-col {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(340px, 26vw, 440px);
  height: clamp(540px, 64svh, 720px);
}

.echo-phone-scene {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.echo-phone-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  background: transparent;
}

.echo-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #111;
  margin-bottom: 22px;
}

.echo-tab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: #8a8a8a;
  font-family: var(--echo-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.echo-tab.is-on {
  background: var(--echo-purple);
  color: #fff;
}

.echo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.echo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.echo-label {
  font-family: var(--echo-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.echo-control {
  position: relative;
  display: flex;
  align-items: center;
}

.echo-control > i,
.echo-control > svg {
  position: absolute;
  left: 12px;
  width: 13px;
  height: 13px;
  color: #6b6b6b;
  pointer-events: none;
}

.echo-input,
.echo-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--echo-field);
  color: #fff;
  padding: 0 40px 0 34px;
  font-family: var(--echo-font);
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.echo-input::placeholder {
  color: #5c5c5c;
}

.echo-input:focus,
.echo-select:focus {
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.55);
}

.echo-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: #7a7a7a;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.echo-eye i,
.echo-eye svg {
  width: 14px;
  height: 14px;
}

.echo-select-wrap {
  position: relative;
}

.echo-select {
  appearance: none;
  padding-right: 28px;
}

.echo-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #aaa;
  border-bottom: 1.5px solid #aaa;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.echo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.echo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--echo-ease), background 0.25s var(--echo-ease);
}

.echo-btn:hover {
  transform: translateY(-1px);
}

.echo-btn--solid {
  background: linear-gradient(180deg, var(--echo-purple-2), var(--echo-purple));
  color: #fff;
}

.echo-btn--google {
  background: #fff;
  color: #111;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
  font-size: 12px;
}

.echo-btn--google svg {
  width: 15px;
  height: 15px;
}

.echo-link {
  align-self: center;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 10px;
  text-decoration: none;
  font-family: var(--echo-baskerville);
  font-style: italic;
}

.echo-link:hover {
  color: #fff;
}

#echo-pin-resend {
  align-self: stretch;
  margin-top: 4px;
  padding: 10px 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #aaa;
  font-size: 12px;
  font-style: normal;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
#echo-pin-resend:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
#echo-pin-resend:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.echo-reg-col {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  align-self: flex-end;
  width: clamp(360px, 28vw, 440px);
  min-height: 0;
  margin-bottom: 8vh;
  padding: 16px 18px 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.9), rgba(8, 8, 8, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  max-height: calc(100svh - 8vh - 104px);
  overflow: auto;
}

.echo-reg__eyebrow {
  margin: 0 0 8px;
  font-family: var(--echo-oswald);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #8a8a8a;
}

.echo-reg__title {
  margin: 0;
  font-family: var(--echo-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.95;
}

.echo-reg__lead {
  margin: 10px 0 22px;
  font-family: var(--echo-cormorant);
  font-style: italic;
  font-size: 18px;
  color: var(--echo-soft);
}

.echo-panel-head {
  margin: 0 0 10px;
}

.echo-panel-head .echo-reg__eyebrow {
  margin-bottom: 4px;
}

.echo-panel-head .echo-reg__title {
  font-size: clamp(28px, 2.4vw, 36px);
}

.echo-panel-head .echo-reg__lead {
  margin: 6px 0 0;
  font-size: 14px;
}

.echo-login-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}

.echo-login-point {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.3;
}

.echo-login-point i,
.echo-login-point svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #c4b5fd;
}

#form-container {
  min-height: 0;
}

.echo-reg-col .echo-input,
.echo-reg-col .echo-select {
  min-height: 42px;
  font-size: 13px;
}

.echo-reg-col .echo-btn {
  min-height: 42px;
}

.echo-reg-col .echo-form {
  gap: 12px;
  margin-top: 4px;
}

.echo-reg-col .echo-tabs {
  margin-bottom: 18px;
}

.echo-reg-col .echo-tab {
  min-height: 38px;
  font-size: 11px;
}

.echo-toast {
  position: absolute;
  top: 88px;
  right: 5vw;
  z-index: 6;
  width: min(360px, calc(100% - 40px));
  margin: 0;
  padding: 14px 40px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 12, 0.88);
  display: grid;
  gap: 6px;
}
.echo-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#form-register .echo-btn--google {
  display: none !important;
}
.echo-pin {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}
.echo-pin[hidden] { display: none !important; }
.echo-pin__card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.echo-pin__kicker {
  margin: 0 0 8px;
  font-family: var(--echo-oswald);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: #8a8a8a;
}
.echo-pin__title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.echo-pin__lead {
  margin: 0 0 18px;
  color: var(--echo-soft);
  font-size: 14px;
  line-height: 1.45;
}
.echo-pin__form {
  display: grid;
  gap: 12px;
}
.echo-pin__input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.28em;
  text-align: center;
  font-family: inherit;
}
.echo-pin__err {
  margin: 0;
  color: #f3b4b4;
  font-size: 13px;
}

.echo-toast__kicker {
  font-family: var(--echo-oswald);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.echo-toast p {
  margin: 0;
  font-family: var(--echo-serif);
  font-style: italic;
  font-size: 16px;
}

.echo-toast--err {
  border-color: rgba(255, 180, 180, 0.35);
}

.echo-hidden {
  display: none !important;
}

.echo-page .echo-tab:focus-visible,
.echo-page .echo-btn:focus-visible,
.echo-page .echo-link:focus-visible,
.echo-page .echo-input:focus-visible,
.echo-page .echo-select:focus-visible,
.echo-page .echo-eye:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

@media (min-width: 2000px) {
  .echo-frame {
    width: min(1520px, 100%);
  }

  .echo-phone-col {
    width: 460px;
    height: min(68svh, 760px);
  }

  .echo-reg-col {
    width: 460px;
    min-height: 0;
  }
}

@media (max-width: 1099px) {
  body.echo-page {
    overflow: auto;
    overflow-x: hidden;
  }

  .echo-hero {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .echo-frame {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }

  .echo-giant {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    transform: none;
    transform-origin: center;
    text-align: center;
    margin: 0 auto;
    padding: 86px 16px 0;
    line-height: 1;
    white-space: normal;
  }

  .echo-giant__kicker {
    font-size: clamp(11px, 3vw, 14px);
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  .echo-giant__word {
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -0.04em;
  }

  .echo-stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    height: auto;
    min-height: 0;
    width: 100%;
    padding: 6px 16px 28px;
  }

  .echo-phone-col {
    width: min(140px, 36vw);
    height: min(16vh, 150px);
    margin: 0 auto;
  }

  .echo-reg-col {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px 12px 14px;
    max-height: none;
    align-self: stretch;
  }

  #form-container {
    min-height: 0;
  }

  .echo-login-points,
  .echo-panel-head {
    display: none;
  }

  .echo-reg-col .echo-input,
  .echo-reg-col .echo-select,
  .echo-reg-col .echo-btn {
    min-height: 38px;
  }

  .echo-reg-col .echo-form {
    gap: 8px;
    margin-top: 0;
  }

  .echo-reg-col .echo-tabs {
    margin-bottom: 12px;
  }

  .echo-field {
    gap: 4px;
  }

  .echo-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .echo-reg-col .echo-input,
  .echo-reg-col .echo-select,
  .echo-reg-col .echo-btn,
  .echo-form,
  .echo-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .echo-giant {
    padding-top: 72px;
  }

  .echo-giant__word {
    font-size: clamp(28px, 8vw, 40px);
  }

  .echo-stage {
    padding: 2px 14px 20px;
    gap: 4px;
  }

  .echo-phone-col {
    width: min(120px, 32vw);
    height: min(14vh, 132px);
  }

  .echo-reg-col {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .echo-page *,
  .echo-page *::before,
  .echo-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
