/* ===========================================================
   weepay — design system
   Bold editorial fintech. Mavi tonlar.
=========================================================== */

:root {
  /* Palette */
  --bg: oklch(0.985 0.005 240);
  --bg-elev: #ffffff;
  --ink: oklch(0.18 0.03 250);
  --ink-2: oklch(0.4 0.03 250);
  --ink-3: oklch(0.6 0.02 240);
  --line: oklch(0.92 0.01 240);
  --line-2: oklch(0.88 0.015 240);

  --blue: oklch(0.55 0.2 252); /* primary */
  --blue-deep: oklch(0.36 0.16 252);
  --blue-bright: oklch(0.66 0.21 248);
  --sky: oklch(0.88 0.08 235); /* light blue */
  --sky-2: oklch(0.94 0.04 235);

  --accent: oklch(0.78 0.18 95); /* warm yellow-mustard accent for tension */
  --good: oklch(0.65 0.16 155);
  --warn: oklch(0.7 0.18 50);

  /* Type */
  --display:
    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:
    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-italic: normal;
  --em-italic: italic;
  --em-weight: 500;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 35, 80, 0.06), 0 1px 0 rgba(20, 35, 80, 0.03);
  --shadow-md:
    0 8px 24px rgba(20, 35, 80, 0.08), 0 2px 6px rgba(20, 35, 80, 0.04);
  --shadow-lg:
    0 24px 60px -20px rgba(20, 35, 80, 0.25), 0 2px 8px rgba(20, 35, 80, 0.06);

  --container: 1240px;
}

/* Theme: midnight (dark, electric blue) */
[data-theme="midnight"] {
  --bg: oklch(0.16 0.03 252);
  --bg-elev: oklch(0.2 0.035 252);
  --ink: oklch(0.96 0.01 240);
  --ink-2: oklch(0.78 0.02 240);
  --ink-3: oklch(0.58 0.03 240);
  --line: oklch(0.28 0.04 252);
  --line-2: oklch(0.34 0.05 252);
  --blue: oklch(0.72 0.2 245);
  --blue-deep: oklch(0.55 0.2 250);
  --blue-bright: oklch(0.78 0.21 240);
  --sky: oklch(0.45 0.12 245);
  --sky-2: oklch(0.3 0.07 248);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* Theme: minimal (very clean white, single accent) */
[data-theme="minimal"] {
  --bg: #ffffff;
  --sky: oklch(0.94 0.04 235);
  --accent: var(--blue);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--blue);
  color: white;
}

/* ---------- Type ramp ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.h-display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-italic);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h-display em,
.h1 em,
.h2 em {
  font-style: var(--em-italic);
  font-weight: var(--em-weight);
  color: var(--blue);
}

.h1 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-italic);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-italic);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.muted {
  color: var(--ink-3);
}
.mono {
  font-family: var(--mono);
}
.serif {
  font-family: var(--display);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section-sm {
  padding: 56px 0;
}
.section-lg {
  padding: 140px 0;
}

.row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition:
    transform 0.15s ease,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--blue);
  color: white;
}
.btn-blue:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px color-mix(in oklch, var(--blue) 60%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-elev);
}
.btn-link {
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.btn-link:hover {
  color: var(--blue);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  min-width: 0;
}
.card-tight {
  padding: 20px;
}

/* ---------- Notice dialog (home popup) ---------- */
.notice-dialog {
  border: none;
  padding: 0;
  background: transparent;
  width: min(820px, calc(100% - 48px));
  max-width: unset;
}
.notice-dialog::backdrop {
  background: color-mix(in oklch, var(--ink) 55%, transparent);
}

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 15px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--blue) 18%, transparent);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: var(--bg-elev);
  color: var(--ink);
}
.nav-link.active {
  color: var(--ink);
  background: var(--bg-elev);
}
.nav-spacer {
  flex: 1;
}
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-menu-btn,
.mobile-nav-panel {
  display: none;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  flex: none;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      transparent 49.5%,
      white 50%,
      white 53%,
      transparent 53.5%
    ),
    linear-gradient(
      135deg,
      transparent 64.5%,
      white 65%,
      white 68%,
      transparent 68.5%
    );
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 50%,
    oklch(0.4 0.18 252) 100%
  );
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: oklch(0.92 0.02 240);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer .logo {
  color: oklch(0.96 0.01 240);
}
.footer a:hover {
  color: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.65 0.04 240);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: oklch(0.85 0.02 240);
  font-size: 14px;
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid oklch(0.3 0.04 252);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: oklch(0.65 0.04 240);
}

/* ---------- Page transitions ---------- */
.page-root {
  animation: pageIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Patterns ---------- */
.grid-bg {
  background-image:
    linear-gradient(
      to right,
      color-mix(in oklch, var(--ink) 6%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in oklch, var(--ink) 6%, transparent) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
}
.dots-bg {
  background-image: radial-gradient(
    color-mix(in oklch, var(--ink) 12%, transparent) 1px,
    transparent 1.5px
  );
  background-size: 22px 22px;
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  gap: 64px;
  padding: 22px 0;
}
.marquee-item {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: "✦";
  color: var(--blue);
  font-style: normal;
  font-size: 16px;
}

body[data-marquee="off"] .marquee {
  display: none;
}

/* Utility */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky-2);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Responsive bits */
@media (max-width: 1100px) {
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 18px;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    gap: 14px;
  }
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
  }
  .mobile-nav-panel {
    display: grid;
    gap: 14px;
    padding: 12px 18px 18px;
    background: color-mix(in oklch, var(--bg) 94%, white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .mobile-nav-section {
    display: grid;
    gap: 6px;
  }
  .mobile-nav-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 6px 4px;
  }
  .mobile-nav-section a {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    font-weight: 500;
  }
  .mobile-nav-section small {
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 400;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .hero-home-grid,
  .dev-teaser-grid,
  .developer-hero-grid,
  .transfer-api-grid,
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1.05fr 0.95fr"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .numbers-stats {
    grid-template-columns: 1fr !important;
  }
  .numbers-value {
    font-size: 46px !important;
  }
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="width: 320px"],
  [style*="width: 280px"] {
    width: min(100%, 320px) !important;
  }
  [style*="transform: rotate(-3deg)"],
  [style*="transform: rotate(2.5deg)"] {
    transform: none !important;
  }
  [style*="padding: 48px"] {
    padding: 28px !important;
  }
  .about-mission {
    padding: 32px 24px !important;
  }
  .h-display {
    font-size: clamp(42px, 13vw, 72px);
  }
  .h1 {
    font-size: clamp(34px, 10vw, 56px);
  }
  .h2 {
    font-size: clamp(28px, 8vw, 44px);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    padding: 12px 16px;
  }
  .nav-cta .btn-blue {
    padding: 9px 12px;
    font-size: 13px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .numbers-value {
    font-size: 40px !important;
  }
  .about-intro {
    text-align: left !important;
  }
  .about-intro .lede {
    margin-left: 0 !important;
  }
  .about-mission {
    text-align: left !important;
  }
  .about-mission .lede {
    margin-left: 0 !important;
  }
  .btn-lg {
    padding: 13px 18px;
  }
  [style*="display: flex"][style*="gap: 12px"],
  [style*="display: flex"][style*="gap: 10px"] {
    flex-wrap: wrap !important;
  }
  .card [style*="display: flex"][style*="gap: 10px"] {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .card .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
