/* ==========================================================================
   VERITAS LUSTITIA - DESIGN SYSTEM & GLOBAL STYLES
   Ultra-Premium Legal & Academic Publishing Ecosystem
   ========================================================================== */

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

:root {
  /* Colors */
  --navy-darkest: #050B14;
  --navy-dark: #0A1424;
  --navy-primary: #0F1E36;
  --navy-surface: #152744;
  --navy-border: #1E3860;
  
  --gold-dark: #9A7B38;
  --gold-primary: #D4AF37;
  --gold-light: #ECC86B;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-subtle: rgba(212, 175, 55, 0.08);

  --crimson-accent: #9E1B32;
  --emerald-accent: #10B981;
  --blue-accent: #2563EB;
  
  --text-white: #FFFFFF;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --bg-page: #070D17;
  --bg-card: rgba(15, 30, 54, 0.7);
  --bg-card-hover: rgba(21, 39, 68, 0.85);
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);

  /* Light section colors */
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-dark-muted: #475569;
  --card-light-border: #E2E8F0;

  /* Typography */
  --font-serif-display: 'Cinzel', serif;
  --font-serif-body: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
  --shadow-3d-book: -8px 12px 25px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(0,0,0,0.3);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-white);
}

.font-editorial {
  font-family: var(--font-serif-body);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gold Gradient Accents */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF0B8 0%, #D4AF37 50%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges & Tags */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-sinta { background: #1B365D; color: #FFF; border: 1px solid #3B82F6; }
.badge-doi { background: #5C1D24; color: #FFD1D6; border: 1px solid #E11D48; }
.badge-garuda { background: #1C3325; color: #A7F3D0; border: 1px solid #10B981; }
.badge-isbn { background: #2A2411; color: #FDE68A; border: 1px solid #D4AF37; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #ECC86B 0%, #D4AF37 50%, #B8860B 100%);
  color: #0A1424;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-weight: 700;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFF0B8 0%, #ECC86B 50%, #D4AF37 100%);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #0A1424;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  color: var(--text-white);
}

.btn-navy:hover {
  background: var(--navy-border);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 13, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border-subtle);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(5, 11, 20, 0.96);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Top bar banner */
.top-bar {
  background: linear-gradient(90deg, #0A1424 0%, #152744 50%, #0A1424 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  color: var(--gold-primary);
}

/* Main Navbar */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-pill-badge {
  background: var(--crimson-accent);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(21, 39, 68, 0.7) 0%, rgba(7, 13, 23, 1) 70%);
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.12), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero Quick Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card-featured {
  background: linear-gradient(145deg, rgba(21, 39, 68, 0.85) 0%, rgba(10, 20, 36, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9A7B38, #ECC86B, #9A7B38);
}

/* Ecosystem 4 Pillars Section */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Pillars Cards Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.pillar-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pillar-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pillar-link:hover {
  gap: 12px;
  color: #FFF;
}

/* Journal Showcase Section */
.journal-showcase {
  background: linear-gradient(180deg, var(--bg-page) 0%, #0C1626 100%);
  border-top: 1px solid var(--glass-border-subtle);
  border-bottom: 1px solid var(--glass-border-subtle);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.journal-cover-frame {
  position: relative;
  background: var(--navy-surface);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.15);
}

.journal-index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border-subtle);
}

/* Book Showcase Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.book-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.book-cover-wrap {
  position: relative;
  height: 280px;
  background: #08111D;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-3d {
  width: 170px;
  height: 240px;
  background: linear-gradient(135deg, #1E3860 0%, #0F1E36 100%);
  border-radius: 4px 10px 10px 4px;
  border-left: 6px solid #D4AF37;
  box-shadow: var(--shadow-3d-book);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.book-card:hover .book-cover-3d {
  transform: scale(1.04) rotate(-2deg);
}

.book-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.book-author {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
}

.book-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* Publishing Steps / Workflow */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #0A1424;
  font-family: var(--font-serif-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* News Section Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.news-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-img-wrap {
  height: 200px;
  background: #112240;
  position: relative;
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.06);
}

.news-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.18rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, #102038 0%, #0A1424 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.2), transparent 70%);
  filter: blur(50px);
}

/* Footer */
.site-footer {
  background: #040810;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 80px 0 30px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--glass-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Floating Elements */
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .pillars-grid, .books-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #070D17;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 20px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border-subtle);
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid, .books-grid, .news-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
