/* ============================================
   BUKITTINGGI CITY PORTAL
   Maintenance Page — Highland Romanticism Editorial
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color Palette - Warm, Sophisticated, Not Generic */
  --bg-primary: #FAF7F2;        /* Warm cream */
  --bg-secondary: #F0EBE3;       /* Soft sand */
  --bg-dark: #1C1917;           /* Rich charcoal */
  --text-primary: #1C1917;      /* Deep charcoal */
  --text-secondary: #57534E;     /* Warm gray */
  --text-muted: #A8A29E;        /* Soft stone */
  --accent-green: #2D5A47;       /* Highland forest */
  --accent-green-light: #3D7A5F; /* Lighter green */
  --accent-terracotta: #C2703A;  /* Earthy terracotta */
  --accent-gold: #B8956E;        /* Muted gold */
  --accent-rust: #8B4513;        /* Deep rust */
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

::selection {
  background-color: var(--accent-green);
  color: var(--white);
}

/* ---------- Page Layout ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Background Atmosphere ---------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
}

.bg-circle-1 {
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 90, 71, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.bg-circle-2 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 112, 58, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.bg-gonjong {
  position: absolute;
  top: 60px;
  left: 5%;
  width: 120px;
  height: 80px;
  opacity: 0.04;
}

.bg-gonjong svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-green);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: 800px;
}

/* ---------- Header ---------- */
.header {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--bg-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-mark::before {
  opacity: 1;
}

.logo-letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-gold);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.logo:hover .logo-letter {
  color: var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--accent-green);
}

/* ---------- Main Content ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: var(--space-5xl) 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Status Badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(45, 90, 71, 0.08);
  border: 1px solid rgba(45, 90, 71, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Typography */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero-title-line {
  display: block;
}

.hero-title-line:nth-child(2) {
  color: var(--accent-green);
  font-style: italic;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

/* ---------- Value Props Grid ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.value-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.4s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.value-item:nth-child(1) { animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s forwards; }
.value-item:nth-child(2) { animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s forwards; }
.value-item:nth-child(3) { animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s forwards; }
.value-item:nth-child(4) { animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards; }

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--bg-secondary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.value-item:hover .value-icon {
  background: var(--accent-green);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-green);
  transition: stroke 0.3s ease;
}

.value-item:hover .value-icon svg {
  stroke: var(--white);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  margin-top: var(--space-4xl);
  padding: var(--space-3xl);
  background: var(--bg-dark);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.9s forwards;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.newsletter-decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184, 149, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
}

.newsletter-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-button {
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-green);
  border: none;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: var(--accent-green-light);
  transform: translateY(-2px);
}

.newsletter-privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-lg);
}

.newsletter-success {
  display: none;
  padding: var(--space-lg);
  background: rgba(45, 90, 71, 0.2);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  color: #6EE7B7;
  font-size: 0.9375rem;
}

.newsletter-form.success .newsletter-input,
.newsletter-form.success .newsletter-button {
  display: none;
}

.newsletter-form.success .newsletter-success {
  display: block;
}

/* ---------- Preview Section ---------- */
.preview {
  margin-top: var(--space-4xl);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1s forwards;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.preview-card {
  aspect-ratio: 16/10;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

.preview-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.preview-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.preview-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.preview-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-green);
}

.preview-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-terracotta);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-2xl) 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--accent-green);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

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

.footer-link:hover {
  color: var(--accent-green);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .header-inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .value-item {
    padding: var(--space-lg);
  }

  .newsletter {
    padding: var(--space-2xl);
    border-radius: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-letter {
    font-size: 1.25rem;
  }

  .logo-name {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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