/* ── DecepTech Shared Styles ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --bg-card: #171b24;
  --bg-card-hover: #1d2230;
  --border: #242a38;
  --border-accent: #2a3548;
  --text-primary: #e8eaf0;
  --text-secondary: #8b92a5;
  --text-muted: #5a6178;
  --accent: #4a9eff;
  --accent-glow: rgba(74, 158, 255, 0.15);
  --accent-warm: #f0a050;
  --accent-red: #c54040;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7cb8ff; }

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  letter-spacing: 0.04em;
}

.logo span { color: var(--text-muted); font-weight: 400; }

nav { display: flex; gap: 0.25rem; }

nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

nav a.active {
  color: var(--text-primary);
  background: rgba(74, 158, 255, 0.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #3b8fee !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 8rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero .section-label { margin-bottom: 1rem; }

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero h1 em { font-style: italic; color: var(--accent); }

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Section shared ── */
section { padding: 5rem 2rem; position: relative; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.2);
}

.btn-primary:hover {
  background: #3b8fee;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* ── Alt section backgrounds ── */
.alt-section { background: var(--bg-secondary); }

.alt-section::before,
.alt-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.alt-section::before { top: 0; }
.alt-section::after { bottom: 0; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* ── FAQ Accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { border-color: var(--border-accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  font-family: var(--sans);
}

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.925rem;
}

/* ── Study cards ── */
.studies-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  transition: all 0.3s;
}

.study-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.study-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1.4;
}

.study-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.study-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.study-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.study-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.15);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Comparison table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.925rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.comparison-table td { color: var(--text-secondary); }

.comparison-table tr:hover td { background: var(--bg-card); }

.check { color: #40c040; font-weight: 700; }
.cross { color: var(--accent-red); font-weight: 700; }

/* ── Training timeline ── */
.training-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
}

.timeline-badge {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-badge .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.timeline-badge .unit {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Product list ── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.product-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(74, 158, 255, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(74, 158, 255, 0.05));
}

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-row .value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-row .value a { color: var(--accent); }

.team-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.team-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child { border-bottom: none; }

.team-member .name { font-weight: 600; font-size: 0.925rem; }
.team-member .role { font-size: 0.8rem; color: var(--text-muted); }

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-band .section-label { justify-content: center; }

.cta-band .section-title {
  max-width: 500px;
  margin: 0 auto 1.25rem;
}

.cta-band .section-desc {
  margin: 0 auto 2rem;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.825rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.7s ease both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.825rem; }
  .comparison-table th, .comparison-table td { padding: 0.75rem; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-badge { width: 100%; height: auto; flex-direction: row; gap: 0.5rem; padding: 0.75rem 1rem; }
  .study-card { grid-template-columns: 1fr; }
  .study-num { font-size: 1.2rem; }
  .product-card.featured { grid-column: auto; }
}

@media (max-width: 600px) {
  .page-hero { padding: 7rem 1.25rem 2.5rem; }
  section { padding: 3.5rem 1.25rem; }
}
