/* =========================
   Base theme variables
   ========================= */

:root {
  --bg: #050711;
  --bg-alt: #0c0f1c;
  --card-bg: rgba(18, 22, 40, 0.9);
  --accent: #f3b15a;
  --accent-soft: rgba(243, 177, 90, 0.18);
  --accent-strong: #ffcf73;
  --text-main: #f5f5f7;
  --text-muted: #a3a7c1;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-sm: 999px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition: 0.24s ease;
  --max-width: 1220px;
}

/* Light theme overrides (keep purple + gold) */
html[data-theme="light"] {
  --bg: #f7f3ff;
  --bg-alt: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.96);
  --text-main: #1c1533;
  --text-muted: #6a6188;
  --border-subtle: rgba(100, 80, 155, 0.18);
  --shadow-soft: 0 18px 45px rgba(67, 51, 116, 0.12);
}

/* =========================
   Reset / global
   ========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #131633 0, #050711 54%, #020308 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Light mode background */
html[data-theme="light"] body {
  background: radial-gradient(circle at top, #fdf7ff 0, #f4efff 40%, #ece5ff 100%);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: linear-gradient(
      to bottom,
      rgba(11, 14, 30, 0.9),
      rgba(5, 7, 17, 0.95)
    );
  position: relative;
}

.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(243, 177, 90, 0.08), transparent 55%);
  pointer-events: none;
}

/* Light mode alt section background */
html[data-theme="light"] .section.alt {
  background: linear-gradient(to bottom, #f9f5ff, #f3eeff);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 0;
}

/* =========================
   Header / Nav
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(3, 5, 12, 0.92),
    rgba(3, 5, 12, 0.75),
    transparent
  );
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Slight shadow when scrolled */
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: linear-gradient(
    to bottom,
    rgba(3, 5, 12, 0.96),
    rgba(3, 5, 12, 0.9)
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0.5rem;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;   /* circular logo */
  object-fit: fill;    /* clean circular crop */
  margin-left: 12px;    /* used for symmetric spacing calc */
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navigation */

.site-nav {
  display: flex;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Light mode header / nav tweaks */
html[data-theme="light"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(247, 243, 255, 0.96),
    rgba(244, 239, 255, 0.9),
    rgba(244, 239, 255, 0.2)
  );
  border-bottom-color: rgba(129, 96, 187, 0.25);
}

html[data-theme="light"] .logo {
  color: var(--text-main);
}

html[data-theme="light"] .site-nav a {
  color: var(--text-muted);
}
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a:focus-visible {
  color: var(--text-main);
}

/* Hamburger */

.nav-toggle {
  display: none;
  margin-left: 1rem;
  margin-right: 12px;     /* symmetric with logo-img left margin */
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 20% 0, #2d2732 0, #111320 55%, #050711 100%);
  cursor: pointer;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* stack bars vertically */
  gap: 6px;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-toggle-line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #f3e4c2);
  transform-origin: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    translate var(--transition-fast);
}

/* =========================
   Theme toggle
   ========================= */

.theme-toggle {
  margin-left: auto;
  margin-right: 0.5rem;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 20% 0, #3b3147 0, #151527 55%, #050711 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0 6px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-icon--light {
  opacity: 0.3;
}

/* Show different icon per theme */
html[data-theme="light"] .theme-icon--dark {
  opacity: 0.3;
}
html[data-theme="light"] .theme-icon--light {
  opacity: 1;
}

/* =========================
   Hero
   ========================= */

/* =========================
   Hero
   ========================= */

.hero {
  padding: 4.5rem 0 4rem;
}

/* grid lives on the inner container, not the full-width section */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  min-height: 80vh;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 40rem;
}

.hero .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero h1 span {
  display: block;
  font-weight: 400;
  font-size: 0.95em;
  color: var(--text-muted);
}

.hero-lead {
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

/* right column image */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(243, 177, 90, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   Responsive
   ========================= */

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

  .hero-media {
    order: 1;
    margin-top: 2rem;
  }

  .hero-content {
    order: 2;
  }

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

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


/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1c1203;
  box-shadow: 0 14px 40px rgba(243, 177, 90, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 52px rgba(243, 177, 90, 0.6);
}

.btn.ghost {
  border-color: rgba(243, 177, 90, 0.3);
  background: rgba(7, 9, 20, 0.75);
  color: var(--accent-strong);
}

.btn.ghost:hover {
  background: rgba(243, 177, 90, 0.08);
}

.btn.full-width {
  width: 100%;
}

/* =========================
   Typography
   ========================= */

h1,
h2,
h3 {
  color: var(--text-main);
  margin-top: 0;
}

p {
  margin: 0 0 0.75rem;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.75rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.bullet-list.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.centered {
  text-align: center;
  max-width: 46rem;
  margin: 1.2rem auto 0;
}

.tagline {
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
}

/* =========================
   Cards
   ========================= */

.section-card,
.card,
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section-card::before,
.card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top left, rgba(243, 177, 90, 0.2), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Light mode: cards become lighter */
html[data-theme="light"] .section-card,
html[data-theme="light"] .card,
html[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.96);
}

/* =========================
   Pills / Chips / Tags
   ========================= */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.pill-list li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 22, 40, 0.9);
  border: 1px solid rgba(243, 177, 90, 0.3);
  font-size: 0.85rem;
  color: var(--text-main);
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 12, 26, 0.9);
  color: var(--text-muted);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 177, 90, 0.35);
  font-size: 0.85rem;
  background: rgba(9, 12, 24, 0.95);
  color: var(--text-muted);
}

/* Light mode: pills / chips adapt for contrast */

html[data-theme="light"] .pill-list li {
  background: #f7f3ff;
  color: var(--text-main);
  border-color: rgba(129, 96, 187, 0.4);
}

html[data-theme="light"] .chip {
  background: #f8f4ff;
  color: var(--text-main);
  border-color: rgba(129, 96, 187, 0.35);
}

html[data-theme="light"] .pill {
  background: #f7f2ff;
  color: var(--text-main);
  border-color: rgba(129, 96, 187, 0.5);
}

/* =========================
   CTA section
   ========================= */

.cta-section {
  text-align: center;
  background: radial-gradient(circle at top, rgba(243, 177, 90, 0.16), transparent 60%),
    linear-gradient(to bottom, rgba(7, 10, 22, 0.98), rgba(2, 3, 9, 0.98));
}

.cta-section .bullet-list.inline {
  justify-content: center;
  margin-bottom: 1rem;
}

/* Light mode CTA tweak */
html[data-theme="light"] .cta-section {
  background: radial-gradient(circle at top, rgba(243, 177, 90, 0.18), transparent 60%),
    linear-gradient(to bottom, #f7f3ff, #f1ecff);
}

/* =========================
   Contact
   ========================= */

.contact-card .fine-print {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0 1.5rem;
  background: radial-gradient(circle at top, rgba(243, 177, 90, 0.12), transparent 65%),
    linear-gradient(to bottom, #050711, #020308);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Light mode footer */
html[data-theme="light"] .site-footer {
  background: linear-gradient(to bottom, #f4efff, #ece7ff);
}

/* =========================
   Responsive
   ========================= */

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

  .hero-media {
    order: 1;
    padding-right: 0;
  }

  .hero-content {
    order: 2;
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 0;
  }

  .site-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background: radial-gradient(circle at top, rgba(9, 12, 24, 0.98), rgba(3, 6, 17, 0.98));
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1.2rem;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle {
    border-color: rgba(243, 177, 90, 0.7);
    transform: translateY(1px);
  }

  body.nav-open .nav-toggle-line:nth-child(1) {
    transform: rotate(42deg);
    translate: 0 3px;
  }

  body.nav-open .nav-toggle-line:nth-child(2) {
    transform: rotate(-42deg);
    translate: 0 -3px;
  }

  .hero {
    padding-top: 4rem;
  }

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

  .section {
    padding: 3.75rem 0;
  }

  .theme-toggle {
    margin-right: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* =========================
   Layout centering / scaling
   ========================= */

/* Center header content */
.header-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: .5rem;
  padding-right: .5rem;
}

/* Center hero section content */
.hero {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Center generic sections */
.section {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Center footer content */
.footer-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

