/* ─── REKAL · styles.css ─────────────────────────────────── */

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

:root {
  --navy:     #0D1B2A;
  --navy-mid: #1E3A5F;
  --cream:    #F5F0E8;
  --amber:    #E8A020;
  --slate:    #6B7C8D;
  --white:    #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,240,232,0.07);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-decoration: none;
}
.logo span { color: var(--amber); }

nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--cream); }

.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(40%);
}
/* Fallback kalau gambar belum ada */
.hero-bg:not([style*="url"]) { display: none; }

#map-canvas {
  position: absolute;
  top: 0; right: -5%;
  width: 65%; height: 100%;
  z-index: 1;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  border: 1px solid rgba(232,160,32,0.3);
  padding: 6px 14px;
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--cream);
}
.hero h1 em { font-style: normal; color: var(--amber); }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(245,240,232,0.72);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

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

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(245,240,232,0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cream); }

/* ─── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(245,240,232,0.08);
  border-bottom: 1px solid rgba(245,240,232,0.08);
  padding: 36px 48px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 16px 32px; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--slate); max-width: 120px; margin: 0 auto; }

/* ─── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 96px 48px; max-width: 1140px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--cream);
}

.section-intro {
  font-size: 17px;
  color: rgba(245,240,232,0.65);
  max-width: 900px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* ─── ABOUT / VISUAL SPLIT ─────────────────────────────────── */
.about-section {
  padding: 96px 48px;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.about-image-wrap img:hover { opacity: 1; }

/* Placeholder saat gambar belum ada */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy-mid);
  border: 2px dashed rgba(232,160,32,0.25);
  border-radius: 8px;
}
.img-placeholder .ph-icon { font-size: 40px; opacity: 0.4; }
.img-placeholder .ph-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.img-placeholder .ph-filename {
  font-size: 11px;
  color: rgba(232,160,32,0.5);
  font-family: monospace;
}

.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-content p { font-size: 16px; color: rgba(245,240,232,0.7); line-height: 1.8; }

/* ─── PAIN CARDS ───────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: rgba(245,240,232,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.pain-card { background: var(--navy); padding: 36px 32px; position: relative; }
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pain-card:hover::before { opacity: 1; }
.pain-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.pain-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  margin-bottom: 12px; color: var(--cream);
}
.pain-card p { font-size: 14px; color: var(--slate); line-height: 1.65; }

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.how-section { padding: 96px 48px; background: var(--navy-mid); }
.how-inner { max-width: 1140px; margin: 0 auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.step { padding: 40px 32px; position: relative; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 56px; font-weight: 800;
  color: rgba(232,160,32,0.15);
  line-height: 1; margin-bottom: 8px;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--cream); margin-bottom: 12px;
}
.step p { font-size: 14px; color: var(--slate); line-height: 1.65; }
.step-connector {
  position: absolute;
  top: 56px; right: -12px;
  color: var(--amber); font-size: 20px; z-index: 1;
}

/* ─── USE CASES WITH IMAGES ────────────────────────────────── */
.cases-section { padding: 96px 48px; max-width: 1140px; margin: 0 auto; }

.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}

.case-item {
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.case-item:hover {
  border-color: rgba(232,160,32,0.4);
  transform: translateY(-3px);
}

.case-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--navy-mid);
}

/* Placeholder untuk case images */
.case-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy-mid), #152e4d);
  border-bottom: 1px solid rgba(245,240,232,0.06);
}
.case-img-placeholder .ph-icon { font-size: 32px; opacity: 0.35; }
.case-img-placeholder .ph-filename { font-size: 10px; color: rgba(232,160,32,0.4); font-family: monospace; }

.case-body { padding: 24px; }
.case-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px;
}
.case-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--cream); margin-bottom: 8px;
}
.case-item p { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ─── CTA / FORM ───────────────────────────────────────────── */
.cta-section {
  padding: 96px 48px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2d45 50%, #0D1B2A 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.cta-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--cream);
  margin-bottom: 16px; line-height: 1.15;
}
.cta-inner > p {
  font-size: 16px;
  color: rgba(245,240,232,0.6);
  margin-bottom: 44px; line-height: 1.7;
}

.form-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-field label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.15);
  color: var(--cream);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; border-radius: 4px;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--slate); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--amber); }
.form-field select option { background: var(--navy-mid); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  background: var(--amber); color: var(--navy);
  padding: 18px;
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  border: none; border-radius: 4px; cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(13,27,42,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 12px; color: var(--slate); margin-top: 14px; line-height: 1.6; }

.error-msg {
  background: rgba(220,50,50,0.12);
  border: 1px solid rgba(220,50,50,0.3);
  color: #ff8080;
  padding: 12px 16px; border-radius: 4px;
  font-size: 13px; margin-top: 12px;
  display: none; text-align: left;
}

.success-state { display: none; text-align: center; padding: 48px; }
.success-icon { font-size: 48px; margin-bottom: 20px; display: block; }
.success-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--cream); margin-bottom: 14px;
}
.success-state p { font-size: 16px; color: var(--slate); }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: 4px;
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  text-decoration: none; margin-top: 24px;
  transition: opacity 0.2s;
}
.wa-btn:hover { opacity: 0.88; }

.setup-banner {
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 6px;
  padding: 16px 20px; margin-bottom: 24px;
  text-align: left; font-size: 13px;
  color: rgba(245,240,232,0.8); line-height: 1.6;
  display: none;
}
.setup-banner strong { color: var(--amber); }
.setup-banner input {
  width: 100%; padding: 10px 14px; font-size: 13px;
  border-radius: 4px; border: 1px solid rgba(232,160,32,0.4);
  background: rgba(13,27,42,0.8); color: #F5F0E8;
  margin-top: 8px; outline: none;
}
.setup-banner button {
  margin-top: 8px; padding: 8px 18px;
  background: var(--amber); color: var(--navy);
  border: none; border-radius: 4px;
  font-weight: 700; cursor: pointer; font-size: 13px;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #080f18;
  padding: 36px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(245,240,232,0.06);
}
footer .logo { font-size: 18px; }
.footer-text { font-size: 13px; color: var(--slate); }

.divider { height: 1px; background: rgba(245,240,232,0.07); margin: 0 48px; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  #map-canvas { width: 100%; right: 0; opacity: 0.08; }
  .section { padding: 64px 24px; }
  .about-section { padding: 64px 24px; }
  .how-section { padding: 64px 24px; }
  .cases-section { padding: 64px 24px; }
  .cta-section { padding: 64px 24px; }
  .stats-bar { padding: 24px; }
  .stat-item { padding: 12px 16px; }
  .form-two-col { grid-template-columns: 1fr; }
  footer { padding: 28px 24px; flex-direction: column; text-align: center; }
  .step-connector { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
