/* build: 20261026-gate4 */
:root {
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --accent-gold: #fbbf24;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-600: #64748b;
  --gray-300: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Nav */
.site-nav {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  height: auto;
  padding: 0.625rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  line-height: 1;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav-cta {
  display: none;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #06b6d4);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgb(2 132 199 / 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(2 132 199 / 0.4);
}

@media (min-width: 768px) {
  .nav-links .nav-cta {
    display: inline-flex;
  }
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(1px);
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
}

/* Language picker (Coinepay-style) */
.lang-picker-root {
  position: relative;
  flex-shrink: 0;
}

.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.625rem;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lang-picker-trigger:hover {
  background: #e5e7eb;
}

.lang-picker-flag {
  font-size: 1.125rem;
  line-height: 1;
}

.lang-picker-chevron {
  color: #6b7280;
  flex-shrink: 0;
}

.lang-picker-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 11.5rem;
  max-height: 16.5rem;
  overflow-y: auto;
  padding: 0.375rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.06);
  z-index: 200;
}

.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #111827;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.lang-picker-option:hover {
  background: #f9fafb;
}

.lang-picker-option.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

#safari-gate .lang-picker--gate {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  z-index: 100002;
  margin: 0;
}

#safari-gate .lang-picker--gate .lang-picker-trigger {
  background: rgb(255 255 255 / 0.14);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#safari-gate .lang-picker--gate .lang-picker-trigger:hover {
  background: rgb(255 255 255 / 0.22);
}

#safari-gate .lang-picker--gate .lang-picker-chevron {
  color: rgb(255 255 255 / 0.75);
}

#safari-gate .lang-picker--gate .lang-picker-menu {
  top: calc(100% + 0.375rem);
  left: 0;
  right: auto;
  z-index: 100003;
}

@media (max-width: 767px) {
  .lang-picker--nav-mobile {
    margin-left: auto;
    margin-right: 0.125rem;
  }
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  margin: -0.375rem -0.5rem -0.375rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  color: var(--gray-700);
  position: relative;
  z-index: 110;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.menu-btn:hover {
  background: #f3f4f6;
}

.menu-btn:active {
  background: #e5e7eb;
}

.menu-btn .icon-close {
  display: none;
}

.site-nav.is-menu-open .menu-btn .icon-menu {
  display: none;
}

.site-nav.is-menu-open .menu-btn .icon-close {
  display: block;
}

.lang-picker--nav-mobile {
  display: block;
}

.nav-links .lang-picker-root {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
  .nav-links .lang-picker-root {
    display: block;
    margin-left: 0.5rem;
  }
  .lang-picker--nav-mobile {
    display: none;
  }
  .menu-btn {
    display: none;
  }
}

.mobile-nav-panel {
  display: none;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav-panel.open {
  display: block;
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.18);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.375rem 0 1rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.9375rem 1rem;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.25;
  border-bottom: 1px solid #f3f4f6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links a:last-child {
  border-bottom: none;
  padding-bottom: 1.125rem;
}

.mobile-nav-links a.active {
  color: var(--blue-600);
  font-weight: 600;
}

@media (max-width: 767px) {
  .brand {
    max-width: calc(100% - 3.25rem);
  }
}

body.is-mobile-menu-open {
  overflow: hidden;
}

main {
  flex: 1;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #020617 0%, #0c4a6e 42%, #0f172a 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgb(59 130 246 / 0.2);
  border: 1px solid rgb(96 165 250 / 0.3);
  color: #bfdbfe;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

.hero h1 .gradient {
  background: linear-gradient(to right, #38bdf8, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgb(219 234 254 / 0.9);
  max-width: 56rem;
  margin: 0 auto 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #67e8f9;
}

.stat-label {
  font-size: 0.875rem;
  color: #bfdbfe;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 10px 25px rgb(37 99 235 / 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: rgb(0 0 0 / 0.2);
  border: 1px solid rgb(96 165 250 / 0.5);
  color: #93c5fd;
}

.btn-outline:hover {
  background: rgb(59 130 246 / 0.2);
  color: #fff;
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-white {
  background: #fff;
  color: var(--blue-600);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-white {
  background: #fff;
}

.section-gray {
  background: #f9fafb;
}

.section-blue {
  background: var(--blue-600);
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
}

.section-title .accent {
  color: var(--blue-600);
}

.section-blue .section-title {
  color: #fff;
}

.prose {
  max-width: 56rem;
  margin: 0 auto;
  color: var(--gray-700);
}

.prose p {
  margin: 0 0 1rem;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--blue-600);
}

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

.icon-circle {
  width: 4rem;
  height: 4rem;
  max-width: 100%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.25rem;
  font-weight: 700;
  font-size: clamp(0.6875rem, 2.8vw, 0.9375rem);
  line-height: 1.15;
  text-align: center;
  color: #fff;
  overflow: hidden;
  word-break: keep-all;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.check-list li::before {
  content: "✓";
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.panel-blue {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  padding: 2rem;
  border-radius: 1rem;
}

.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: #bfdbfe;
  font-size: 1.0625rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

table.data-table th,
table.data-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}

table.data-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.contact-card .label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.contact-card .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-600);
}

.contact-card a.value:hover {
  text-decoration: underline;
}

.faq details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #fff;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 1rem;
}

.site-footer h3 {
  color: #60a5fa;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  color: #d1d5db;
  font-size: 0.9375rem;
}

.footer-meta a {
  color: #d1d5db;
}

.footer-meta a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Safari gate */
#safari-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgb(59 130 246 / 0.35), transparent 55%),
    linear-gradient(165deg, #0f172a 0%, #1e3a8a 45%, #172554 100%);
  color: #fff;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
  overflow-y: auto;
}

#safari-gate.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#safari-gate .gate-inner {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#safari-gate .gate-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 122 255 / 0.35);
}

#safari-gate .gate-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#safari-gate h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

#safari-gate .gate-body p {
  max-width: none;
  margin: 0 0 0.625rem;
  color: #bfdbfe;
  font-size: 0.875rem;
  line-height: 1.65;
}

#safari-gate .gate-msg p:last-child {
  margin-bottom: 0;
}

#safari-gate .gate-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

#safari-gate .gate-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: #e0e7ff;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: none;
}

#safari-gate .gate-steps li + li {
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

#safari-gate .gate-steps li.gate-step-copy[data-gate-copy-url] {
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: rgb(56 189 248 / 0.25);
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  outline: none;
}

#safari-gate .gate-steps li.gate-step-copy.gate-step-copy--pressed,
#safari-gate .gate-steps li.gate-step-copy:active {
  background: rgb(255 255 255 / 0.06);
  background-color: rgb(255 255 255 / 0.06);
}

#safari-gate .gate-steps li.gate-step-copy:focus-visible {
  outline: 2px solid rgb(56 189 248 / 0.55);
  outline-offset: 2px;
}

#safari-gate .gate-steps li:last-child {
  padding-bottom: 0;
}

#safari-gate .gate-step-index {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgb(59 130 246 / 0.35);
  border: 1px solid rgb(147 197 253 / 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

#safari-gate .gate-step-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
  text-decoration: none;
  border: none;
  box-shadow: none;
}

#safari-gate .gate-step-text--copy {
  cursor: pointer;
  text-decoration: none !important;
  border: none;
  border-bottom: none;
  box-shadow: none;
  outline: none;
  -webkit-text-decoration: none;
}

#safari-gate .gate-step-text--copy:hover,
#safari-gate .gate-step-text--copy:focus-visible {
  color: #fff;
}

#safari-gate .gate-brand {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.75rem;
  color: rgb(191 219 254 / 0.75);
  letter-spacing: 0.02em;
}

body.gate-active main,
body.gate-active .site-nav,
body.gate-active .site-footer {
  visibility: hidden;
}
