/* ==============
   KIRINVERSE – GLOBAL STYLES
   ============== */

:root {
  --color-bg: #000000;
  --color-bg-alt: #0A0A0F;
  --color-dark-panel: #0F0F14;
  --color-primary: #2A0A3A;   /* Astral Violet */
  --color-secondary: #0F1C35; /* Deep Azure */
  --color-silver: #C8D0E0;    /* Arcane Silver */
  --color-grey: #A7A7A7;      /* Fog Grey */
  --color-glow-violet: #7A2EEA;
  --color-glow-blue: #3F4CFF;
  --color-text: #E5E7EB;
  --color-text-muted: #9CA3AF;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-soft: 0 0 25px rgba(11, 0, 30, 0.8);
  --transition-fast: 0.2s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #111827 0, #000000 45%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==============
   LAYOUT
   ============== */

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.6rem 4rem;
}

main {
  padding-top: 6rem;
}

/* ==============
   TOP NAVIGATION
   ============== */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.85), transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 208, 224, 0.08);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--color-silver);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(200, 208, 224, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--color-silver);
  box-shadow: 0 0 12px rgba(122, 46, 234, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-glow-violet), var(--color-glow-blue));
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-silver);
}

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

.nav-links a.active {
  color: var(--color-silver);
}

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

/* Mobile toggle hint (optional – visual only here) */
.nav-toggle {
  display: none;
}

/* ==============
   HERO SECTION
   ============== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  padding: 4rem 0 3.2rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--color-glow-blue);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: 1.7rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left, #7A2EEA 0, #2A0A3A 40%, #0F0F14 100%);
  border-color: rgba(200, 208, 224, 0.4);
  color: #F9FAFB;
  box-shadow: 0 0 16px rgba(122, 46, 234, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(122, 46, 234, 0.9);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(200, 208, 224, 0.3);
  color: var(--color-silver);
}

.btn-secondary:hover {
  border-color: var(--color-glow-blue);
  color: var(--color-glow-blue);
  box-shadow: 0 0 14px rgba(63, 76, 255, 0.5);
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-meta span {
  color: var(--color-glow-violet);
}

/* Hero visual right side */

.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, rgba(122, 46, 234, 0.6), transparent 55%),
              radial-gradient(circle at 80% 60%, rgba(63, 76, 255, 0.4), transparent 55%),
              #020617;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(200, 208, 224, 0.2);
}

.hero-orbit-inner {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(200, 208, 224, 0.2);
}

.hero-orbit-ring {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  border: 1px solid rgba(122, 46, 234, 0.5);
  box-shadow: 0 0 16px rgba(122, 46, 234, 0.7);
}

.hero-orbit-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, #E5E7EB 0, #7A2EEA 40%, transparent 70%);
  opacity: 0.9;
}

.hero-orbit-label {
  position: absolute;
  bottom: 12%;
  left: 12%;
  right: 12%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-silver);
}

/* ==============
   SECTIONS & CARDS
   ============== */

.section {
  padding: 2.4rem 0;
}

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

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

/* Cards */

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: linear-gradient(135deg, rgba(15, 15, 20, 0.96), rgba(15, 28, 53, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 208, 224, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at top left, rgba(122, 46, 234, 0.24), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.card-header {
  position: relative;
  margin-bottom: 0.7rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.card-body {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-footer {
  position: relative;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Text highlight box */

.text-panel {
  background: radial-gradient(circle at top left, rgba(122, 46, 234, 0.16), rgba(15, 15, 20, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 208, 224, 0.24);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* ==============
   FOOTER
   ============== */

footer {
  border-top: 1px solid rgba(200, 208, 224, 0.12);
  padding: 1.8rem 0 2.4rem;
  background: radial-gradient(circle at bottom, #020617 0, #000000 55%);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--color-silver);
}

/* ==============
   PAGE-SPECIFIC
   ============== */

.page-hero {
  padding: 3rem 0 2.2rem;
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.page-hero-subtitle {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  border-radius: 999px;
  border: 1px solid rgba(200, 208, 224, 0.22);
  padding: 0.22rem 0.8rem;
  margin-bottom: 1rem;
}

/* Simple pill filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
}

.filter-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 208, 224, 0.25);
  color: var(--color-text-muted);
  cursor: default;
}

.filter-pill.active {
  border-color: var(--color-glow-violet);
  color: var(--color-silver);
  box-shadow: 0 0 10px rgba(122, 46, 234, 0.6);
}

/* Simple content list */

.list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact page */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

label {
  color: var(--color-text-muted);
}

input,
textarea {
  background: rgba(10, 10, 15, 0.98);
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 208, 224, 0.25);
  padding: 0.55rem 0.7rem;
  color: var(--color-text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-glow-blue);
  box-shadow: 0 0 12px rgba(63, 76, 255, 0.6);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ==============
   RESPONSIVE
   ============== */

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

  main {
    padding-top: 5rem;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-orbit {
    max-width: 280px;
  }
}
