/* === TIMA — Product Pages Styles === */

/* Product Hero */
.product-hero { padding: 160px 0 80px; position: relative; overflow: hidden; }
.product-hero::before {
  content: ''; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px; border-radius: 50%; pointer-events: none;
}
.product-hero.hero-green::before { background: radial-gradient(ellipse, rgba(45, 212, 168, 0.08) 0%, transparent 65%); }
.product-hero.hero-amber::before { background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 65%); }
.product-hero.hero-purple::before { background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08) 0%, transparent 65%); }
.product-hero-content { position: relative; z-index: 1; max-width: 720px; }
.product-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 24px;
  animation: fadeInUp 0.5s ease-out;
}
.product-hero-badge.badge-green { background: var(--tima-id-dim); border: 1px solid rgba(45, 212, 168, 0.25); color: var(--tima-id); }
.product-hero-badge.badge-amber { background: var(--tima-shield-dim); border: 1px solid rgba(245, 158, 11, 0.25); color: var(--tima-shield); }
.product-hero-badge.badge-purple { background: var(--tima-creator-dim); border: 1px solid rgba(167, 139, 250, 0.25); color: var(--tima-creator); }
.product-hero h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -2.5px;
  line-height: 1.05; margin-bottom: 20px; animation: fadeInUp 0.5s ease-out 0.1s both;
}
.product-hero .hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7; font-weight: 300;
  max-width: 580px; margin-bottom: 36px; animation: fadeInUp 0.5s ease-out 0.2s both;
}
.product-hero .hero-actions {
  display: flex; gap: 12px; animation: fadeInUp 0.5s ease-out 0.3s both; flex-wrap: wrap;
}

/* Value Grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px; transition: all 0.3s;
}
.value-card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.value-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Steps Grid */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 48px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 32px; left: 32px; right: 32px;
  height: 2px; background: linear-gradient(90deg, var(--border), var(--border-light), var(--border)); z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; padding: 0 16px; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700;
}
.step-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Compare Table */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 40px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-card); padding: 16px 20px; font-size: 13px;
  font-weight: 700; text-align: left; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.compare-table th.highlight { color: var(--tima-id); }
.compare-table th.highlight-amber { color: var(--tima-shield); }
.compare-table th.highlight-purple { color: var(--tima-creator); }
.compare-table td {
  padding: 14px 20px; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); background: var(--bg-secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }
.compare-table td.yes { color: var(--tima-id); font-weight: 600; }
.compare-table td.no { color: var(--text-muted); }
.compare-table td.partial { color: var(--tima-shield); }

/* Stats Bar */
.stats-bar { display: flex; justify-content: center; gap: 64px; padding: 48px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-val { font-size: 48px; font-weight: 800; letter-spacing: -2px; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Docs Section (within product pages) */
.docs-section { margin-top: 64px; }
.docs-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  padding-bottom: 0; overflow-x: auto;
}
.docs-tab {
  padding: 12px 24px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none;
  background: none; font-family: inherit;
  border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap;
}
.docs-tab:hover { color: var(--text-secondary); }
.docs-tab.active { color: var(--text-primary); border-bottom-color: var(--tima-id); }
.docs-panel { display: none; padding: 40px 0; }
.docs-panel.active { display: block; }
.docs-content { max-width: 800px; }
.docs-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.docs-content h4 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; color: var(--text-primary); }
.docs-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.docs-content ul { padding-left: 0; list-style: none; margin-bottom: 20px; }
.docs-content li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  padding: 6px 0 6px 24px; position: relative;
}
.docs-content li::before { content: '\2192'; position: absolute; left: 0; color: var(--tima-id); font-weight: 600; }
.docs-code {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--tima-id); overflow-x: auto; margin: 16px 0 24px; line-height: 1.7;
}
.docs-note {
  background: var(--tima-id-dim); border: 1px solid rgba(45, 212, 168, 0.2);
  border-radius: 10px; padding: 16px 20px; font-size: 13px;
  color: var(--text-secondary); line-height: 1.7; margin: 20px 0;
}
.docs-note strong { color: var(--tima-id); }
.docs-note.note-amber { background: var(--tima-shield-dim); border-color: rgba(245, 158, 11, 0.2); }
.docs-note.note-amber strong { color: var(--tima-shield); }
.docs-note.note-purple { background: var(--tima-creator-dim); border-color: rgba(167, 139, 250, 0.2); }
.docs-note.note-purple strong { color: var(--tima-creator); }

/* CTA Section */
.cta-section {
  text-align: center; padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(45, 212, 168, 0.03));
}
.cta-section.cta-amber { background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.03)); }
.cta-section.cta-purple { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.03)); }
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-primary); transition: color 0.2s;
}
.faq-q:hover { color: var(--tima-id); }
.faq-q .arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; padding-bottom: 20px; }

/* TIMA ID Card Mockup */
.tima-id-card {
  width: 340px; max-width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.tima-id-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-tima);
}
.tima-id-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tima-id-card-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-tima);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #060810;
}
.tima-id-card-name { font-size: 16px; font-weight: 700; }
.tima-id-card-code {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--tima-id);
  margin-top: 2px; letter-spacing: 1px;
}
.tima-id-card-score {
  text-align: center; margin: 20px 0;
}
.tima-id-card-score-ring {
  width: 100px; height: 100px; margin: 0 auto 8px; position: relative;
}
.tima-id-card-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tima-id-card-score-ring .score-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 800; color: var(--tima-id);
}
.tima-id-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.tima-id-card-badges {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; justify-content: center;
}
.tima-id-card-badge-item {
  font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: var(--tima-id-dim); color: var(--tima-id); text-transform: uppercase; letter-spacing: 0.5px;
}

/* Shield Dashboard Viz */
.shield-dashboard {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; position: relative; overflow: hidden;
}
.shield-dashboard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-shield);
}
.shield-dashboard-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.shield-dashboard-title { font-size: 14px; font-weight: 700; }
.shield-dashboard-status {
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
  background: rgba(34, 197, 94, 0.1); color: var(--success); text-transform: uppercase; letter-spacing: 1px;
}
.shield-attack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shield-attack-item {
  background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 10px; padding: 14px;
}
.shield-attack-type { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.shield-attack-stat { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--tima-shield); }
.shield-attack-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Responsive */
@media (max-width: 768px) {
  .product-hero { padding: 120px 0 60px; }
  .value-grid { grid-template-columns: 1fr !important; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
  .stats-bar { gap: 32px; }
  .stat-val { font-size: 36px; }
  .compare-table { font-size: 12px; display: block; overflow-x: auto; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
