/* ============================================================
   NEXORA — Design System & Global Styles
   Aesthetic: Editorial luxury, geometric, dark refined
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --c-bg:       #0a0a0f;
  --c-surface:  #111118;
  --c-card:     #16161f;
  --c-border:   #2a2a3a;
  --c-accent:   #c8a96e;
  --c-accent2:  #7b68ee;
  --c-text:     #e8e8f0;
  --c-muted:    #7a7a90;
  --c-white:    #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    4px;
  --radius-lg: 12px;
  --gap:       clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(4rem, 10vw, 8rem);

  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-white);
}
h1 { font-size: clamp(2.5rem, 7vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1.5rem; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 55ch;
  margin-bottom: var(--gap);
}

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.section { padding: var(--section-pad) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin-inline: auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--c-accent); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--c-accent);
  color: var(--c-bg) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #d4b97e; color: var(--c-bg) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg);
}
.btn-primary:hover { background: #d4b97e; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,169,110,0.3); }
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid var(--c-border);
}
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ---------- Divider ---------- */
.divider {
  width: 60px; height: 2px;
  background: var(--c-accent);
  margin: 1.5rem 0;
}
.divider.center { margin-inline: auto; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  background: rgba(200,169,110,0.12);
  color: var(--c-accent);
  border: 1px solid rgba(200,169,110,0.25);
}

/* ---------- Footer ---------- */
footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p {
  color: var(--c-muted);
  font-size: 0.9rem;
  max-width: 30ch;
  margin-top: 1rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--c-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--c-white); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--c-muted);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--c-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--c-white); }

/* ---------- Breadcrumb ---------- */
.page-hero {
  padding-top: calc(80px + 5rem);
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(123,104,238,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--c-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,10,15,0.98); backdrop-filter: blur(20px); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--c-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-up { animation: fadeUp 0.8s var(--transition) both; }
.animate-up:nth-child(2) { animation-delay: 0.1s; }
.animate-up:nth-child(3) { animation-delay: 0.2s; }
.animate-up:nth-child(4) { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
