/* ============================================================
   OPTIVRA SEO — Main Stylesheet
   Dark Mode • Teal/Green Accent • Modern SaaS
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --bg-primary:    #050508;
  --bg-secondary:  #0a0a12;
  --bg-card:       #0d0d1a;
  --bg-card-hover: #121225;
  --bg-border:     rgba(255,255,255,0.06);

  --accent:        #00e5aa;
  --accent-dim:    rgba(0,229,170,0.1);
  --accent-glow:   0 0 30px rgba(0,229,170,0.25);
  --accent-blue:   #4f8eff;

  --text-primary:  #f8f9fa;
  --text-secondary:#a0a0c0;
  --text-muted:    #6b6b8b;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tambahan penting */
  --gradient-accent: linear-gradient(90deg, #00e5aa 0%, #4f8eff 100%);
  --gradient-hero: radial-gradient(circle at top right, rgba(0,229,170,0.08), transparent 35%), #050508;
  --gradient-card: linear-gradient(180deg, rgba(0,229,170,0.04), rgba(79,142,255,0.02));
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 10px 30px rgba(0,229,170,0.12);
}

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

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

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

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

/* Typography Optimization */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Global Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-border); border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Responsive Layout Optimization */
.container { max-width: 1240px; }

@media (max-width: 1200px) {
  .hero-title { font-size: 3.5rem !important; }
}

@media (max-width: 992px) {
  .hero-section { padding: 120px 0 60px; text-align: center; }
  .hero-title { font-size: 2.8rem !important; }
  .hero-desc { margin: 0 auto 30px; }
  .d-flex.gap-3.flex-wrap { justify-content: center; }
  .hero-stats { justify-content: center; margin-top: 40px; }
  .navbar-nav { padding: 20px 0; text-align: center; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem !important; }
  .section-title { font-size: 1.8rem !important; }
  .pricing-card { margin-bottom: 20px; }
  .py-section { padding: 72px 0; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.8rem !important; }
  .btn-accent, .btn-outline-accent { width: 100%; text-align: center; }
  .py-section { padding: 56px 0; }
  .footer-optivra { padding: 44px 0 22px; }
  .card-optivra { padding: 22px; }
  .form-control-optivra { font-size: 16px; }
}

::selection { background: var(--accent); color: #080810; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-accent   { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-secondary) !important; }

/* ---- Navbar ---- */
.navbar-optivra {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand-text span { color: var(--accent); }

.navbar-optivra .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
}

.navbar-optivra .nav-link:hover,
.navbar-optivra .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--bg-card);
}

/* ---- Buttons ---- */
.btn-accent {
  background: var(--accent);
  color: #080810 !important;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}

.btn-accent:hover::before { opacity: 1; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--accent-glow); }

.btn-outline-accent {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
}

.btn-outline-accent:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-border);
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---- Cards ---- */
.card-optivra {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card-optivra:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ---- Hero Section ---- */
.hero-section {
  background: var(--gradient-hero);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,170,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,170,0.08);
  border: 1px solid rgba(0,229,170,0.2);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- Section Styles ---- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Pricing Cards ---- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--gradient-card);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.pricing-card:hover:not(.featured) {
  border-color: rgba(0,229,170,0.3);
  transform: translateY(-6px);
}

.pricing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.pricing-badge {
  background: var(--accent);
  color: #080810;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: static;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.pricing-duration {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 12px;
  display: inline-block;
  border-radius: 6px;
  background: rgba(13,110,253,0.08);
  border: 1px solid rgba(13,110,253,0.15);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-feature:last-child { border-bottom: none; }

.pricing-feature .check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Blog Card ---- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  border-color: rgba(0,229,170,0.2);
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e, #0d0d22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 40px;
}

.blog-card-body { padding: 24px; }

.blog-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }

/* ---- Contact Form ---- */
.form-control-dark {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
}

.form-control-dark:focus {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}

.form-control-dark::placeholder { color: var(--text-muted); }

.form-label-dark {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.form-control-optivra {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: var(--transition);
}

.form-control-optivra:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control-optivra::placeholder { color: var(--text-muted); }

.form-label-optivra {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

textarea.form-control-optivra { resize: vertical; min-height: 160px; }

/* ---- Footer ---- */
.footer-optivra {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-border);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--accent); }

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-link:hover { color: var(--accent); padding-left: 4px; }

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding-top: 24px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Divider with glow ---- */
.divider-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 60px 0;
  opacity: 0.3;
}

/* ---- Badges ---- */
.badge-accent {
  background: rgba(0,229,170,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,229,170,0.2);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ---- Alerts override ---- */
.alert-success {
  background: rgba(0,229,170,0.08);
  border-color: rgba(0,229,170,0.25);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.alert-danger {
  background: rgba(255,80,100,0.08);
  border-color: rgba(255,80,100,0.25);
  color: #ff8090;
  border-radius: var(--radius-sm);
}

.alert-warning {
  background: rgba(255,190,60,0.08);
  border-color: rgba(255,190,60,0.25);
  color: #ffcf60;
  border-radius: var(--radius-sm);
}

.alert-info {
  background: rgba(79,142,255,0.08);
  border-color: rgba(79,142,255,0.25);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
}

/* ---- Utility ---- */
.py-section { padding: 100px 0; }
.py-section-sm { padding: 60px 0; }

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-title { font-size: 36px; }
  .py-section { padding: 70px 0; }
  .pricing-card { margin-bottom: 16px; }
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg-secondary);
}

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0,229,170,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--accent);
  transition: transform .25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 576px) {
  .faq-question {
    padding: 18px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}
