/* test-cloak.css – TENDERA TEST 2025 dark / calm */

/* ------------------ TOKENS ------------------ */

:root {
  --bg-body: #020617;
  --bg-surface: #020617;
  --bg-surface-soft: #0b1220;
  --bg-card: #020617;

  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-strong: rgba(148, 163, 184, 0.45);

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #e0f2fe;

  --accent: #22d3ee;
  --accent-strong: #3b82f6;
  --accent-subtle: rgba(34, 211, 238, 0.12);

  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.75);

  --glass-blur: 22px;
}

/* ------------------ RESET / BASE ------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.12) 0, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12) 0, transparent 45%),
    var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.tc-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------ HEADER ------------------ */

.tc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.tc-header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Brand */

.tc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tc-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.3) 0, transparent 55%),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.tc-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tc-brand-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.tc-brand-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-brand-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ------------------ NAV ------------------ */

.tc-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.tc-nav-left,
.tc-nav-right {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.tc-nav-link {
  position: relative;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--text-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.tc-nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tc-nav-link:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.tc-nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ------------------ MAIN LAYOUT ------------------ */

.tc-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2.8rem 2.2rem 4rem;
  flex: 1 0 auto;
}

/* ------------------ HERO ------------------ */

.tc-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.tc-hero-text {
  max-width: 42rem;
}

.tc-hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.tc-hero-text h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

/* new hero copy */

.tc-hero-lead {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.98rem;
  color: var(--text-main);
}

.tc-hero-sub {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Hero actions */

.tc-hero-actions-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.tc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Chips / meta */

.tc-hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-soft);
}

.tc-chip-soft {
  background: rgba(15, 23, 42, 0.9);
}

/* Hero aside (single clean card with features + schnellstart) */

.tc-hero-aside {
  border-radius: var(--radius-lg);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tc-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  font-size: 0.8rem;
}

.tc-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.tc-hero-status {
  font-weight: 600;
}

.tc-hero-list {
  margin: 0.3rem 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

/* schnellstart inside same card */

.tc-hero-schnellstart {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.8rem;
}

.tc-hero-mini-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.tc-hero-mini-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

/* ------------------ BUTTONS ------------------ */

.tc-btn-primary,
.tc-btn-ghost,
.tc-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.13s ease,
    box-shadow 0.13s ease,
    filter 0.13s ease,
    border-color 0.13s ease,
    background 0.13s ease;
}

.tc-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.tc-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
}

.tc-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.tc-btn-ghost {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--border-subtle);
  color: var(--text-soft);
}

.tc-btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}

.tc-btn-ghost-light {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(59, 130, 246, 0.7);
  color: var(--accent);
}

/* ------------------ TEXT UTILS ------------------ */

.tc-muted {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tc-muted-sm {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ------------------ SECTIONS ------------------ */

.tc-section {
  margin-bottom: 3rem;
}

.tc-section-header {
  margin-bottom: 1.4rem;
}

.tc-section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.tc-section-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tc-section-header-tight {
  margin-bottom: 1rem;
}

.tc-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Section grid (scenarios) */

.tc-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* Stat cards */

.tc-stat-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.tc-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tc-stat-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.tc-chip-row {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tc-chip-outline {
  border-color: var(--border-subtle);
  background: rgba(15, 23, 42, 0.95);
}

/* Section split (API) */

.tc-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.tc-section-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Flow list */

.tc-flow-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tc-flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.6rem;
}

/* Code block */

.tc-code-col {
  align-self: stretch;
}

.tc-code-block {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #020617;
  border: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.82rem;
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}

.tc-code-block code {
  color: var(--text-main);
}

/* Snack / tip */

.tc-snack {
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
}

.tc-snack-label {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-subtle);
  border: 1px solid rgba(34, 211, 238, 0.7);
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tc-snack-text {
  color: var(--text-soft);
}

/* ------------------ PROTECTED APP AREA ------------------ */

.tc-app {
  margin-top: 2.8rem;
  margin-bottom: 3rem;
  display: none;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-strong);
  padding: 1.6rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-strong);
  animation: tc-app-fade-in 240ms ease-out;
}

.tc-app-visible {
  display: block;
}

@keyframes tc-app-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tc-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

.tc-app-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.tc-app-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tc-app-tag {
  align-self: flex-start;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

/* App grid + cards */

.tc-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}

.tc-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 1.25rem 1.3rem 1.1rem;
  font-size: 0.92rem;
}

.tc-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}

.tc-list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.tc-list-numbered {
  list-style: decimal;
}

/* Meter */

.tc-meter {
  margin: 0.4rem 0 0.7rem;
}

.tc-meter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}

.tc-meter-bar {
  position: relative;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.tc-meter-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, var(--accent), var(--accent-strong));
}

.tc-meter-value {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* Pill row */

.tc-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tc-pill {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
}

.tc-pill-green {
  border-color: rgba(22, 163, 74, 0.7);
  color: #bbf7d0;
}

.tc-pill-blue {
  border-color: rgba(59, 130, 246, 0.7);
  color: #bfdbfe;
}

.tc-pill-orange {
  border-color: rgba(249, 115, 22, 0.8);
  color: #fed7aa;
}

/* App footer */

.tc-app-footer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.tc-link-like {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: underline;
}

.tc-link-like:hover {
  color: var(--accent-strong);
}

/* ------------------ CTA STRIP ------------------ */

.tc-cta-strip {
  margin-top: 3.4rem;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.tc-cta-main h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.tc-cta-main p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------ FOOTER ------------------ */

.tc-footer {
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 1);
  background: #020617;
  padding: 1rem 2.2rem 1.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.tc-footer-links {
  margin-top: 0.4rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.tc-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
}

.tc-footer a:hover {
  text-decoration: underline;
}

/* ------------------ RESPONSIVE ------------------ */

@media (max-width: 1024px) {
  .tc-main {
    padding-inline: 1.6rem;
  }

  .tc-header-inner {
    padding-inline: 1.6rem;
  }
}

@media (max-width: 900px) {
  .tc-section-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .tc-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .tc-nav {
    width: 100%;
    justify-content: space-between;
  }

  .tc-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .tc-app {
    padding-inline: 1.3rem;
  }

  .tc-app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tc-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------ OPTIONAL STUBS ------------------ */

.tc-info-strip,
.tc-info-badges,
.tc-info-badge {
  /* kept for compatibility if referenced somewhere */
}

/* make sure the app can host the overlay */
.tc-app {
  position: relative; /* add this if not already there */
}

/* flashing outline when protected area becomes visible */
.tc-app-flash::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(34, 211, 238, 0.9); /* cyan */
  box-shadow:
    0 0 0 0 rgba(34, 211, 238, 0.4),
    0 0 40px rgba(34, 211, 238, 0.8);
  pointer-events: none;
  opacity: 0;
  animation: tc-app-flash 1.1s ease-out 0s 2;
}

@keyframes tc-app-flash {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}
