:root {
  --bg: #0f172a;
  --surface: #111827;
  --card: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #22c55e;
  --primary-strong: #16a34a;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1220, #111827);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding-left: max(0px, env(safe-area-inset-left, 0));
  padding-right: max(0px, env(safe-area-inset-right, 0));
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(165deg, #0a0f1a 0%, #0f172a 45%, #111827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 20;
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  padding-left: max(0px, env(safe-area-inset-left, 0));
  padding-right: max(0px, env(safe-area-inset-right, 0));
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 2rem 2.5rem;
  }
}

.hero-text {
  min-width: 0;
}

.hero-lead {
  color: #cbd5e1;
  margin: 0 0 0.5rem;
}

.hero-visual {
  min-width: 0;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .hero-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.hero-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  padding: 0.75rem 0.65rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-card:hover {
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
}

.hero-card-icon {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-card-detail {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.tagline {
  color: var(--primary);
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  background: var(--primary);
  color: #052e16;
  border-color: var(--primary);
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.ghost:hover {
  border-color: var(--primary);
}

.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #052e16;
  background: var(--primary);
  border-color: var(--primary);
}

.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.card {
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.chip {
  font-size: 0.8rem;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  display: inline-block;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.list {
  padding-left: 1.1rem;
}

.list li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border-left: 3px solid var(--primary);
  padding: 0.7rem 1rem;
  background: rgba(2, 6, 23, 0.45);
  border-radius: 8px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.doc-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0));
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: max(4%, env(safe-area-inset-right, 0));
    top: calc(100% + 0.35rem);
    z-index: 30;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    flex-direction: column;
    gap: 0.15rem;
    width: min(300px, calc(100vw - 2rem));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    min-height: 44px;
    line-height: 1.3;
  }

  .nav-links a:active {
    background: rgba(34, 197, 94, 0.12);
  }

  .nav-links.show {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.45rem, 6vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  }
}

@media (max-width: 380px) {
  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card-detail {
    display: none;
  }

  .hero-card {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-card {
    transition: none;
  }

  .hero-card:hover {
    transform: none;
  }
}
