/* ==========================================================================
   Arena Finance AG — site styles
   ========================================================================== */

:root {
  --ink: #0a1b33;
  --ink-800: #10264a;
  --ink-700: #1a3560;
  --text: #18212f;
  --muted: #5a6678;
  --line: #e3e8f0;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --brand: #0b6bff;
  --brand-600: #0858d6;
  --brand-50: #eaf2ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(10, 27, 51, .05), 0 6px 16px rgba(10, 27, 51, .06);
  --shadow-2: 0 24px 60px rgba(4, 14, 32, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }

:focus-visible { outline: 3px solid rgba(11, 107, 255, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 107, 255, .32); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-50); }

.link {
  background: none; border: 0; padding: 0;
  color: var(--brand); font-weight: 700; font-size: 15px;
}
.link span { display: inline-block; transition: transform .15s; }
.link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 27, 51, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand-suffix { font-weight: 600; opacity: .6; }
.brand-dark { color: var(--ink); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 600;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  background: transparent; border: 0; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(11, 107, 255, .42), transparent 62%),
    radial-gradient(640px 420px at -6% 104%, rgba(11, 107, 255, .2), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px; align-items: center;
  padding-top: 76px; padding-bottom: 92px;
}

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #31d07f; box-shadow: 0 0 0 4px rgba(49, 208, 127, .2); }

.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.hero-points svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(49, 208, 127, .18); fill: none; stroke: #4be29a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Calculator ---------- */
.calc {
  background: #fff; color: var(--text);
  border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow-2);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.calc-head h2 { font-size: 20px; font-weight: 800; }
.calc-tag { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }

.field { margin-bottom: 20px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--muted); }
.field-value { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: right; }

.range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 28px; margin: 4px 0 0; padding: 0;
  background: transparent; cursor: pointer; --p: 50%;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--brand) var(--p), #dce3ee var(--p));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 2px 8px rgba(11, 107, 255, .35);
  transition: transform .12s;
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: #dce3ee; }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 2px 8px rgba(11, 107, 255, .35);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(11, 107, 255, .25); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(11, 107, 255, .25); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: #8590a2; }

.segments { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.segments label { position: relative; }
.segments input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segments span {
  display: flex; align-items: center; justify-content: center; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
  transition: background .12s, border-color .12s, color .12s;
}
.segments label:hover span { border-color: #b9c6da; }
.segments input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segments input:focus-visible + span { outline: 3px solid rgba(11, 107, 255, .45); outline-offset: 2px; }

.calc-result { margin: 4px 0 18px; padding: 18px 20px; border-radius: 16px; background: var(--soft); }
.calc-result-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.calc-result-value { margin-top: 2px; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result-value .cur { font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-breakdown dt { font-size: 12.5px; color: var(--muted); }
.calc-breakdown dd { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #7a8698; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-soft { background: var(--soft); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head-left { margin: 0; text-align: left; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--ink); }
.lead { margin-top: 14px; font-size: 17px; color: var(--muted); }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-50); color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feature h3 { margin-top: 16px; font-size: 17px; font-weight: 800; color: var(--ink); }
.feature p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Loan cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: #cfd9e8; }
.card h3 { margin-top: 18px; font-size: 19px; font-weight: 800; color: var(--ink); }
.card p { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.card .link { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 18px; font-weight: 800;
  position: relative; z-index: 1;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 28px; left: 64px; right: -16px;
  border-top: 2px dashed #cdd6e4;
}
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 800; color: var(--ink); }
.step p { margin-top: 8px; color: var(--muted); max-width: 30em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .btn { margin-top: 24px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq details + details { margin-top: 10px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 60ch; }

/* CTA */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(11, 107, 255, .45), transparent 65%),
    var(--ink);
}
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta-copy p { margin: 12px 0 28px; max-width: 30em; font-size: 17px; color: rgba(255, 255, 255, .78); }
.cta-contact { display: grid; gap: 20px; font-style: normal; padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .14); }
.cta-contact > div { display: grid; gap: 2px; font-size: 15.5px; line-height: 1.5; }
.contact-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.cta-contact a { font-weight: 600; }
.cta-contact a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 112px; border-top: 1px solid var(--line); background: #fff; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.legal-notice {
  margin-top: 28px; padding: 14px 16px; border-radius: 12px;
  background: var(--soft); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text);
}
.legal-notice span { display: block; color: var(--muted); }
.copyright { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
  .calc { max-width: 560px; }
  .features, .cards { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
  .cta-contact { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 8px; border-radius: 8px; font-size: 16px; }
  .header-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::before { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .calc { padding: 20px; border-radius: 20px; }
  .calc-result-value { font-size: 32px; }
  .segments { grid-template-columns: repeat(4, 1fr); }
  .features, .cards { grid-template-columns: 1fr; gap: 24px; }
  .cards { gap: 14px; }
  .cta { padding: 28px 22px; border-radius: 22px; }
  .cta-copy .btn { width: 100%; }
  .cta-contact { grid-template-columns: 1fr; }
  .brand-name { font-size: 16.5px; }
}

@media (max-width: 380px) {
  .header-actions .btn svg { display: none; }
  .header-inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
