/* =====================================================
   SEOSCORE — Design System
   Dark Tech / Geek — PageSpeed Optimized
   Zero external deps, pure CSS
   ===================================================== */

/* ── Self-hosted fonts ── */
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('../fonts/courier-prime-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('../fonts/courier-prime-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Variables ── */
:root {
  --bg:         #0a0c10;
  --bg2:        #0f1218;
  --bg3:        #161b24;
  --border:     #1e2733;
  --accent:     #00e5ff;
  --accent2:    #7c3aed;
  --accent3:    #10b981;
  --text:       #e2e8f0;
  --text-muted: #64748b;
  --text-dim:   #94a3b8;
  --white:      #ffffff;
  --danger:     #ef4444;
  --warn:       #f59e0b;
  --nav-h:      60px;
  --radius:     8px;
  --radius-lg:  16px;
  --font-body:  'Courier Prime', 'Courier New', monospace;
  --font-head:  'Space Mono', 'Courier New', monospace;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-dim); margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
strong { color: var(--text); font-weight: 700; }
ul, ol { padding-left: 1.5rem; }
li { color: var(--text-dim); margin-bottom: .4rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── Grid ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Cursor line effect ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 9999;
  animation: scan 4s linear infinite;
  opacity: .4;
}
@keyframes scan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 12, 16, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .05em;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: .25rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--text-dim);
  font-size: .82rem;
  font-family: var(--font-head);
  padding: .4rem .7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 255, .06);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}
.nav-cta:hover { background: var(--white) !important; border-color: var(--white) !important; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
  display: block;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: .9rem;
  padding: .6rem .8rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-mobile a:hover { color: var(--accent); background: rgba(0,229,255,.06); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Page wrapper ── */
#page { padding-top: var(--nav-h); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
  radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,255,.08) 0%, transparent 60%),
  radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124,58,237,.07) 0%, transparent 50%);
  pointer-events: none;
}
/* Grid lines */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
  linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-tag {
  display: inline-block;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.3);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .75rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub { font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: .75rem; font-family: var(--font-head);
  letter-spacing: .1em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll::before {
  content: '↓';
  display: block; text-align: center;
  font-size: 1rem; margin-bottom: .2rem;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: rgba(0,229,255,.1); }
.btn-sm { padding: .45rem 1rem; font-size: .78rem; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 560px; margin: .75rem auto 0; }
.section-label {
  font-family: var(--font-head);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ── Cards ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: .5rem; font-size: 1.05rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* ── Spotlight (services) ── */
.spotlight {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.spotlight:last-child { border-bottom: none; }
.spotlight.reverse { direction: rtl; }
.spotlight.reverse > * { direction: ltr; }
.spotlight-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
@media (max-width: 768px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight.reverse { direction: ltr; }
}

/* ── Stats bar ── */
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg3); }
th {
  font-family: var(--font-head);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  padding: 1rem 1.5rem;
  text-align: left;
}
td { padding: .9rem 1.5rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .95rem; }
tr:hover td { background: rgba(0,229,255,.03); }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; background: var(--bg3);
  color: var(--text); font-family: var(--font-head); font-size: .95rem;
  padding: 1.1rem 1.5rem;
  text-align: left; cursor: pointer; border: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 300; transition: transform .25s; }
.faq-question.open::after { transform: rotate(45deg); }
.faq-question:hover { background: rgba(0,229,255,.05); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s; }
.faq-answer.open { max-height: 400px; padding: 1rem 1.5rem 1.2rem; }
.faq-answer p { margin: 0; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-head); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .4rem; }
input, textarea, select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,.08);
}
textarea { resize: vertical; min-height: 140px; }
select { cursor: pointer; }
select option { background: var(--bg3); }

/* ── Score bars ── */
.score-box { text-align: center; }
.score-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 700;
  line-height: 1; color: var(--white);
}
.score-num sup { font-size: 1rem; color: var(--text-muted); margin-left: .2rem; }
.score-track {
  height: 6px; border-radius: 999px;
  background: var(--border); overflow: hidden; margin: .75rem 0 .5rem;
}
.score-fill { height: 100%; width: 0; border-radius: 999px; transition: width .8s ease; }
.score-fill.good    { background: var(--accent3); }
.score-fill.medium  { background: var(--warn); }
.score-fill.low     { background: #f97316; }
.score-fill.bad     { background: var(--danger); }
.score-caption { font-size: .8rem; color: var(--text-muted); }

/* ── Blog ── */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  transition: border-color var(--transition);
}
.blog-card:hover { border-color: var(--accent); }
.blog-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.blog-card p { margin-bottom: .8rem; }
.blog-full { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.blog-full p { text-align: justify; }

/* Carousel on index */
.carousel { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg3); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; padding: 2.5rem 2.5rem 2rem; }
.carousel-slide h3 { margin-bottom: .75rem; }
.carousel-nav { display: flex; align-items: center; gap: 1rem; padding: 0 2.5rem 1.5rem; }
.carousel-nav button { background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.carousel-nav button:hover { border-color: var(--accent); color: var(--accent); }
.carousel-counter { font-family: var(--font-head); font-size: .8rem; color: var(--text-muted); }

/* ── Page header ── */
.page-header {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% -20%, rgba(0,229,255,.07), transparent 60%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: .75rem; }
.page-header p { max-width: 560px; margin: 0 auto 1.5rem; }
.page-header-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact layout ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--text-dim); margin-bottom: .75rem;
  transition: all var(--transition);
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-link-icon { font-size: 1.2rem; }
.contact-link-text { font-size: .9rem; font-family: var(--font-head); }

/* ── Mentions ── */
.legal-section { margin-bottom: 2.5rem; }
.legal-section h3 { margin-bottom: .75rem; color: var(--accent); font-size: 1rem; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; list-style: none; padding: 0; }
.footer-links a { color: var(--text-muted); font-size: .85rem; font-family: var(--font-head); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .75rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-social a {
  width: 40px; height: 40px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition); color: var(--text-dim);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: .8rem; font-family: var(--font-head); }

/* ── Utility ── */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── Error/Success states ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }

/* ── Loading spinner ── */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { display: flex; align-items: center; gap: .75rem; color: var(--text-muted); font-family: var(--font-head); font-size: .85rem; justify-content: center; margin: 1.5rem 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ── */
::selection { background: var(--accent); color: var(--bg); }
