/* ==========================================================================
   TERMOPRIA INDONESIA — STYLESHEET (termopria.id)
   Namespace: .tp-* (Strictly Scoped, Zero CSS Collision)
   Theme: Nordic Ice Blue & Thermal Ember Gold
   ========================================================================== */

:root {
  --tp-ember: #ea580c;
  --tp-ember-gold: #f59e0b;
  --tp-ember-dark: #9a3412;
  --tp-ice: #0284c7;
  --tp-ice-cyan: #06b6d4;
  --tp-ice-light: #f0f9ff;
  --tp-navy: #0f172a;
  --tp-navy-light: #1e293b;
  --tp-slate: #334155;
  --tp-slate-muted: #64748b;
  --tp-border: #e2e8f0;
  --tp-border-ember: #fed7aa;
  --tp-border-ice: #bae6fd;
  --tp-bg-page: #f8fafc;
  --tp-bg-card: #ffffff;
  --tp-bg-alt: #f0f9ff;

  --tp-font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --tp-font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --tp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --tp-shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --tp-shadow-lg: 0 12px 28px -4px rgba(2, 132, 199, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --tp-shadow-xl: 0 20px 40px -6px rgba(234, 88, 12, 0.2);

  --tp-radius-sm: 6px;
  --tp-radius-md: 12px;
  --tp-radius-lg: 20px;
  --tp-radius-full: 9999px;

  --tp-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--tp-font-main);
  background-color: var(--tp-bg-page);
  color: var(--tp-slate);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body.tp-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.tp-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tp-border-ice);
  box-shadow: var(--tp-shadow-sm);
}

.tp-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--tp-navy);
}

.tp-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tp-ember), var(--tp-ice));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.tp-brand-text {
  display: flex;
  flex-direction: column;
}

.tp-brand-name {
  font-family: var(--tp-font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-navy);
}

.tp-brand-name span {
  color: var(--tp-ember);
}

.tp-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tp-ice);
}

.tp-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.tp-nav-link {
  text-decoration: none;
  color: var(--tp-slate);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--tp-transition);
}

.tp-nav-link:hover, .tp-nav-link.tp-active {
  color: var(--tp-ember);
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--tp-font-main);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--tp-transition);
}

.tp-btn-primary {
  background: linear-gradient(135deg, var(--tp-ember), var(--tp-ember-gold));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.tp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.38);
}

.tp-btn-ice {
  background: linear-gradient(135deg, var(--tp-ice), var(--tp-ice-cyan));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.tp-btn-outline {
  background: #ffffff;
  border-color: var(--tp-border-ice);
  color: var(--tp-navy);
}

.tp-btn-outline:hover {
  border-color: var(--tp-ice);
  color: var(--tp-ice);
  background: var(--tp-ice-light);
}

.tp-btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.tp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--tp-navy);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.tp-hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 50%, #f0f9ff 100%);
  border-bottom: 1px solid var(--tp-border-ice);
  position: relative;
  overflow: hidden;
}

.tp-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.tp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 0.35rem 0.85rem;
  border-radius: var(--tp-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.tp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tp-ember);
  animation: tp-pulse 2s infinite;
}

@keyframes tp-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.tp-hero-title {
  font-family: var(--tp-font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--tp-navy);
  margin-bottom: 1.25rem;
}

.tp-hero-title span.tp-fire {
  color: var(--tp-ember);
}

.tp-hero-title span.tp-frost {
  color: var(--tp-ice);
}

.tp-hero-lead {
  font-size: 1.1rem;
  color: var(--tp-slate);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.tp-stat-number {
  font-family: var(--tp-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--tp-navy);
}

.tp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tp-slate-muted);
}

.tp-hero-media {
  position: relative;
}

.tp-hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--tp-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--tp-shadow-xl);
  border: 1px solid var(--tp-border-ice);
}

.tp-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: calc(var(--tp-radius-lg) - 6px);
  display: block;
}

.tp-hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: #ffffff;
  border-radius: var(--tp-radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--tp-shadow-lg);
  border: 1px solid var(--tp-border-ice);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tp-floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--tp-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.tp-section {
  padding: 4.5rem 1.5rem;
}

.tp-section-alt {
  background-color: var(--tp-bg-alt);
}

.tp-container {
  max-width: 1240px;
  margin: 0 auto;
}

.tp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.tp-section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tp-ember);
  margin-bottom: 0.5rem;
  display: block;
}

.tp-section-title {
  font-family: var(--tp-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tp-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.tp-section-subtitle {
  font-size: 1rem;
  color: var(--tp-slate-muted);
}

/* ==========================================================================
   INTERACTIVE CONTRAST INTERVAL TIMER
   ========================================================================== */
.tp-timer-card {
  background: #ffffff;
  border: 1px solid var(--tp-border-ice);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  max-width: 1020px;
  margin: 0 auto;
}

.tp-timer-controls {
  padding: 2.5rem;
}

.tp-timer-display {
  background: linear-gradient(135deg, var(--tp-navy), var(--tp-navy-light));
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.tp-phase-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--tp-radius-full);
  margin-bottom: 1rem;
  align-self: center;
}

.tp-phase-hot {
  background: rgba(234, 88, 12, 0.25);
  color: #fb923c;
  border: 1px solid #f97316;
}

.tp-phase-cold {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border: 1px solid #0284c7;
}

.tp-phase-rest {
  background: rgba(100, 116, 139, 0.25);
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.tp-clock-digits {
  font-family: var(--tp-font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.tp-cycle-counter {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.tp-btn-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   THERMAL & HSP MATRIX CARDS
   ========================================================================== */
.tp-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tp-matrix-card {
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--tp-shadow-md);
  transition: var(--tp-transition);
  display: flex;
  flex-direction: column;
}

.tp-matrix-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tp-shadow-xl);
  border-color: var(--tp-ember);
}

.tp-matrix-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--tp-radius-full);
  margin-bottom: 0.75rem;
}

.tp-badge-hot {
  background: #fff7ed;
  color: #c2410c;
}

.tp-badge-cold {
  background: #f0f9ff;
  color: #0369a1;
}

.tp-matrix-name {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tp-navy);
  margin-bottom: 0.5rem;
}

.tp-matrix-desc {
  font-size: 0.85rem;
  color: var(--tp-slate);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tp-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--tp-border);
  font-size: 0.82rem;
}

.tp-metric-label {
  color: var(--tp-slate-muted);
}

.tp-metric-val {
  font-weight: 700;
  color: var(--tp-navy);
}

/* ==========================================================================
   PROSE / CONTENT PAGES
   ========================================================================== */
.tp-page-header {
  padding: 3.5rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border-bottom: 1px solid var(--tp-border-ember);
  text-align: center;
}

.tp-page-content {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.tp-prose {
  font-size: 1rem;
  color: var(--tp-slate);
  line-height: 1.75;
}

.tp-prose h2 {
  font-family: var(--tp-font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tp-navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tp-border);
}

.tp-prose h3 {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-navy);
  margin: 1.75rem 0 0.75rem;
}

.tp-prose p {
  margin-bottom: 1.25rem;
}

.tp-prose ul, .tp-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.tp-prose li {
  margin-bottom: 0.5rem;
}

.tp-alert-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--tp-ember);
  border-radius: var(--tp-radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.tp-alert-box h4 {
  font-family: var(--tp-font-heading);
  color: #9a3412;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tp-alert-box p {
  color: #c2410c;
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tp-footer {
  background-color: var(--tp-navy);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.tp-footer-grid {
  max-width: 1240px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.tp-footer-brand h4 {
  font-family: var(--tp-font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.tp-footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.tp-footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.tp-footer-links {
  list-style: none;
}

.tp-footer-links li {
  margin-bottom: 0.65rem;
}

.tp-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--tp-transition);
}

.tp-footer-links a:hover {
  color: #fb923c;
}

.tp-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 1rem;
}

.tp-legal-bar {
  display: flex;
  gap: 1.25rem;
}

.tp-legal-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-legal-bar a:hover {
  color: #fb923c;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .tp-hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .tp-timer-card {
    grid-template-columns: 1fr;
  }
  .tp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .tp-nav-menu {
    display: none;
  }
  .tp-mobile-toggle {
    display: block;
  }
  .tp-hero-title {
    font-size: 2.2rem;
  }
  .tp-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tp-hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
