:root {
  --bg: #0b0b0f;
  --bg-elev: #14141b;
  --bg-elev-2: #1c1c25;
  --border: #25252e;
  --border-strong: #34343f;
  --text: #f1f1f4;
  --text-muted: #9a9aa6;
  --accent: #fe2c55;
  --accent-soft: rgba(254, 44, 85, 0.12);
  --success: #25f4ee;
  --warning: #fbbc04;
  --danger: #ff5c5c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --font:
    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas,
    'Liberation Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border 0.15s ease,
    opacity 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: #ff4569;
  border-color: #ff4569;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn.ghost:hover {
  background: var(--bg-elev);
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn.sm {
  padding: 7px 12px;
  font-size: 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 13px;
}

/* ============== LANDING ============== */

body.landing {
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(254, 44, 85, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 30%,
      rgba(37, 244, 238, 0.07),
      transparent 60%
    ),
    var(--bg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #b30032);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.18);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-cta {
  display: flex;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  padding: 80px 48px 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero .accent {
  color: var(--accent);
  background: linear-gradient(120deg, #fe2c55 0%, #ff7196 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 24px;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.hero-art {
  position: relative;
}

.hero-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero-dot.red {
  background: #ff5c5c;
}
.hero-dot.teal {
  background: #25f4ee;
}
.hero-dot.mute {
  background: #4a4a55;
}

.hero-card-title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-account {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  margin-bottom: 8px;
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b30032);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.hero-avatar.alt {
  background: linear-gradient(135deg, #25f4ee, #0b8c89);
  color: #000;
}

.hero-avatar.alt2 {
  background: linear-gradient(135deg, #fbbc04, #c08200);
  color: #000;
}

.hero-name {
  font-weight: 600;
  font-size: 14px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.success {
  background: rgba(37, 244, 238, 0.14);
  color: var(--success);
}

.badge.scheduled {
  background: rgba(251, 188, 4, 0.14);
  color: var(--warning);
}

.badge.pending {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.badge.failed {
  background: rgba(255, 92, 92, 0.14);
  color: var(--danger);
}

.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section.alt {
  background: var(--bg-elev);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps li {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-frame {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.2), transparent 60%);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.demo-window {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}

.demo-url {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 10px;
  font-family: ui-monospace, monospace;
}

.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--border);
}

.demo-tabs span {
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.demo-tabs span.active {
  background: var(--bg-elev-2);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.demo-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 12px 0 6px;
  font-weight: 700;
}

.demo-input,
.demo-textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.demo-textarea {
  min-height: 64px;
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.demo-side h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.demo-job {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

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

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card header {
  margin-bottom: 16px;
}

.price-card .price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0;
}

.price-card .price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.price-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}

.price-card li {
  font-size: 14px;
  color: var(--text);
}

.price-card li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
  align-self: stretch;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.6;
}

.cta-band {
  padding: 72px 48px;
  background:
    linear-gradient(120deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.06)),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 24px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 56px 48px 24px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-cols h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-cols a {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-cols a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .hero,
  .grid-3,
  .steps,
  .pricing-grid,
  .footer-inner,
  .footer-cols,
  .demo-body {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 24px;
    gap: 32px;
  }
  .section,
  .cta-band,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }
  .hero h1 {
    font-size: 40px;
  }
  .section-head h2,
  .cta-inner h2 {
    font-size: 28px;
  }
}

/* ============== AUTH PAGES ============== */

body.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(254, 44, 85, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(37, 244, 238, 0.08), transparent 60%),
    var(--bg);
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
}

.auth-card .brand {
  margin-bottom: 26px;
  font-size: 16px;
}

.auth-card h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.auth-card .lead {
  font-size: 14px;
  margin: 0 0 22px;
}

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

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-form .btn.primary {
  margin-top: 4px;
  padding: 14px;
}

.auth-error {
  background: rgba(255, 92, 92, 0.08);
  color: #ffbcbc;
  border: 1px solid rgba(255, 92, 92, 0.3);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.auth-error[hidden] {
  display: none;
}

.auth-meta {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.auth-meta a {
  font-weight: 600;
}

/* ============== APP DASHBOARD ============== */

body.app {
  background: var(--bg);
  color: var(--text);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.app-tabs {
  display: flex;
  gap: 6px;
}

.app-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

.app-tabs button:hover {
  color: var(--text);
}

.app-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.app-user button {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}

.app-user button:hover {
  background: var(--bg-elev-2);
}

main.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.panel p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.tabpanel[hidden] {
  display: none;
}

input[type='text'],
input[type='url'],
input[type='datetime-local'],
input[type='email'],
input[type='password'],
select,
textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .row.cols-2 {
    grid-template-columns: 1fr;
  }
}

.account-row,
.job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  border-radius: 10px;
  margin-bottom: 8px;
}

.account-row strong,
.job-row strong {
  display: block;
  font-size: 14px;
}

.account-row .muted,
.job-row .muted {
  font-size: 12px;
}

.btn-danger {
  background: transparent;
  border: 1px solid #ff5c5c;
  color: #ff5c5c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-danger:hover {
  background: rgba(255, 92, 92, 0.1);
}

.empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.flash {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.flash.success {
  background: rgba(37, 244, 238, 0.1);
  color: var(--success);
  border: 1px solid rgba(37, 244, 238, 0.3);
}

.flash.error {
  background: rgba(255, 92, 92, 0.08);
  color: #ffbcbc;
  border: 1px solid rgba(255, 92, 92, 0.3);
}

.flash[hidden] {
  display: none;
}
