/* ================================================================
   AI Act Readiness – getaiactready.eu / aiacteu.firetail.biz
   Theme: "The Final Countdown"
   Palette: Slate-950 bg, Orange-500 accent, FireTail branding
   ================================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --yellow-500: #eab308;
  --blue-500: #3b82f6;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--slate-950);
  color: var(--slate-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-400); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-300); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
  padding: 0.85rem 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.nav-logo .accent { color: var(--orange-500); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .cta-link {
  background: var(--orange-500);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .cta-link:hover { background: var(--orange-600); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero / Countdown ---------- */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(170deg, var(--slate-950) 0%, #0c1425 40%, #1a0d05 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(249,115,22,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-400);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
}
.hero h1 .highlight { color: var(--orange-500); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-400);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Countdown display */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto;
  flex-wrap: wrap;
}
.countdown-block {
  background: var(--slate-900);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  min-width: 110px;
}
.countdown-value {
  display: block;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange-500);
  line-height: 1;
}
.countdown-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  margin-top: 0.5rem;
}
.countdown-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--orange-400);
  border-bottom: 1px dashed rgba(249,115,22,0.4);
}
.countdown-link:hover { color: var(--orange-300); }

/* ---------- CTA Buttons ---------- */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-primary {
  display: inline-block;
  background: var(--orange-500);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-600); color: var(--white); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); }

/* ---------- Timeline ---------- */
.timeline-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.timeline-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 3rem;
}
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange-500), var(--orange-500) 50%, rgba(249,115,22,0.2));
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slide-in 0.6s ease-out forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes slide-in {
  to { opacity: 1; transform: translateX(0); }
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slate-950);
  border: 3px solid var(--orange-500);
}
.timeline-item.active::before {
  background: var(--orange-500);
  box-shadow: 0 0 12px rgba(249,115,22,0.5);
}
.timeline-item.future::before {
  border-color: var(--slate-600);
  background: var(--slate-800);
}
.timeline-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-400);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* ---------- Section Helpers ---------- */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--slate-400);
  font-size: 1.05rem;
}
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}
.card h3 {
  color: var(--orange-400);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--slate-400);
  font-size: 0.95rem;
  line-height: 1.6;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---------- Value Props ---------- */
.value-section {
  padding: 5rem 2rem;
  background: var(--slate-900);
}
.value-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.value-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.stat-card {
  background: var(--slate-800);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-500);
  margin-bottom: 0.5rem;
}
.stat-card p { color: var(--slate-400); font-size: 0.95rem; }

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(170deg, var(--slate-900), var(--slate-950));
}
.cta-section h2 { font-size: 2.2rem; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--slate-400); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Explorer ---------- */
.explorer-section { padding: 5rem 2rem; max-width: 1000px; margin: 0 auto; }
.search-box {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 8px;
  color: var(--white);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.search-box:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.search-box::placeholder { color: var(--slate-600); }
.search-meta {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}
.article-list { display: flex; flex-direction: column; gap: 1rem; }
.article-card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s;
  cursor: pointer;
}
.article-card:hover { border-color: rgba(249,115,22,0.3); }
.article-card.highlighted {
  border-color: var(--orange-500);
  box-shadow: 0 0 12px rgba(249,115,22,0.1);
}
.article-number {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-400);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.article-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.3rem; }
.article-card p { color: var(--slate-400); font-size: 0.85rem; line-height: 1.5; }
.article-chapter {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.5rem;
}
.risk-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}
.risk-badge.high { background: rgba(239,68,68,0.15); color: var(--red-500); }
.risk-badge.limited { background: rgba(234,179,8,0.15); color: var(--yellow-500); }
.risk-badge.minimal { background: rgba(34,197,94,0.15); color: var(--green-500); }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--slate-800);
  color: var(--slate-400);
  border: 1px solid var(--slate-700);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--orange-500); color: var(--white); }
.filter-btn.active { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }

/* ---------- Assessment ---------- */
.assessment-section { padding: 5rem 2rem; max-width: 700px; margin: 0 auto; }
.assessment-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.assessment-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-700);
  transition: background 0.3s;
}
.progress-dot.active { background: var(--orange-500); }
.progress-dot.completed { background: var(--green-500); }

.question-card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: none;
}
.question-card.active { display: block; }
.question-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.question-hint {
  color: var(--slate-400);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.option-list { display: flex; flex-direction: column; gap: 0.6rem; }
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--slate-300);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.option-btn:hover { border-color: var(--orange-500); color: var(--white); }
.option-btn.selected { border-color: var(--orange-500); background: rgba(249,115,22,0.1); color: var(--white); }

.assessment-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.assessment-nav button {
  font-family: inherit;
}

/* Results */
.result-card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: none;
}
.result-card.active { display: block; }
.result-classification {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.result-classification.high-risk { background: rgba(239,68,68,0.15); color: var(--red-500); }
.result-classification.limited-risk { background: rgba(234,179,8,0.15); color: var(--yellow-500); }
.result-classification.minimal-risk { background: rgba(34,197,94,0.15); color: var(--green-500); }
.result-classification.unacceptable-risk { background: rgba(239,68,68,0.25); color: #fca5a5; }

.shadow-ai-alert {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}
.shadow-ai-alert h4 { color: var(--orange-400); margin-bottom: 0.5rem; }
.shadow-ai-alert p { color: var(--slate-300); font-size: 0.9rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-2px);
}
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(249,115,22,0.12);
  color: var(--orange-400);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}
.blog-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card p { color: var(--slate-400); font-size: 0.85rem; line-height: 1.5; }
.blog-meta { font-size: 0.75rem; color: var(--slate-600); margin-top: 0.8rem; }

/* ---------- Gated Guide ---------- */
.guide-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.guide-info h2 { text-align: left; font-size: 1.8rem; color: var(--white); margin-bottom: 1rem; }
.guide-info p { color: var(--slate-400); margin-bottom: 1rem; line-height: 1.7; }
.guide-benefits {
  list-style: none;
  margin-top: 1.5rem;
}
.guide-benefits li {
  color: var(--slate-300);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.guide-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-500);
  font-weight: 700;
}
.guide-form-card {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
}
.guide-form-card h3 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  color: var(--slate-300);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 6px;
  color: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-input::placeholder { color: var(--slate-600); }
.form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.form-select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-message {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-message.success {
  display: block;
  background: rgba(34,197,94,0.12);
  color: var(--green-500);
}
.form-message.error {
  display: block;
  background: rgba(239,68,68,0.12);
  color: var(--red-500);
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem;
  background: var(--slate-950);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer p { color: var(--slate-600); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--slate-600); font-size: 0.85rem; }
.footer-links a:hover { color: var(--slate-400); }

/* ---------- Page header (reused on sub-pages) ---------- */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(170deg, var(--slate-950), var(--slate-900));
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--slate-400);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .countdown { gap: 0.8rem; }
  .countdown-block { min-width: 80px; padding: 0.8rem 1rem; }
  .countdown-value { font-size: 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--slate-950); padding: 1rem 2rem; border-bottom: 1px solid rgba(249,115,22,0.1); }
  .nav-toggle { display: block; }
  .blog-grid { grid-template-columns: 1fr; }
  .filter-bar { justify-content: center; }
}
