/* ─────────────────────────────────────────
   Axiom Studio — Global Stylesheet
   Clean & Professional Aesthetic
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&family=Instrument+Mono&display=swap');

:root {
  --white:        #ffffff;
  --off:          #f7f6f3;
  --sand:         #ede9e0;
  --ink:          #0f0e0c;
  --ink2:         #2a2825;
  --muted:        #8a8680;
  --accent:       #1a4fff;
  --accent-light: #e8eeff;
  --border:       #e2dfd8;
  --border-dark:  #c8c4bb;
  --radius:       3px;
  --transition:   0.22s ease;
  --max-w:        1140px;
  --nav-h:        64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
.display {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--accent); }

.heading-lg {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.heading-lg em { font-style: italic; color: var(--accent); }

.heading-md {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}

.eyebrow {
  display: block;
  font-family: 'Instrument Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.eyebrow-blue { color: var(--accent); }

.body-lg  { font-size: 1.1rem;  line-height: 1.75; color: var(--muted); font-weight: 300; }
.body-md  { font-size: 0.95rem; line-height: 1.72; color: var(--muted); }
.body-sm  { font-size: 0.85rem; line-height: 1.68; color: var(--muted); }
.mono     { font-family: 'Instrument Mono', monospace; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.divider    { height: 1px; background: var(--border); }
.page-top   { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 56px; border-bottom: 1px solid var(--border); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem; font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--ink);    color: var(--white);  border-color: var(--ink);         }
.btn-primary:hover  { background: var(--ink2); border-color: var(--ink2); }
.btn-secondary{ background: transparent;   color: var(--ink);    border-color: var(--border-dark); }
.btn-secondary:hover{ background: var(--off); border-color: var(--ink); }
.btn-accent   { background: var(--accent); color: var(--white);  border-color: var(--accent);      }
.btn-accent:hover  { opacity: 0.88; }
.btn-ghost    { background: transparent;   color: var(--ink2);   border-color: var(--border-dark); font-size: 0.82rem; padding: 8px 18px; }
.btn-ghost:hover  { border-color: var(--ink); background: var(--off); }
.btn-solid-sm { background: var(--ink);    color: var(--white);  border-color: var(--ink);         font-size: 0.82rem; padding: 8px 20px; }
.btn-solid-sm:hover{ background: var(--ink2); }
.btn-white    { background: var(--white);  color: var(--ink);    border-color: var(--white);       }
.btn-white:hover { opacity: 0.9; }
.btn-full { display: flex; width: 100%; justify-content: center; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.logo em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  text-decoration: none; cursor: pointer;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: 0.3s; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px; z-index: 199;
  flex-direction: column; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink2);
  padding: 12px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; cursor: pointer;
}
.mobile-nav .mobile-btns { display: flex; gap: 10px; margin-top: 12px; }

/* ── FOOTER ── */
.footer { background: var(--ink); padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.footer-logo em { font-style: italic; color: #7eb3ff; }
.footer-tagline { font-size: 0.84rem; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 210px; }
.footer-col h5 {
  font-family: 'Instrument Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.84rem;
  color: rgba(255,255,255,0.55); text-decoration: none;
  margin-bottom: 9px; cursor: pointer;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: 'Instrument Mono', monospace; font-size: 0.64rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Instrument Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white); border: 1px solid var(--border-dark);
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; padding: 11px 14px;
  outline: none; border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group select option { background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CARDS ── */
.card {
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.card-featured { border-color: var(--accent); background: var(--ink); color: var(--white); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: 'Instrument Mono', monospace; font-size: 0.67rem;
  letter-spacing: 0.05em; padding: 4px 12px;
  border: 1px solid var(--border-dark); color: var(--ink2);
  border-radius: 100px;
}
.tag-blue { border-color: var(--accent-light); color: var(--accent); background: var(--accent-light); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── CHECKLIST ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; gap: 12px; font-size: 0.88rem; color: var(--ink2); line-height: 1.5; }
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.checklist li.no { color: var(--muted); }
.checklist li.no::before { content: '–'; color: var(--border-dark); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.55s 0.2s ease both; }
.fade-up-4 { animation: fadeUp 0.55s 0.3s ease both; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--ink); color: var(--white);
  font-size: 0.82rem; padding: 13px 22px; border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  transform: translateY(16px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s; pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}