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

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-subtle: rgba(56, 189, 248, 0.1);
  --border: #334155;
  --border-light: #475569;
  --success: #34d399;
  --warning: #fbbf24;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 72rem;
  --radius: 0.75rem;
  --transition: 200ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 4rem 0;
}

/* === Header / Nav === */
header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(30, 41, 59, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.site-name span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  background-color: var(--accent-subtle);
}

nav a.active {
  color: var(--accent);
}

.btn-nav {
  background-color: var(--accent) !important;
  color: var(--bg-primary) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
}

.btn-nav:hover {
  background-color: var(--accent-hover) !important;
  color: var(--bg-primary) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background-color: var(--accent-subtle);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* === Page Header === */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 40rem;
}

/* === Cards === */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

/* === Info List === */
.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 6rem;
  padding-top: 0.125rem;
}

.info-list .value {
  flex: 1;
}

/* === Payment Buttons === */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-payment {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  width: 100%;
}

.btn-payment:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.btn-payment .arrow {
  margin-left: auto;
  opacity: 0.5;
  transition: all var(--transition);
}

.btn-payment:hover .arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* === Alert / Notice === */
.notice {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin: 1.5rem 0;
}

.notice-info {
  background-color: rgba(56, 189, 248, 0.08);
  border-color: var(--accent);
}

.notice-warning {
  background-color: rgba(251, 191, 36, 0.08);
  border-color: var(--warning);
}

.notice p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.notice strong {
  color: var(--text-primary);
}

/* === Consent Section === */
.consent-section {
  margin-top: 2rem;
}

.consent-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.consent-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.consent-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.consent-section ol {
  list-style: decimal;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.consent-section ol li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* === Footer === */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

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

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

/* === Hero (Home) === */
.hero {
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: 1.8;
}

.hero-address {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-address svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* === Section === */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* === Responsive === */
@media (max-width: 48rem) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  main {
    padding: 2.5rem 0;
  }
}
