/* ==========================================================================
   IDEOLA SYARIAH - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Modern Luxury Emerald Dark Mode, Glassmorphism, & Dynamic Motion
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-dark: #040D0A;
  --bg-surface: #0A1F18;
  --bg-card: rgba(12, 35, 27, 0.75);
  --bg-card-hover: rgba(18, 48, 37, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(16, 185, 129, 0.3);

  --primary-mint: #10B981;
  --primary-mint-glow: rgba(16, 185, 129, 0.4);
  --primary-emerald: #059669;
  
  --gold-accent: #F59E0B;
  --gold-accent-glow: rgba(245, 158, 11, 0.3);

  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Elevation & Blur */
  --glass-blur: blur(16px);
  --shadow-glow: 0 10px 30px -10px rgba(16, 185, 129, 0.25);
  --shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.2);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Font */
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 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-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-right {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
}

.glow-bottom-left {
  bottom: 10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--primary-mint) 70%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #FDE68A 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(4, 13, 10, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-mint), var(--primary-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040D0A;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-mint);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-mint) 0%, var(--primary-emerald) 100%);
  color: #040D0A;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-mint);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-mint);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-mint);
  box-shadow: 0 0 10px var(--primary-mint);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.visual-card-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(245, 158, 11, 0.2), transparent);
  box-shadow: var(--shadow-card);
}

.visual-card-inner {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: 23px;
  padding: 1.75rem;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(10, 31, 24, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-hover);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Stats Section */
.stats-section {
  padding: 3rem 0;
  border-y: 1px solid var(--glass-border);
  background: rgba(10, 31, 24, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-mint);
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section Common */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;

}

.card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--primary-mint);
  font-weight: bold;
}

/* Interactive AI Demo Widget */
.ai-demo-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-hover);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.demo-header {
  background: rgba(4, 13, 10, 0.9);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-mint);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

.chat-box {
  height: 340px;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.9rem 1.25rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary-emerald);
  color: #040D0A;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.trace-metadata {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.chat-input-bar {
  padding: 1rem 1.5rem;
  background: rgba(4, 13, 10, 0.95);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary-mint);
}

/* Calculator Section */
.calc-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-range {
  width: 100%;
  accent-color: var(--primary-mint);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.range-val {
  font-weight: 700;
  color: var(--primary-mint);
  float: right;
}

.result-box {
  background: rgba(4, 13, 10, 0.8);
  border: 1px solid var(--glass-border-hover);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.result-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin: 0.5rem 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: rgba(4, 13, 10, 0.95);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
