/* ================================================================
   NOTA MARKETING SITE — Shared Stylesheet
   Aesthetic: Warm editorial dark with ink & parchment accents
   Fonts: Fraunces (display) + DM Sans (body)
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,500;1,9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:        #0c0b09;
  --bg2:       #141310;
  --bg3:       #1c1a17;
  --surface:   #242118;
  --border:    #333028;
  --text:      #ede8e0;
  --muted:     #8a8070;
  --dim:       #4a4538;
  --gold:      #d4a853;
  --gold2:     #f0c96a;
  --gold-dim:  #8a6830;
  --gold-bg:   rgba(212,168,83,0.07);
  --gold-border:rgba(212,168,83,0.2);
  --danger:    #c0604a;
  --success:   #6b9e6a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --nav-h:     68px;
  --max-w:     1160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.7);
  --shadow-gold: 0 0 40px rgba(212,168,83,0.15);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold2); }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--muted); max-width: 65ch; }

.text-gold { color: var(--gold); }
.text-italic { font-style: italic; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 18px;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section { padding: clamp(60px, 10vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 80px) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap { gap: 20px; }
.gap-lg { gap: 32px; }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt { margin-top: 20px; }
.mt-lg { margin-top: 40px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #1a1000;
}
.btn-primary:hover { background: var(--gold2); color: #1a1000; box-shadow: var(--shadow-gold); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 10px 20px; font-size: 0.84rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; border-radius: var(--radius-lg); }

/* Store badges */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.store-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.store-btn svg { flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-sub { font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.store-btn-main { font-size: 0.92rem; font-weight: 600; }

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12,11,9,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(212,168,83,0.08);
  transition: border-color 0.3s;
}
#nav .container { width: 100%; }
#nav .inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  display: block;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
#nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 899;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
}
#nav-drawer.open { transform: translateY(0); }
#nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
#nav-drawer a:hover, #nav-drawer a.active { color: var(--gold); border-color: var(--gold-border); }
#nav-drawer .btn { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 30px rgba(212,168,83,0.06);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.card h4 { margin-bottom: 10px; color: var(--text); }
.card p { font-size: 0.9rem; color: var(--muted); max-width: none; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 30ch;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: var(--muted); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--dim); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Hero decorative grain ──────────────────────────────────── */
.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Page header (inner pages) ──────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212,168,83,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .tag { display: block; text-align: center; margin: 0 auto 16px; }
.page-header h1 { text-align: center; margin-bottom: 20px; }
.page-header p  { text-align: center; margin: 0 auto; font-size: 1.1rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Prose (for privacy / legal pages) ─────────────────────── */
.prose {
  max-width: 740px;
  margin: 0 auto;
}
.prose h2 { font-size: 1.6rem; margin: 48px 0 14px; padding-top: 48px; border-top: 1px solid var(--border); }
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.prose p  { color: var(--muted); margin-bottom: 16px; max-width: none; font-size: 0.97rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.4em; margin-bottom: 16px; font-size: 0.97rem; }
.prose li { margin-bottom: 8px; }
.prose a  { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.prose .callout strong { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
