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

:root {
  --bg-body: #020617;
  --bg-card: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.96);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --accent-strong: #0ea5e9;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #f9fafb;
  --text-muted: #94a3b8;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.95), #020617);
  color: var(--text-main);
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top, var(--accent), #1d4ed8);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
  overflow: hidden;
}

.logo-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.topbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation */

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s ease-out;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.95);
}

.nav-link:hover::before {
  opacity: 1;
}

/* Hamburger */

.menu-toggle {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: #e5e7eb;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 11px;
}

.menu-toggle span:nth-child(2) {
  top: 17px;
}

.menu-toggle span:nth-child(3) {
  top: 23px;
}

.menu-toggle.menu-open span:nth-child(1) {
  top: 17px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.menu-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.menu-open span:nth-child(3) {
  top: 17px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  max-width: 1220px;
  margin: 24px auto 32px;
  padding: 0 18px 18px;
  gap: 24px;
}

/* Sidebar */

.sidebar {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), var(--bg-card));
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  align-self: flex-start;
  position: sticky;
  top: 70px;
}

.price-card h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}

#coti-price-usd,
#coti-price-eur {
  font-size: 1.15rem;
  font-weight: 600;
}

.price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.price-change {
  margin-top: 8px;
  font-size: 0.85rem;
}

.price-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main content */

.main {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 24px 26px 30px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.8);
  margin-bottom: 24px;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.hero-subline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-logo {
  width: 116px;
  height: 116px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.5), rgba(15, 23, 42, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.9);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.7);
}

.hero-logo img {
  width: 76px;
  height: auto;
  object-fit: contain;
}

/* dApp / info section before slider */

.dapp-section {
  margin-top: 20px;
  margin-bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 1));
  border: 1px solid rgba(30, 64, 175, 0.85);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.dapp-section h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.dapp-intro {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
}

.dapp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dapp-card {
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 1));
}

.dapp-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.dapp-card p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Carousel */

.carousel-section {
  margin-top: 10px;
}

.carousel-header h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.carousel-header p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel-wrapper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.carousel-track {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  display: none;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 1));
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
}

.carousel-item.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.carousel-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.carousel-item p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel-item .note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0b1120;
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.primary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.65);
}

.carousel-arrow {
  width: 34px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.18s ease-out;
}

.carousel-arrow:hover {
  color: var(--text-main);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  padding: 0;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.carousel-dot.active {
  width: 18px;
  background: var(--accent);
}

/* FAQ list */

.faq-list {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-list li {
  margin-bottom: 4px;
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
  }

  .sidebar {
    position: static;
    order: 2;
    margin-top: 10px;
  }

  .main {
    padding: 20px 18px 26px;
  }

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

  .hero-visual {
    align-self: center;
  }

  .top-nav {
    position: absolute;
    top: 58px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .top-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .carousel-arrow {
    width: 100%;
    height: 34px;
    border-radius: 999px;
  }

  .dapp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .topbar-title {
    font-size: 0.9rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }
}
