:root {
  color: #101525;
  background: #f7f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --ink: #101525;
  --muted: #647084;
  --line: rgba(16, 21, 37, 0.1);
  --blue: #3050f2;
  --violet: #8c39ea;
  --aqua: #12b8d9;
  --green: #0f9f67;
  --red: #e13a4d;
  --amber: #f5a524;
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(27, 34, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(116deg, rgba(18, 184, 217, 0.16), transparent 28%),
    linear-gradient(160deg, transparent 46%, rgba(245, 165, 36, 0.14) 72%, transparent 100%),
    linear-gradient(180deg, #ffffff 0%, #eff5ff 48%, #fbf6f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(164deg, transparent 0 18%, rgba(48, 80, 242, 0.08) 18% 31%, transparent 31% 100%),
    linear-gradient(18deg, transparent 0 58%, rgba(140, 57, 234, 0.09) 58% 72%, transparent 72% 100%);
  pointer-events: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 950;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(48, 80, 242, 0.22);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--aqua));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(48, 80, 242, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  width: auto;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.primary-button,
.primary-link {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(48, 80, 242, 0.22);
}

.primary-button {
  min-height: 50px;
  padding: 0 18px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.secondary-link,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  cursor: pointer;
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 69px);
  padding: clamp(46px, 6vw, 88px) clamp(18px, 5vw, 64px) clamp(34px, 5vw, 72px);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(48, 80, 242, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3b4660;
  font-size: 0.88rem;
  font-weight: 850;
}

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

.phone-shell {
  position: relative;
  width: min(390px, 100%);
  min-height: 650px;
  overflow: hidden;
  padding: 22px;
  border: 10px solid #111827;
  border-radius: 46px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.92)),
    #fff;
  box-shadow: var(--shadow);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(48, 80, 242, 0.14) 0 22%, transparent 22% 100%),
    linear-gradient(22deg, transparent 0 52%, rgba(140, 57, 234, 0.12) 52% 70%, transparent 70% 100%);
  pointer-events: none;
}

.phone-status,
.app-title-row,
.balance-widget,
.live-question {
  position: relative;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 2rem;
  font-weight: 950;
}

.app-title-row img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.balance-widget {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--aqua));
  box-shadow: 0 18px 44px rgba(48, 80, 242, 0.22);
}

.balance-widget span,
.balance-widget small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.balance-widget strong {
  font-size: 2.3rem;
  line-height: 1;
}

.live-question {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(16, 21, 37, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.live-question h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.04;
}

.category-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #164e63;
  background: rgba(18, 184, 217, 0.14);
  font-size: 0.8rem;
  font-weight: 950;
}

.choice-row,
.preview-meta,
.form-row,
.panel-header,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.choice {
  flex: 1;
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  font-weight: 950;
}

.choice.yes {
  background: var(--green);
}

.choice.no {
  background: var(--red);
}

.market-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 58, 77, 0.92);
}

.market-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.preview-meta {
  color: var(--muted);
  font-weight: 850;
}

.feature-band,
.how-section,
.safety-section {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

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

.section-heading h2,
.safety-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.features article,
.steps article,
.reset-card,
.panel,
.stat-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.features article,
.steps article {
  padding: 24px;
}

.features span,
.steps strong {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  font-weight: 950;
}

.features h3,
.steps h3,
.panel h2 {
  margin-bottom: 8px;
}

.features p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.steps article:nth-child(2) strong {
  background: linear-gradient(135deg, var(--violet), var(--red));
}

.steps article:nth-child(3) strong {
  background: linear-gradient(135deg, var(--amber), var(--green));
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  margin: 0 clamp(18px, 5vw, 64px) 64px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 21, 37, 0.92), rgba(48, 80, 242, 0.76)),
    #101525;
}

.safety-section .eyebrow,
.safety-section p {
  color: rgba(255, 255, 255, 0.76);
}

.safety-section p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
}

.hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(48, 80, 242, 0.12);
}

.reset-page {
  min-height: calc(100vh - 69px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 70px) 20px;
}

.reset-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 38px);
}

.reset-card h1 {
  margin-bottom: 4px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.reset-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.reset-hero-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--aqua));
  border-radius: 8px;
  font-size: 2.5rem;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(48, 80, 242, 0.22);
}

.reset-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.password-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.password-rules li::before {
  content: "○";
  display: inline-block;
  width: 1.25rem;
  color: #94a3b8;
  font-weight: 950;
}

.password-rules li.is-met {
  color: #15803d;
}

.password-rules li.is-met::before {
  content: "✓";
  color: #15803d;
}

.error-text,
.status-text {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.error-text,
.status-text[data-type="error"] {
  color: var(--red);
}

.status-text[data-type="success"] {
  color: #15803d;
}

@media (max-width: 980px) {
  .hero,
  .features,
  .steps,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .language-select {
    width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions a,
  .primary-button {
    width: 100%;
  }

  .phone-shell {
    width: min(100%, 360px);
    min-height: 590px;
    padding: 18px;
    border-width: 8px;
    border-radius: 36px;
  }

  .app-title-row {
    font-size: 1.65rem;
  }

  .balance-widget strong {
    font-size: 2rem;
  }

  .live-question h2 {
    font-size: 1.25rem;
  }

  .choice-row,
  .preview-meta {
    align-items: stretch;
    flex-direction: column;
  }
}
