/* ── base.css — aisan.ai shared styles ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --bg:       #090d1a;
  --bg-2:     #0d1120;
  --surface:  #0f1424;
  --border:   rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.1);
  --text:     #e2ddd4;
  --muted:    #7a7870;
  --dim:      #3a3830;
  --gold:     #c8973a;
  --gold-2:   #dba84e;
  --gold-glow:rgba(200,151,58,0.12);
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --max-w:    1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* ── SUBTLE NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 100;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  font-style: italic;
}
.logo span { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
}
.nav-x svg {
  width: 13px; height: 13px;
  fill: currentColor;
}
.nav-x:hover { color: var(--text) !important; }

/* ── DIVIDER ── */
.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 1px;
  background: var(--border);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 120px auto 0;
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer p {
  font-size: 13px;
  color: var(--dim);
}

@media (max-width: 640px) {
  nav { padding: 24px 24px; }
  footer { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
}
