/* ==========================================================================
   UWI ONE — App Description stylesheet
   Inspired by universalwalletinfra.com (Kantumruy Pro, blue/purple palette)
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f6fe;
  --color-fg: #070a20;
  --color-fg-muted: #6d6f7c;
  --color-border: #e5e7f1;
  --color-primary: #2441f1;
  --color-primary-soft: #cbd2fc;
  --color-accent: #a100ff;
  --color-accent-soft: #faf2ff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7, 10, 32, 0.04);
  --shadow-md: 0 12px 32px -16px rgba(36, 65, 241, 0.25),
    0 4px 12px -6px rgba(7, 10, 32, 0.08);

  --font-sans: "Kantumruy Pro", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";

  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-fg);
  background:
    radial-gradient(
      1200px 600px at 0% -10%,
      rgba(36, 65, 241, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(161, 0, 255, 0.06),
      transparent 60%
    ),
    var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.site-header {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* Soft top-center glow */
.site-header::before {
  top: -180px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(36, 65, 241, 0.32),
    rgba(161, 0, 255, 0.18) 45%,
    transparent 70%
  );
  filter: blur(40px);
}

/* Subtle grid/sheen at the bottom */
.site-header::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(36, 65, 241, 0.25),
    rgba(161, 0, 255, 0.25),
    transparent
  );
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Hero icon -------------------------------------------------- */

.site-header__icon {
  position: relative;
  width: 144px;
  height: 144px;
  margin-bottom: 28px;
  animation: float 6s ease-in-out infinite;
}

/* Halo behind the icon */
.site-header__icon::before {
  content: "";
  position: absolute;
  inset: -52px;
  border-radius: 50%;
  background:
    radial-gradient(
      closest-side,
      rgba(36, 65, 241, 0.55),
      rgba(161, 0, 255, 0.32) 45%,
      transparent 75%
    );
  filter: blur(22px);
  z-index: 0;
}

/* Floor reflection / pedestal shadow */
.site-header__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 132px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 10, 32, 0.35),
    transparent 70%
  );
  filter: blur(6px);
  z-index: 0;
}

.site-header__icon img {
  position: relative;
  z-index: 1;
  display: block;
  width: 144px;
  height: 144px;
  border-radius: 32px;
  box-shadow:
    0 28px 60px -22px rgba(36, 65, 241, 0.6),
    0 12px 24px -10px rgba(7, 10, 32, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 0 rgba(7, 10, 32, 0.08) inset;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__icon {
    animation: none;
  }
}

.site-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.site-header__title {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
  background: linear-gradient(
    100deg,
    var(--color-fg) 0%,
    var(--color-primary) 60%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header__lede {
  font-size: 17px;
  color: var(--color-fg-muted);
  max-width: 600px;
  margin: 0 auto;
}

.site-main {
  padding: 16px 0 64px;
}

/* --------------------------------------------------------------------------
   Section cards
   -------------------------------------------------------------------------- */

.section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.section:hover {
  box-shadow: var(--shadow-md);
}

.section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px -6px rgba(36, 65, 241, 0.5);
}

.section__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-fg);
}

.section__body {
  color: var(--color-fg);
}

.section__body p {
  margin: 10px 0;
  color: var(--color-fg);
}

.section__body p + p {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Feature list
   -------------------------------------------------------------------------- */

.feature-list {
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding: 12px 14px 12px 44px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 160ms ease, transform 160ms ease;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 3px),
    linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 2px 6px -2px rgba(36, 65, 241, 0.6);
}

.feature-list li:hover {
  border-color: var(--color-primary-soft);
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

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

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header {
    padding: 56px 0 36px;
  }
  .site-header__icon,
  .site-header__icon img {
    width: 112px;
    height: 112px;
  }
  .site-header__icon {
    margin-bottom: 22px;
  }
  .site-header__icon img {
    border-radius: 26px;
  }
  .site-header__icon::after {
    width: 104px;
  }
  .section {
    padding: 22px 20px 18px;
    border-radius: var(--radius-md);
  }
  .section__header {
    gap: 12px;
  }
  .section__number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .section__title {
    font-size: 18px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #070a20;
    --color-surface: #0f1330;
    --color-surface-alt: #161b3d;
    --color-fg: #f4f6fe;
    --color-fg-muted: #a2aef9;
    --color-border: #1f254a;
    --color-primary-soft: #2a3470;
    --color-accent-soft: #2a1b46;
  }
  .site-header__title {
    background: linear-gradient(
      100deg,
      #ffffff 0%,
      #a2aef9 50%,
      #d9b6ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
