:root {
  color-scheme: light;
  --tm-bg-start: #7928ca;
  --tm-bg-end: #d6006c;
  --tm-hero-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --tm-panel-bg: rgba(255, 255, 255, 0.96);
  --tm-panel-border: rgba(255, 255, 255, 0.4);
  --tm-text-muted: #6c757d;
  --tm-accent: #6610f2;
  --tm-accent-soft: rgba(102, 16, 242, 0.12);
  --tm-surface-alt: #f8f9fc;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --tm-bg-start: #111827;
  --tm-bg-end: #312e81;
  --tm-hero-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  --tm-panel-bg: rgba(24, 26, 31, 0.96);
  --tm-panel-border: rgba(255, 255, 255, 0.08);
  --tm-text-muted: #adb5bd;
  --tm-accent-soft: rgba(147, 51, 234, 0.18);
  --tm-surface-alt: #1f2430;
}

body {
  min-height: 100vh;
  background-image: linear-gradient(150deg, var(--tm-bg-start), var(--tm-bg-end));
  background-attachment: fixed;
}

.tm-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.tm-panel {
  background: var(--tm-panel-bg);
  border: 1px solid var(--tm-panel-border);
  border-radius: 18px;
  box-shadow: var(--tm-hero-shadow);
  backdrop-filter: blur(8px);
}

.tm-topbar {
  padding: 1rem 1.25rem;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.tm-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(145deg, #6610f2, #0d6efd);
  box-shadow: 0 12px 24px rgba(102, 16, 242, 0.25);
}

.tm-brand-text strong {
  display: block;
  font-size: 1.05rem;
}

.tm-brand-text span {
  display: block;
  color: var(--tm-text-muted);
  font-size: 0.9rem;
}

.tm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.tm-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.tm-theme-toggle {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

html[data-theme="dark"] .tm-theme-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.45);
}

.tm-hero {
  padding: 2.2rem 1.25rem 1.5rem;
}

.tm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--tm-accent-soft);
  color: var(--tm-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.tm-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.tm-lead {
  color: var(--tm-text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

.tm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.tm-button {
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}

.tm-button-light {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .tm-button-light {
  color: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.18);
}

.tm-stat-grid,
.tm-feature-grid,
.tm-steps-grid,
.tm-policy-grid {
  display: grid;
  gap: 1rem;
}

.tm-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1.5rem;
}

.tm-feature-grid,
.tm-policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.tm-steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tm-card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--tm-surface-alt);
  padding: 1.1rem;
}

html[data-theme="dark"] .tm-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.tm-card h3,
.tm-card h4 {
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
}

.tm-card p,
.tm-card li,
.tm-policy-copy,
.tm-section-copy {
  color: var(--tm-text-muted);
}

.tm-card ul,
.tm-policy-copy ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.tm-section {
  padding: 0 1.25rem 1.5rem;
}

.tm-section-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.tm-section-intro {
  max-width: 760px;
  color: var(--tm-text-muted);
  margin-bottom: 1.2rem;
}

.tm-highlight {
  color: var(--tm-accent);
}

.tm-hero-visual,
.tm-inline-visual {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.4rem;
}

html[data-theme="dark"] .tm-hero-visual,
html[data-theme="dark"] .tm-inline-visual {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.35);
}

.tm-showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: center;
}

.tm-policy-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.tm-policy-panel {
  padding: 1.6rem 1.25rem;
}

.tm-policy-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.tm-policy-meta {
  color: var(--tm-text-muted);
  font-size: 0.95rem;
}

.tm-policy-section + .tm-policy-section {
  margin-top: 1.5rem;
}

.tm-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: var(--tm-text-muted);
  font-size: 0.95rem;
}

html[data-theme="dark"] .tm-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tm-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.tm-link-list a {
  color: inherit;
}

.tm-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tm-form-stack {
  display: grid;
  gap: 1rem;
}

.tm-form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.tm-form-field input,
.tm-form-field select,
.tm-form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  padding: 0.8rem 0.95rem;
}

html[data-theme="dark"] .tm-form-field input,
html[data-theme="dark"] .tm-form-field select,
html[data-theme="dark"] .tm-form-field textarea {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.4);
}

.tm-form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.tm-form-help {
  display: block;
  margin-top: 0.45rem;
  color: var(--tm-text-muted);
  font-size: 0.92rem;
}

.tm-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 14px;
  background: var(--tm-surface-alt);
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .tm-checkbox-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.tm-checkbox-row input {
  margin-top: 0.2rem;
}

.tm-result-box {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--tm-surface-alt);
  padding: 1rem;
}

html[data-theme="dark"] .tm-result-box {
  border-color: rgba(255, 255, 255, 0.08);
}

.tm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .tm-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tm-shell,
  .tm-policy-shell {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .tm-topbar,
  .tm-hero,
  .tm-section,
  .tm-policy-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
