/* DrAyriAddons – shared stylesheet
   Dark, performance-first, no animation overload.
   Tokens come from the original brand palette. */

:root {
  --bg: #0b0e12;
  --bg-soft: #10151c;
  --card: #11161d;
  --card-hover: #161d27;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #5ac8fa;
  --accent-2: #7df9ff;
  --accent-glow: rgba(125, 249, 255, 0.35);
  --text: #e6edf3;
  --text-muted: #9aa6b2;
  --green: #7CFC00;
  --red: #ff5555;
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); color: var(--accent-2); }
h3 { font-size: 1.2rem; color: var(--accent); }

p { margin: 0 0 14px; color: var(--text); }
.muted { color: var(--text-muted); }

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #000;
  padding: 8px 14px; border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* HEADER + NAV */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem;
  color: var(--text);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-2); }
.lang-switch {
  display: inline-flex; gap: 6px;
  font-size: 0.85rem;
}
.lang-switch a {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}
.lang-switch a[aria-current="page"] {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 24px 80px;
  background: radial-gradient(ellipse at top, #1d2733 0%, #0b0e12 60%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 55%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero h1 {
  color: var(--accent-2);
  text-shadow: 0 0 30px rgba(125, 249, 255, 0.25);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero-meta {
  display: inline-flex; flex-wrap: wrap; gap: 18px;
  justify-content: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 0; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03161d;
  box-shadow: 0 8px 24px rgba(90, 200, 250, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--card); text-decoration: none; }
.cta-row {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* GENERIC SECTION */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-narrow { max-width: 880px; }
.section h2 { text-align: center; margin-bottom: 14px; }
.section .lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* QUICK ANSWER (AI Overviews target) */
.answer-box {
  max-width: 880px;
  margin: -40px auto 0;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  position: relative; z-index: 2;
}
.answer-box h2 {
  text-align: left;
  font-size: 1.25rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.answer-box p { color: var(--text); margin: 0; }

/* FEATURE GRID */
.features-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--card);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}
.feature-card h3 {
  font-size: 1.15rem;
  color: var(--accent-2);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* SHOWCASE */
.showcase-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.showcase-grid figure {
  margin: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.showcase-grid img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.showcase-grid figcaption {
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* TIMELINE */
.timeline { display: grid; gap: 14px; }
.timeline-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.timeline-entry h3 {
  font-size: 1rem; color: var(--accent-2);
  margin: 0 0 4px;
}
.timeline-entry p { margin: 0; color: var(--text-muted); }

/* COMPARISON */
.compare-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.compare-grid figure {
  margin: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: center;
}
.compare-grid figcaption {
  padding: 16px;
  font-weight: 700;
  color: var(--accent-2);
}

/* STATS */
.stats-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-card .num {
  font-size: 2.1rem; font-weight: 800;
  color: var(--accent-2);
  display: block; margin-bottom: 4px;
}
.stat-card p { margin: 0; color: var(--text-muted); }

/* TESTIMONIALS */
.testimonials {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial p { font-style: italic; color: var(--text); }
.testimonial cite {
  display: block; margin-top: 10px;
  color: var(--accent-2);
  font-style: normal; font-weight: 700;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: "+"; color: var(--accent); font-weight: 700;
  margin-left: 16px; font-size: 1.4rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

/* INSTALL / GUIDE */
.steps {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  counter-reset: step;
  list-style: none;
  margin: 0;
}
.steps li {
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03161d;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* COMPARE TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-soft);
  color: var(--accent-2);
  font-weight: 700;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.yes { color: var(--green); }
.compare-table td.no { color: var(--red); }

/* BREADCRUMBS */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; opacity: 0.6; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-2); }

/* FOOTER */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
  margin-top: 80px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .nav { gap: 14px; font-size: 0.9rem; }
  .nav a { font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 72px 18px 64px; }
  .section { padding: 60px 18px; }
  .answer-box { margin: -20px 18px 0; padding: 22px 24px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
