@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #1c1917;
  --bg-surface: #ffffff;
  --bg-subtle: #fdfbf7;
  --text-primary: #1c1917;
  --text-muted: #78716c;
  --line-color: #e7e5e4;
  
  --amber-primary: #d97706;
  --amber-glow: #f59e0b;
  --amber-light: #fef3c7;
  --amber-subtle: #fffbeb;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-md: 0 12px 30px -5px rgba(0,0,0,0.08);
  --shadow-hover: 0 25px 40px -10px rgba(217, 119, 6, 0.2);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* Custom Interactive Glowing Cursor - Amber Theme */
.custom-cursor-dot {
  width: 8px; height: 8px; background: var(--amber-glow); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--amber-glow);
}
.custom-cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(217, 119, 6, 0.5); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%); transition: width 0.25s ease-out, height 0.25s ease-out, border-color 0.25s, background 0.25s;
}
.custom-cursor-ring.cursor-hover {
  width: 65px; height: 65px; border-color: var(--amber-primary); background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

/* Lightbox Modal Viewer */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px); }
.lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; z-index: 1;
}
.lightbox-content img {
  max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}
.lightbox-close {
  position: absolute; top: -45px; right: 0; background: transparent; border: none; color: #fff; font-size: 36px; cursor: pointer;
}
.lightbox-cap { margin-top: 14px; font-size: 15px; color: #e2e8f0; text-align: center; font-weight: 600; }

/* Topbar */
.topbar { font-size: 13px; font-weight: 500; background: #fff; border-bottom: 1px solid var(--line-color); }
.topbar .container { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-muted); }
.badge-live { width: 8px; height: 8px; background: var(--amber-glow); border-radius: 50%; display: inline-block; margin-right: 6px; box-shadow: 0 0 8px var(--amber-glow); }

/* Header Glass */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.logo {
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -0.5px;
  color: var(--text-primary); display: flex; align-items: center; gap: 8px;
}
.logo span, .logo-tag {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--amber-light); color: var(--amber-primary); padding: 4px 12px; border-radius: 20px;
}

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { font-size: 14px; font-weight: 600; color: #44403c; padding: 8px 16px; border-radius: 30px; }
nav a:hover, nav a.active { color: var(--amber-primary); background: var(--amber-subtle); }

/* Hero Section */
.hero {
  padding: 90px 0 80px;
  background: radial-gradient(circle at 85% 20%, #fef3c7 0%, #ffffff 60%);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.eyebrow {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--amber-primary); display: inline-block; margin-bottom: 12px;
}
h1 {
  font-family: 'Outfit', sans-serif; font-size: clamp(38px, 5vw, 58px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; color: var(--text-primary); margin-bottom: 20px;
}
.lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 680px; margin-bottom: 30px; }

/* Journal Specific Hero */
.journal-hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at 70% 30%, #fef3c7 0%, #fdfbf7 70%);
  border-bottom: 1px solid var(--line-color); margin-bottom: 50px; position: relative;
}
.journal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.category-pill {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 14px; background: var(--amber-light); color: var(--amber-primary); border-radius: 20px;
}
.reading-time { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.journal-title {
  font-family: 'Outfit', sans-serif; font-size: clamp(32px, 4.5vw, 52px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1.2px; color: var(--text-primary); margin-bottom: 16px;
}
.journal-lead { font-size: 18px; color: var(--text-muted); max-width: 820px; line-height: 1.65; }

/* Actions & Buttons */
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn, .btn-glow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--amber-primary), #b45309);
  color: #fff; box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3); border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn:hover, .btn-glow:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45); color: #fff; }
.btn.secondary { background: #fff; color: var(--text-primary); border: 1px solid var(--line-color); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { border-color: var(--amber-primary); color: var(--amber-primary); background: var(--amber-subtle); box-shadow: var(--shadow-sm); }

.visual-box {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-color); background: #fff; aspect-ratio: 4/3; position: relative;
}
.visual-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.visual-box:hover img { transform: scale(1.05); }

/* Section & Cards */
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 40px; }
.section-head h2 { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }

.grid, .bento-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.card, .bento-card {
  background: var(--bg-surface); border: 1px solid var(--line-color); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.card:hover, .bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #fde68a; }
.card-img, .bento-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f5f5f4; position: relative; }
.card-img img, .bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img, .bento-card:hover .bento-img img { transform: scale(1.08); }
.card-body, .bento-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 12px; background: var(--amber-light); color: var(--amber-primary); border-radius: 20px; margin-bottom: 12px; align-self: flex-start;
}
.card h3, .bento-card h3 { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.card p, .bento-card p { color: var(--text-muted); font-size: 14px; flex-grow: 1; margin-bottom: 20px; line-height: 1.6; }

/* Article & Journal Layout */
.article { max-width: 880px; margin: auto; background: #fff; padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--line-color); box-shadow: var(--shadow-md); }
.article h1 { font-family: 'Outfit', sans-serif; font-size: 42px; margin-bottom: 20px; color: var(--text-primary); }

.article-grid { display: grid; grid-template-columns: 1fr 300px; gap: 45px; align-items: start; margin-bottom: 80px; }
.article-main { background: #fff; padding: 42px; border-radius: var(--radius-lg); border: 1px solid var(--line-color); box-shadow: var(--shadow-sm); }
.article-main h2 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; margin: 30px 0 14px; color: var(--text-primary); letter-spacing: -0.5px; }
.article-main h2:first-child { margin-top: 0; }
.article-main p { color: var(--text-primary); font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.article-main ul { margin: 15px 0 25px 20px; color: var(--text-primary); font-size: 15px; }
.article-main li { margin-bottom: 10px; }

/* Sidebar Sticky TOC */
.sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.toc-box { background: #fff; border: 1px solid var(--line-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.sidebar-heading { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--text-primary); }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.toc-list a { font-size: 14px; color: var(--text-muted); font-weight: 600; display: block; padding: 4px 0; }
.toc-list a:hover, .toc-list a.active { color: var(--amber-primary); font-weight: 700; transform: translateX(4px); }

/* Notice Box */
.notice { padding: 20px 24px; border-left: 4px solid var(--amber-primary); background: var(--amber-subtle); border-radius: 0 10px 10px 0; margin: 25px 0; font-size: 14px; color: var(--text-primary); }

/* Interactive Calculator & Spec Matrix Widget Box */
.widget-box {
  background: #fff; border: 1px solid #fde68a; border-radius: var(--radius-md);
  padding: 30px; margin: 35px 0; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.widget-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.widget-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.slider-group { margin-bottom: 24px; }
.slider-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.slider-val { color: var(--amber-primary); font-size: 18px; font-weight: 800; }
input[type=range] {
  width: 100%; height: 8px; border-radius: 4px; background: #e7e5e4; outline: none; accent-color: var(--amber-primary); cursor: pointer;
}
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.calc-card { background: var(--bg-subtle); padding: 16px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-color); }
.calc-card .num { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: var(--amber-primary); }
.calc-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 4px; }

/* Image Frame */
.image-frame { position: relative; margin: 30px 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-color); box-shadow: var(--shadow-md); background: #fff; }
.image-frame img { width: 100%; height: auto; object-fit: cover; transition: transform 0.5s ease; display: block; border-radius: 0; }
.image-frame:hover img { transform: scale(1.04); }
.image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 18px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line-color); font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--line-color);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; color: var(--text-primary);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--amber-primary); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Footer */
footer { background: var(--bg-dark); color: #d6d3d1; padding: 70px 0 35px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
footer h3 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
footer p { font-size: 14px; line-height: 1.6; color: #a8a29e; }
footer a { color: #d6d3d1; text-decoration: none; }
footer a:hover { color: var(--amber-glow); }
.small, .small-copyright { font-size: 13px; color: #78716c; border-top: 1px solid #292524; padding-top: 25px; margin-top: 50px; text-align: center; }

@media(max-width: 800px) {
  .hero-grid, .footer-grid, .article-grid { grid-template-columns: 1fr; }
  .grid, .bento-grid, .calc-results { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
  h1 { font-size: 36px; }
  .article-main { padding: 24px; }
}
