/* ─── GIDEONFIP.COM — KAMI INSPIRED DESIGN ─── */

/* ─── 1. CSS VARIABLES (DARK MODE ONLY) ─── */
:root {
  /* Dark Canvas — Navy based */
  --canvas:       #0F1C24;  /* Navy-950: Page background */
  --surface:      #1E3748;  /* Navy-900: Cards */
  --surface-hover:#284B63;  /* Navy-800: Interactive */
  
  /* Brand — Brighter Teal for dark */
  --brand:        #559DA1;  /* Teal-500: Brighter on dark */
  --brand-light:  #7FB6BA;  /* Teal-400 */
  --brand-dark:   #468288;  /* Teal-600 */
  --brand-muted:  #3C6E71;  /* Teal-700 */
  --brand-subtle: #2F5759;  /* Teal-800 */
  --brand-faint:  #224042;  /* Teal-900 */
  
  /* Neutrals — Inverted for dark */
  --text-primary: #F4F8FB;  /* Light text */
  --text-secondary:#D0E1EC; /* Navy-200 */
  --text-tertiary: #A5C5DA; /* Navy-300 */
  --text-muted:    #75A6C7; /* Navy-400 */
  
  /* Borders */
  --border-light: #284B63;  /* Navy-800 */
  --border-soft:  #1E3748;  /* Navy-900 */
  --border-warm:  #315B78;  /* Navy-700 */
  
  /* Shadows — darker for dark mode */
  --shadow-whisper: 0 4px 24px rgba(0,0,0,0.3);
  
  /* Typography */
  --serif: "EB Garamond", Georgia, "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Monaco, monospace;
}

/* ─── 2. BASE / RESET ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--brand-dark); }

/* ─── 3. LAYOUT ─── */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

/* ─── 4. HERO SECTION ─── */
.hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 64px;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.hero-links a:hover { color: var(--text-secondary); }

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-tertiary);
  margin: 0 0 28px;
  max-width: 420px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-whisper);
}

.hero-tokens {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-tokens span {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hero-tokens b {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── 5. BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: white;
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-secondary);
  border-color: var(--border-warm);
}

.btn-secondary:hover {
  background: var(--border-soft);
  color: var(--text-primary);
}

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

.btn-ghost:hover {
  background: var(--brand);
  color: white;
}

/* ─── 6. SECTION HEADERS ─── */
section { margin-bottom: 80px; }

.section-head { margin-bottom: 32px; }

.section-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand);
  letter-spacing: 0.4px;
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.section-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 600px;
}

/* ─── 7. TAGS ─── */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--brand);
  font-family: var(--serif);
}

.tag.calm { background: var(--brand-faint); }
.tag.standard { background: var(--brand-subtle); color: var(--brand-dark); }

/* ─── 8. DEMO GRID (What I've Built) ─── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.demo-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 20px;
  background: var(--surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  box-shadow: var(--shadow-whisper);
  border-color: var(--brand-muted);
}

.demo-card:hover .demo-title {
  color: var(--brand);
}

.demo-card .card-header {
  margin-bottom: 16px;
}

.demo-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.demo-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
  transition: color 0.15s ease;
}

.card-link:hover {
  color: var(--brand-dark);
}

/* ─── 9. PRODUCTS GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-whisper);
}

.product-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.card-header {
  margin-bottom: 16px;
}

.product-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.25;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
}

ul.dash {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

ul.dash li {
  font-size: 14px;
  color: var(--text-tertiary);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}

ul.dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
}

.price .period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* ─── 10. POSTS LIST ─── */
.posts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-item:hover {
  background: var(--brand-faint);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.post-item:hover .post-title {
  color: var(--brand);
}

.post-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  grid-row: 1 / 3;
  padding-top: 4px;
}

.post-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.post-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.view-all {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  margin-top: 24px;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
}

.view-all:hover {
  color: var(--brand-light);
  border-color: var(--brand-light);
}

/* ─── 11. FOOTER ─── */
.footer {
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
}

.mark {
  margin-bottom: 24px;
}

.wm-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.wm-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}

.colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand);
}

.sep {
  color: var(--border-warm);
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── 12. RESPONSIVE ─── */
@media (max-width: 900px) {
  .page { padding: 48px 32px 64px; }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-text h1 {
    font-size: 56px;
  }
  
  .hero-image {
    order: -1;
  }
  
  .profile-img {
    width: 200px;
    height: 200px;
  }
  
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page { padding: 32px 20px 48px; }
  
  .hero-text h1 {
    font-size: 42px;
  }
  
  .tagline {
    font-size: 18px;
  }
  
  .hero-tokens {
    gap: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .post-item {
    grid-template-columns: 1fr;
  }
  
  .post-date {
    grid-row: auto;
    margin-bottom: 4px;
  }
  
  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── 13. SCROLL REVEAL ANIMATION ─── */
.animated {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-grid .demo-card:nth-child(1) { transition-delay: 0ms; }
.demo-grid .demo-card:nth-child(2) { transition-delay: 80ms; }
.demo-grid .demo-card:nth-child(3) { transition-delay: 160ms; }
.demo-grid .demo-card:nth-child(4) { transition-delay: 240ms; }

.product-card:nth-child(1) { transition-delay: 0ms; }
.product-card:nth-child(2) { transition-delay: 100ms; }

.post-item { transition: background 0.2s ease; }
