/*
Theme Name: Rahalin
Author: Paul Dembro
Description: Official Sci-Fi Theme for Rahalin
Version: 1.0
*/
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
  --max-width: 1120px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* LAYOUT */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-orb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #38bdf8 45%, #1e293b 100%);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.85);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #f9fafb;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.08rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  transition:
    transform 0.08s ease-out,
    box-shadow 0.08s ease-out,
    background 0.15s ease-out,
    border-color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  border-color: transparent;
  color: #020617;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.7);
  background: linear-gradient(135deg, #38bdf8, #4ade80);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3.5rem;
}

/* HERO (used on home, tweakable elsewhere) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.3rem;
  padding: 2.2rem 0 1.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-title span {
  background: linear-gradient(to right, #e5e7eb, #a5b4fc, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 32rem;
  margin-bottom: 1.2rem;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}

.hero-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-footnote {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-footnote span {
  color: #bfdbfe;
}

/* HERO ORBITAL CARD (home) */

.hero-orbital {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 10% 0, #1f2937, #020617 60%, #000 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  overflow: hidden;
}

.hero-orbital-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 58%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25), transparent 60%),
    radial-gradient(circle at 52% 90%, rgba(34, 197, 94, 0.21), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-orbital-core {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.9rem;
  height: 100%;
}

.hero-orbital-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-orbital-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-orbital-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.hero-orbital-body {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 0.8rem;
}

.orbital-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.7rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.orbital-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
}

.orbital-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.orbital-pill {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.7rem;
  color: var(--text-soft);
}

.orbital-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.3rem;
}

.orbital-metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
}

.orbital-metric-label {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.orbital-foot {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}

/* GENERIC SECTIONS */

section {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.1rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-title {
  font-size: 1.35rem;
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title span {
  background: linear-gradient(to right, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 38rem;
  margin-top: 0.6rem;
}

/* GRIDS & CARDS */

.sector-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sector-card,
.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  color: var(--text-soft);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.card h3,
.sector-name {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.sector-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sector-tagline {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* TWO COLUMN LAYOUT */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

/* FORMS */

.email-form,
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.email-input,
.input,
.textarea {
  flex: 1 1 190px;
  min-width: 0;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
}

.email-input::placeholder,
.input::placeholder,
.textarea::placeholder {
  color: var(--text-soft);
}

.textarea {
  min-height: 130px;
  resize: vertical;
  border-radius: 1rem;
}

/* LISTS */

.feature-list,
.simple-list {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.feature-list li,
.simple-list li {
  margin-bottom: 0.35rem;
}

/* TABLE-ISH LISTS */

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.item-row span:last-child {
  color: var(--text-soft);
}

/* BLOG LIST */

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.post-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.post-card h3 {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

/* FAQ */

.faq-item {
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.faq-item h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

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

footer a {
  color: #a5b4fc;
  font-size: 0.8rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-orbital {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav {
    padding-inline: 1rem;
  }
  .nav-links {
    display: none; /* keep it simple; always-visible on desktop */
  }
  main {
    padding-inline: 1rem;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}


