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

/* ── Design Tokens ── */
:root {
  --oracle:    #C74634;
  --oracle-dk: #9E3426;
  --oracle-lt: #FAECE7;
  --vena:      #3EAA6D;
  --vena-dk:   #2D7D50;
  --vena-lt:   #EAF5F0;
  --ink:       #0D1117;
  --ink-2:     #161B22;
  --ink-3:     #21262D;
  --mist:      rgba(255,255,255,0.08);
  --mist-2:    rgba(255,255,255,0.14);
  --smoke:     rgba(255,255,255,0.45);
  --fog:       rgba(255,255,255,0.25);
  --white:     #FFFFFF;
  --cream:     #F5F2ED;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--mist);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--white);
}
.nav-logo span { color: var(--oracle); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--smoke);
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--oracle);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--oracle-dk) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.25s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--ink-2);
  border-bottom: 0.5px solid var(--mist);
  padding: 20px 5%;
  gap: 4px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  color: var(--smoke);
  padding: 10px 0;
  border-bottom: 0.5px solid var(--mist);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--oracle);
  color: var(--white);
}
.btn-primary:hover { background: var(--oracle-dk); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--smoke);
  border: 0.5px solid var(--mist-2);
}
.btn-ghost:hover { border-color: var(--fog); color: var(--white); }
.btn-vena {
  background: var(--vena);
  color: var(--white);
}
.btn-vena:hover { background: var(--vena-dk); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid;
}
.badge-oracle { border-color: rgba(199,70,52,0.4); color: #E8856E; background: rgba(199,70,52,0.08); }
.badge-vena   { border-color: rgba(62,170,109,0.4); color: #5EC988; background: rgba(62,170,109,0.08); }
.badge-neutral{ border-color: var(--mist-2); color: var(--smoke); background: rgba(255,255,255,0.04); }

/* ── Section Primitives ── */
.section { padding: 80px 5%; }
.section-sm { padding: 48px 5%; }
.section-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--vena);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--smoke);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
}
.divider { height: 0.5px; background: var(--mist); margin: 0 5%; }

/* ── Cards ── */
.card {
  background: var(--ink-2);
  border: 0.5px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--mist-2); transform: translateY(-2px); }
.card-top-bar {
  height: 2px;
  border-radius: 2px 2px 0 0;
  margin: -28px -28px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* ── Footer ── */
footer {
  background: var(--ink-2);
  border-top: 0.5px solid var(--mist);
  padding: 48px 5% 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { font-size: 22px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--fog); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fog); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--smoke); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 0.5px solid var(--mist);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--fog); }
.footer-bottom .social { display: flex; gap: 16px; }
.footer-bottom .social a { font-size: 12px; color: var(--fog); transition: color 0.2s; }
.footer-bottom .social a:hover { color: var(--white); }

/* ── Fade-in Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 48px 5%; }
  .section-sm { padding: 36px 5%; }
  .section-title { font-size: clamp(24px, 7vw, 36px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom .social { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .btn { font-size: 13px; padding: 11px 20px; }
  .nav-logo { font-size: 18px; }
  .badge { font-size: 10px; padding: 4px 10px; }
}
