/* Mīlestības Kredītbirojs — responsive one-page parody website */

:root {
  --bg: #0d1117;
  --surface: #141b23;
  --surface-2: #1a2430;
  --text: #f7f5ef;
  --muted: #aab5c1;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #65f2a2;
  --accent-dark: #082c1b;
  --gold: #f5c86c;
  --danger: #ff7e78;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 5%, rgba(101, 242, 162, 0.10), transparent 26rem),
    radial-gradient(circle at 10% 40%, rgba(245, 200, 108, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #06150d;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(101, 242, 162, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.07em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  width: min(1280px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 84px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 18px 0 26px;
  font-size: clamp(54px, 7.8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #06150d;
  box-shadow: 0 12px 32px rgba(101, 242, 162, 0.17);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.prediction {
  min-height: 28px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  max-width: 600px;
  margin-left: auto;
}

.status-pill {
  position: absolute;
  top: 24px;
  left: -34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.88);
  font-size: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(101, 242, 162, 0.11);
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03);
}

.portrait-caption {
  display: grid;
  gap: 3px;
  padding: 20px 22px 22px;
}

.portrait-caption span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.portrait-caption strong {
  font-size: 17px;
}

.floating-card {
  position: absolute;
  right: -35px;
  bottom: 95px;
  display: grid;
  width: 175px;
  padding: 18px;
  border: 1px solid rgba(101, 242, 162, 0.3);
  border-radius: 20px;
  background: var(--accent);
  color: #06150d;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.floating-card span,
.floating-card small {
  font-size: 11px;
}

.floating-card strong {
  margin: 2px 0;
  font-size: 42px;
  line-height: 1;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090d12;
  white-space: nowrap;
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 25px;
  padding: 16px 0;
  animation: ticker 22s linear infinite;
}

.ticker span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.ticker strong {
  margin-right: 28px;
  color: var(--accent);
  font-size: 13px;
}

.ticker .warning {
  color: var(--danger);
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.final-cta h2 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p,
.final-cta p {
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.service-card.featured {
  border-color: rgba(101, 242, 162, 0.32);
  background: linear-gradient(160deg, rgba(101, 242, 162, 0.12), rgba(255, 255, 255, 0.025));
  transform: translateY(-12px);
}

.popular {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #06150d;
  font-size: 10px;
  font-weight: 900;
}

.service-icon {
  display: block;
  margin-bottom: 35px;
  font-size: 32px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.service-card p {
  color: var(--muted);
}

.service-card small {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: var(--gold);
}

.dashboard-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.dashboard {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.balance-panel,
.button-grid,
.history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.balance-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 34px;
  background:
    linear-gradient(140deg, rgba(101, 242, 162, 0.19), rgba(20, 27, 35, 0.95)),
    var(--surface);
}

.balance-panel > span {
  color: var(--muted);
}

.balance-panel > strong {
  margin: 8px 0 18px;
  font-size: clamp(50px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.balance-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}

.money-button {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease;
}

.money-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.money-button span {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
}

.money-button.borrow span {
  color: var(--danger);
}

.money-button.repay span {
  color: var(--accent);
}

.history {
  grid-column: 1 / -1;
  padding: 28px;
}

.history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.history-title button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

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

.history li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.history li:last-child {
  border-bottom: 0;
}

.history li span {
  color: var(--muted);
}

.history li b {
  display: block;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.negative {
  color: var(--danger);
}

.positive {
  color: var(--accent);
}

.quote-section {
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 80px 24px;
  text-align: center;
  background: var(--accent);
  color: #06150d;
}

.quote-section blockquote {
  max-width: 1000px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 94px);
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.quote-section p {
  margin: 24px 0 0;
  font-weight: 800;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.terms-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.terms-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.terms-grid h3 {
  margin: 25px 0 8px;
  font-size: 24px;
}

.terms-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta {
  width: min(1050px, calc(100% - 40px));
  margin: 40px auto 120px;
  padding: clamp(45px, 8vw, 90px);
  border: 1px solid rgba(101, 242, 162, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(101, 242, 162, 0.18), transparent 23rem),
    var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.paid-message {
  min-height: 24px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer div {
  display: grid;
  gap: 3px;
}

footer strong {
  color: var(--text);
}

footer p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(360px, calc(100% - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(101, 242, 162, 0.26);
  border-radius: 14px;
  background: #111921;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin: 10px auto 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    transform: none;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .history {
    grid-column: auto;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 13px 16px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .section,
  .dashboard-section,
  .final-cta {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 58px 0 75px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 78px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .status-pill {
    top: 16px;
    left: 12px;
  }

  .floating-card {
    right: 8px;
    bottom: 87px;
    width: 150px;
  }

  .portrait-card {
    border-radius: 24px;
  }

  .section,
  .dashboard-section {
    padding: 82px 0;
  }

  .section-heading {
    text-align: left;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .history li {
    align-items: flex-start;
  }

  .history li strong {
    white-space: nowrap;
  }

  .quote-section {
    min-height: 380px;
  }

  .final-cta {
    margin-bottom: 80px;
  }
}

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

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