:root {
  --bg: #090b10;
  --bg-deep: #050608;
  --panel: rgba(16, 18, 24, 0.88);
  --panel-soft: rgba(20, 24, 31, 0.72);
  --panel-strong: rgba(13, 15, 20, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f1e8;
  --muted: #a6a098;
  --accent: #f26a3d;
  --accent-soft: #ffbf91;
  --accent-cold: #9fbbd3;
  --good: #7cd6a3;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(242, 106, 61, 0.16), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(159, 187, 211, 0.18), transparent 24%),
    linear-gradient(180deg, #07080c 0%, #0b0d12 42%, #12151c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
}

.app-shell {
  width: min(1280px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar,
.hero-card,
.story-panel,
.feature-card,
.auth-card,
.glass-panel,
.showcase-card,
.promise-band {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(12, 14, 18, 0.7);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.topbar-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.brand-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.brand-mark {
  width: 88px;
  min-width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 215, 120, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 214, 122, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.eyebrow,
.section-tag,
.mini-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.topbar h1,
.hero-card h2 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 4.2vw, 4.55rem);
  line-height: 0.96;
  max-width: 9ch;
  font-weight: 700;
}

.dashboard-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  line-height: 1;
}

.topbar-copy,
.hero-lead,
.feature-card p,
.helper-copy,
.stack-list p,
.offer-list,
.promise-copy p,
.showcase-card p,
.story-step p,
.auth-form label span {
  color: var(--muted);
}

.topbar-copy {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 1.03rem;
  line-height: 1.7;
}

.top-actions,
.hero-cta,
.dashboard-actions,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-actions {
  justify-content: flex-end;
  align-items: center;
}

.topbar-login {
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 18, 24, 0.96) 0%, rgba(10, 12, 17, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 44px rgba(0, 0, 0, 0.24);
}

.top-login-head,
.panel-top,
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.top-login-head h3,
.panel-top h3,
.feature-card h3,
.showcase-card h3,
.story-step h3,
.promise-copy h3 {
  margin: 8px 0 0;
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1.08;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 24px;
  margin-bottom: 24px;
}

.hero-card,
.story-panel,
.feature-card,
.auth-card,
.glass-panel,
.showcase-card,
.promise-band {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after,
.glass-panel::after,
.showcase-card::after,
.promise-band::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
  pointer-events: none;
}

.hero-card {
  min-height: 540px;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(16, 18, 24, 0.78) 0%, rgba(9, 10, 14, 0.92) 100%),
    radial-gradient(circle at top right, rgba(242, 106, 61, 0.18), transparent 26%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-wide {
  min-height: 100%;
}

.hero-kicker {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 106, 61, 0.24);
  background: rgba(242, 106, 61, 0.1);
  color: #ffd5c2;
  width: fit-content;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-cta {
  align-items: center;
  margin-top: 30px;
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.story-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(20, 24, 31, 0.84) 0%, rgba(11, 13, 18, 0.94) 100%);
}

.story-step {
  padding: 18px 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-index {
  display: inline-flex;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  color: var(--accent-soft);
}

.story-step p {
  margin: 10px 0 0;
  line-height: 1.64;
}

.feature-strip,
.showcase-grid,
.dashboard-grid {
  display: grid;
  gap: 22px;
}

.feature-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
}

.feature-card,
.glass-panel {
  padding: 26px;
}

.feature-card {
  min-height: 220px;
  background: rgba(14, 16, 21, 0.84);
}

.feature-emoji {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-soft);
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.showcase-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-bottom: 24px;
}

.showcase-card {
  padding: 30px;
  min-height: 290px;
}

.showcase-primary {
  background:
    linear-gradient(180deg, rgba(21, 20, 18, 0.84) 0%, rgba(11, 13, 18, 0.96) 100%),
    radial-gradient(circle at left top, rgba(159, 187, 211, 0.16), transparent 34%);
}

.showcase-card p {
  margin: 14px 0 0;
  max-width: 56ch;
  line-height: 1.74;
}

.offer-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  line-height: 1.66;
}

.offer-list li {
  position: relative;
  padding-left: 18px;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.promise-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 30px;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(12, 15, 20, 0.78) 0%, rgba(8, 10, 14, 0.96) 100%),
    radial-gradient(circle at right top, rgba(242, 106, 61, 0.14), transparent 28%);
}

.promise-copy p {
  max-width: 58ch;
  line-height: 1.72;
}

.promise-metrics {
  display: grid;
  gap: 14px;
}

.promise-metric {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promise-metric strong {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.auth-card,
.glass-panel {
  background: var(--panel-soft);
}

.dashboard {
  margin-top: 32px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.dashboard-tools {
  margin-bottom: 24px;
}

.devices-panel {
  margin-top: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 106, 61, 0.12), rgba(242, 106, 61, 0.06));
  border: 1px solid rgba(242, 106, 61, 0.24);
  color: #ffd7c9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab-btn,
.ghost-btn,
.primary-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.ghost-btn {
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(38, 42, 51, 0.95), rgba(19, 22, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.14);
}

.ghost-btn:hover,
.tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 196, 145, 0.34);
  background:
    linear-gradient(180deg, rgba(53, 57, 68, 0.98), rgba(26, 29, 37, 1));
}

.primary-btn {
  padding: 14px 22px;
  border-radius: 18px;
  color: #1a1307;
  font-weight: 700;
  background:
    linear-gradient(135deg, #ffc88c 0%, #ff9d5d 26%, #f17846 62%, #ec5d32 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 34px rgba(242, 106, 61, 0.26);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 22px 44px rgba(242, 106, 61, 0.32);
}

.primary-btn:focus-visible,
.ghost-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 210, 163, 0.78);
  outline-offset: 2px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.auth-form-compact {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-top: 0;
}

.auth-cta-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.auth-cta-row .primary-btn,
.auth-cta-row .ghost-btn {
  width: 100%;
}

.register-form {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-form .primary-btn,
.register-form label:last-of-type,
.register-form label:nth-last-of-type(2) {
  grid-column: 1 / -1;
}

.signup-panel {
  margin-bottom: 28px;
}

.signup-form {
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 6px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.helper-copy-top {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.94), rgba(8, 9, 12, 0.98));
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: #7f7a74;
}

.language-select {
  min-width: 132px;
  appearance: none;
}

.time-row,
.stats-row {
  display: grid;
  gap: 18px;
}

.time-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-row {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.metric-card {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 20, 26, 0.94), rgba(10, 12, 17, 0.98));
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.95rem;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.list-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-card h4,
.list-card p {
  margin: 0 0 8px;
}

.list-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tiny-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(159, 187, 211, 0.1);
  border: 1px solid rgba(159, 187, 211, 0.18);
  color: #dbe8f0;
  font-size: 0.86rem;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(12, 16, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .topbar,
  .hero-stage,
  .feature-strip,
  .showcase-grid,
  .promise-band,
  .dashboard-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .topbar h1,
  .hero-card h2,
  .dashboard-head h2 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .topbar,
  .hero-card,
  .story-panel,
  .feature-card,
  .glass-panel,
  .showcase-card,
  .promise-band {
    border-radius: 24px;
  }

  .hero-card,
  .feature-card,
  .glass-panel,
  .showcase-card,
  .promise-band,
  .topbar-login {
    padding: 22px;
  }

  .brand-mark {
    width: 72px;
    min-width: 72px;
    height: 72px;
  }

  .auth-form-compact,
  .register-form,
  .time-row {
    grid-template-columns: 1fr;
  }

  .auth-cta-row {
    grid-template-columns: 1fr;
  }

  .top-login-head,
  .dashboard-head {
    flex-direction: column;
  }
}
