/* =========================================
   1. Box sizing
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================
   2. Remove default margin
========================================= */

* {
  margin: 0;
}

/* =========================================
   3. Core body defaults
========================================= */

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* =========================================
   4. Typography resets
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p,
ul,
ol {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* =========================================
   5. Media elements
========================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* =========================================
   6. Forms
========================================= */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Remove default fieldset styles */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* =========================================
   7. Tables
========================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================================
   8. Anchor normalization (removes purple visited)
========================================= */

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

a:visited {
  color: inherit; /* removes default purple */
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* =========================================
   9. Reduce motion for accessibility
========================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --bg: #070707;
  --panel: #0f0f0f;
  --muted: #9b9b9b;
  --text: #e9e9e9;
  --accent: #d31216;
  --accent-2: #c62828;
  --dark-accent: #9e0d10;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --light-border: rgba(255, 255, 255, 1);

  --radius: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  font-family:
    "Nunito Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: linear-gradient(180deg, var(--bg), #050505);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 76%,
    rgba(0, 0, 0, 0) 100%
  );

  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0.5rem 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  height: 28px;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.15s, background 0.15s;
}
.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.lang-chevron {
  transition: transform 0.2s;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px;
  min-width: 110px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.lang-switcher.open .lang-menu {
  display: block;
}
.lang-option {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.1s, color 0.1s;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.lang-option.active {
  color: var(--text);
  font-weight: 600;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost {
  background: var(--text);
  border: 1px solid var(--border);
  color: var(--bg);
}
.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--light-border);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 60px 0 40px;
}
.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  flex: 1;
  max-width: 640px;
}
.hero-title {
  font-size: 48px;
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
}
.hero-title .accent {
  color: var(--accent);
}
.hero-lead {
  color: var(--muted);
  margin-top: 18px;
  font-size: 18px;
}
.hero-ctas {
  margin-top: 22px;
  display: flex;
  gap: 12px;
}
.hero-media {
  flex: 0 0 360px;
  display: flex;
  justify-content: center;
}
.hero-map {
  width: 100%;
  border-radius: 8px;
}

/* KPI strip */
.kpi-strip {
  padding: 30px 0;
}
.kpi-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
.kpi-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
/* Desktop (6 cols): divider after every item except the last */
.kpi-list li:not(:last-child) {
  border-right: 1px solid var(--light-border);
}
.kpi-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
}
.kpi-label {
  display: block;
  color: var(--text);
  margin-top: 6px;
  font-size: 18px;
}

.kpi-list small {
  color: var(--muted);
  font-size: 14px;
}

/* Features grid */
.section-title {
  text-align: center;
  font-size: 32px;
  margin: 36px 0 18px;
  color: var(--text);
  font-weight: 600;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}
.feature-card {
  background: transparent;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  min-height: 150px;
  width: 100%;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(255, 255, 255, 0.25);
  box-shadow: 0px 0px 7px 0px rgba(255, 255, 255, 0.25);
}
.feature-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}
.feature-card p {
  color: var(--muted);
  font-size: 16px;
}
.feature-icon {
  width: 44px;
  height: 44px;
}

/* Markets */
.markets-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  list-style: none;
  padding: 18px 0;
  margin: 0;
}

.markets-list small {
  color: var(--muted);
}
.markets-list li {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-right: none;
}

/* Desktop: show divider on all except the last markets item */
@media (min-width: 641px) {
  .markets-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .markets-list li:not(:last-child) {
    border-right: 1px solid var(--light-border);
    padding-right: 28px;
  }
}
.markets-list img {
  margin-bottom: 8px;
  height: 60px;
}

.markets-list .live-status {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #08bd03;
}
.markets-list .live-circle {
  height: 20%;
  aspect-ratio: 1;
  background: #08bd03;
  border-radius: 100%;
  margin: 0 6px 0 0;
  flex-shrink: 0;
  align-self: center;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: transparent;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(255, 255, 255, 0.25);
  box-shadow: 0px 0px 7px 0px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.product-card p {
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 8px;
}

.product-card small {
  color: var(--muted);
}

.product-card .atlas-index-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* CTA panel */
.cta {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .cta {
    padding: 28px 1rem;
  }
}
.cta-panel {
  display: flex;
  gap: 20px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  padding: 18px;
  border-radius: 14px;
  align-items: center;
  max-width: 975px;
}

@media (max-width: 640px) {
  .cta-panel {
    padding: 12px;
  }
}
.cta-copy {
  flex: 1;
  color: #fff;
}
.cta-copy h3 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
}
.cta-pricing {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.price {
  background: var(--dark-accent);
  padding: 8px 0.75rem;
  border-radius: 8px;
  text-align: center;
}
.price-label {
  font-size: 12px;
  color: #fff;
  opacity: 0.9;
  margin: 0;
}
.price-amount {
  font-weight: 700;
  font-size: 32px;
}

.price-description {
  font-size: 14px;
}
.cta-actions {
  width: 320px;
  height: 100%;
  align-self: stretch;
}
.cta-box {
  background: #0b0b0b;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cta-box-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}
.cta-box-description {
  text-align: center;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;

  @media (max-width: 800px) {
    flex-direction: column;
    gap: 12px;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-media {
    width: 100%;
    max-width: 420px;
  }
  .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 850px) {
  .hero-title {
    font-size: 30px;
  }
  /* Medium (3 cols): reset dividers, then apply to every non-3rd item in a row */
  .kpi-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-list li:not(:last-child) {
    border-right: none;
  }
  .kpi-list li:not(:nth-child(3n)) {
    border-right: 1px solid var(--light-border);
  }
  .markets-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    justify-content: center;
  }
  .markets-list li {
    border-right: none;
    padding-right: 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
  }
  .header-inner {
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  /* Small (2 cols): divider only on odd items (left column) */
  .kpi-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-list li:not(:nth-child(3n)) {
    border-right: none;
  }
  .kpi-list li:nth-child(odd) {
    border-right: 1px solid var(--light-border);
  }
}

@media (max-width: 800px) {
  .cta-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

#launch-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

.social-buttons {
  display: flex;
  gap: 1rem;
}
