/* ==========================================================================
   Funnel Landing Page — Hartanah (Subsale/Lelong)
   Styles — Extracted from reference screenshots
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700;900&family=Inter:wght@400;500;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors — Primary (Dark theme) */
  --color-primary: #1a1a2e;
  --color-primary-dark: #0f0f23;

  /* Colors — Secondary (Red/Accent sections) */
  --color-secondary: #c0392b;
  --color-secondary-light: #e74c3c;

  /* Colors — Accent (CTA / Highlights) */
  --color-accent: #a4e22e;
  --color-accent-hover: #8bc624;

  /* Colors — Backgrounds */
  --color-bg-light: #ffffff;
  --color-bg-light-alt: #f8f9fa;

  /* Colors — Text */
  --color-text-light: #ffffff;
  --color-text-dark: #1a1a2e;
  --color-text-muted: #b0b0b0;
  --color-text-muted-light: #6c757d;

  /* Typography */
  --font-heading: 'Oswald', 'Bebas Neue', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --font-size-h1: 3rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.5rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;

  --font-weight-bold: 700;
  --font-weight-black: 900;
  --font-weight-normal: 400;

  --line-height-heading: 1.2;
  --line-height-body: 1.6;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  /* Layout */
  --container-max: 1100px;
  --grid-gap: 24px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-secondary-light);
}

.section-body {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: var(--space-sm) auto var(--space-md);
  color: var(--color-text-muted-light);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Patterns --- */
section {
  width: 100%;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
}

.section-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: var(--space-xl) 0;
}

.section-accent {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
}

.section-content {
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 35, 0.45) 0%,
    rgba(26, 26, 46, 0.60) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  text-transform: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 1.125rem;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  min-width: 200px;
  min-height: 48px;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(164, 226, 46, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

/* --- Feature Cards (Section 3 — Benefits) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin: var(--space-lg) 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: var(--font-size-small);
  opacity: 0.9;
  line-height: 1.5;
}

/* --- Steps Section (Section 4 — Process) --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.steps-list {
  list-style: none;
}

.step-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  min-width: 50px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.step-content p {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.steps-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.steps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* --- Trust / Why Choose Section --- */
.reasons-list {
  list-style: none;
  max-width: 700px;
  margin: var(--space-lg) auto;
  text-align: left;
}

.reasons-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  line-height: 1.6;
}

.reasons-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
}

/* --- Media Area (Section 2 — Value Prop) --- */
.media-block {
  max-width: 700px;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light-alt);
  aspect-ratio: 16/9;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.trust-item {
  text-align: center;
}

.trust-item .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  display: block;
}

.trust-item .label {
  font-size: var(--font-size-small);
  color: var(--color-text-muted-light);
}

/* Section-light text-accent override for visibility */
.section-light .text-accent {
  color: var(--color-secondary);
}

/* --- Footer --- */
.footer {
  padding: var(--space-md) 0;
}

.footer p {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Responsive — Mobile First --- */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
  }

  .section-dark,
  .section-light,
  .section-accent {
    padding: var(--space-lg) 0;
  }

  .hero {
    min-height: 80vh;
    padding: var(--space-lg) 0;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 14px 32px;
    width: 100%;
    max-width: 320px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .steps-image {
    order: 2;
  }

  .steps-image img {
    min-height: 250px;
  }

  .reasons-list li {
    font-size: 1rem;
  }

  .trust-bar {
    gap: var(--space-md);
  }

  .section-body {
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
