/* ==========================================================================
   Central Domain — Global Stylesheet
   ========================================================================== */

:root {
  --bg: #0f1419;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e4e4e7;
  --text-muted: #b0b0b0;
  --text-faint: #888888;
  --accent: #4a90e2;
  --accent-hover: #357abd;
  --radius-sm: 6px;
  --radius-md: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  padding: 5rem 4% 6rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 1.3rem 3rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0.5rem;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.trust-badge {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-faint);
}

.trust-badge strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Section headings (shared) ---------- */
.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-faint);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-inline: auto;
}

/* ---------- Domains content page ---------- */
.domains-section {
  padding: 4rem 4% 5rem;
  background: var(--bg-alt);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.domain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  min-height: 110px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: var(--accent);
  background: #1e2430;
  transform: translateY(-2px);
}

.domain-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
}

.domain-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.domain-price {
  align-self: flex-start;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
footer {
  padding: 2rem 4%;
  background: #0a0a0a;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  color: #666666;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 4% 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-primary {
    padding: 1.1rem 2rem;
    font-size: 1rem;
  }

  .domain-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
