:root {
  --bg-dark: #0b1120;
  --bg-light: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #16a34a;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: #020617;
  --border-subtle: rgba(148, 163, 184, 0.25);
}

/* Reset + base */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ปุ่ม */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(34, 197, 94, 0.5);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent);
  color: #f9fafb;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.5), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* รูปโลโก้ข้างในกล่อง */
.logo-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.logo-text-main {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: #f9fafb;
}

/* Sections */

section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 30rem;
  margin: 0 auto;
}

/* การ์ด */

.card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 60%);
  border-radius: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Footer */

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.2rem 0 1.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 900px) {
  .nav-links {
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  section {
    padding: 2.3rem 0;
  }
}
