@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-main: #252523;
  --bg-surface: #2e2e2b;
  --bg-surface-hover: #363632;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent-green: #e1c233;
  --accent-green-dark: #052e16;
}

/* Global Reset & Base */
body {
  overflow-x: clip; /* device preview full-bleed (100vw) tidak membuat scrollbar horizontal */
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible interactive controls */
a,
button,
[role="button"],
.dropdown-item {
  cursor: pointer;
}

input[type="text"] {
  cursor: text;
}

:focus-visible {
  outline: 2px solid var(--accent-green) !important;
  outline-offset: 2px !important;
}

/* Typography */
.font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap; /* selalu 1 baris; mengecil via clamp di layar sempit */
}

/* Layar sempit: kecilkan judul brand agar 1 baris tetap muat sebaris tombol */
@media (max-width: 480px) {
  .brand-title {
    font-size: clamp(0.9rem, 4.2vw, 1.6rem);
  }
}

/* Logo brand (pengganti ikon bootstrap) */
.brand-logo {
  display: inline-block;
  width: 1.5rem;  /* 24px, setara fs-4 di header */
  height: 1.5rem;
  object-fit: contain;
}

.brand-logo-lg {
  width: 2rem;  /* 32px, setara fs-2 di hero */
  height: 2rem;
}

.hero-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

/* Green Highlight Badge (matches reference image) */
.badge-frontier {
  background-color: var(--accent-green);
  color: var(--accent-green-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* App Preview (pengganti prompt & search box) */
/* full-bleed dari kolom hero, tetap ter-center terhadap viewport */
.hero-preview {
  margin-inline: calc(50% - 50vw);
}

.hero-preview-img {
  display: block;
  width: auto; /* ukuran asli 1253×933, jangan dipaksa */
  max-width: min(1002px, calc(100% - 32px)); /* 20% lebih kecil dari asli 1253px; rasio tetap via height:auto */
  height: auto; /* proporsi aspek terjaga */
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Section Label */
.section-label-minimal {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

/* 2x3 Grid Action Cards */
.action-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 80px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.action-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.action-card:active {
  transform: translateY(0);
}

.action-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.action-card:hover .action-icon {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.action-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.action-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0;
}

/* Header & Navbar */
.top-nav {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-nav-login {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-hover);
}

/* Modal styling */
.modal-content-dark {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  color: var(--text-main);
}

.form-control-dark {
  background-color: #252523 !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-main) !important;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
}

.form-control-dark:focus {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25) !important;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 24px 16px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Nav links subtle */
.nav-link-subtle {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link-subtle:hover {
  color: #ffffff;
}

/* Shared section divider */
.section-divider {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Alternate section background */
.section-alt {
  background-color: #1e1e1b;
}

/* Section eyebrow label */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}

/* Section heading */
.section-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
}

/* ---- CARA KERJA ---- */
.steps-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .steps-row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0;
}

@media (min-width: 768px) {
  .step-item {
    padding: 0 28px;
  }
  .step-item:first-child {
    padding-left: 0;
  }
  .step-item:last-child {
    padding-right: 0;
  }
}

.step-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: rgba(34, 197, 94, 0.3);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.step-connector {
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.07);
}

@media (max-width: 767px) {
  .step-connector {
    width: 1px;
    height: 32px;
    margin-left: 2px;
  }
}

@media (min-width: 768px) {
  .step-connector {
    width: 1px;
    align-self: stretch;
    min-height: 90px;
    margin-top: 20px;
  }
}

/* ---- UNTUK SIAPA ---- */
.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.audience-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.audience-item strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.audience-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---- FAQ ---- */
.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-block:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s ease;
  min-height: 44px;
}

.faq-question:hover {
  color: var(--accent-green);
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition:
    transform 0.25s ease,
    color 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-green);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding-bottom: 0;
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- CTA BOTTOM ---- */
.section-cta {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.cta-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-green);
  color: var(--accent-green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  min-height: 52px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.btn-cta-primary:hover {
  background-color: #4ade80;
  color: var(--accent-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.32);
}

.btn-cta-primary:active {
  transform: translateY(0);
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
