/* =========================================================
   Ofero Network — design system
   Light default, Revolut-like clean, indigo accent.
   ========================================================= */

:root {
  --ink:        #0B1320;
  --ink-2:      #1E2638;
  --muted:      #5B6577;
  --muted-2:    #8893A5;
  --line:       #E6E8EE;
  --line-2:     #F0F2F7;
  --bg:         #FFFFFF;
  --bg-soft:    #F7F8FB;
  --bg-hero:    #F4F2FF;

  --accent:     #4F46E5;
  --accent-2:   #6D5EF7;
  --accent-ink: #3730A3;
  --accent-soft:#EEF0FF;

  --success:    #16A34A;
  --danger:     #DC2626;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04);
  --shadow:     0 6px 20px rgba(15, 23, 42, .06);
  --shadow-lg:  0 20px 40px rgba(79, 70, 229, .12);

  --container:  1180px;

  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); color: #fff !important; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-ink); color: #fff; }

/* ---------------- Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { color: #fff; }
.nav-links .btn-ghost { color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 14px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.mobile-nav a {
  color: var(--ink); font-weight: 500;
  padding: 8px 0;
}
.mobile-nav[aria-expanded="true"],
.mobile-nav.open { display: flex; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(79, 70, 229, .15), transparent 60%),
    radial-gradient(700px 500px at 80% 0%, rgba(109, 94, 247, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-hero) 0%, #fff 88%);
  z-index: -1;
}

/* Two-column split layout — text gets more room, image is compact */
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 580px; }

/* Image wrapper: medium, floating, rounded, slightly faded */
.hero-image-wrap {
  position: relative;
  width: 420px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(79, 70, 229, .10), 0 2px 8px rgba(0,0,0,.04);
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-image-wrap::after {
  content: "";
  position: absolute; inset: 0;
  /* left fade to blend with hero bg + overall opacity wash */
  background: linear-gradient(
    to right,
    rgba(244, 242, 255, .60) 0%,
    rgba(244, 242, 255, .15) 30%,
    transparent 55%
  );
  pointer-events: none;
}
.hero-img {
  display: block;
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  opacity: .82;
}

.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: .4rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    width: 280px;
    margin: 0 auto;
    animation: none;
  }
  .hero-img {
    width: 280px;
    height: 280px;
  }
  .hero-text { max-width: 100%; }
  .hero .lead { max-width: 100%; }
  .hero-image-wrap::after {
    background: linear-gradient(
      to bottom,
      transparent 60%,
      rgba(244, 242, 255, .6) 100%
    );
  }
}

/* ---------------- Section base ---------------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* ---------------- Cards grid ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin-top: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.fact { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-2); padding-bottom: 14px; }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact dt { color: var(--muted); font-weight: 500; }
.fact dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------- Standard (ofero.json) banner ---------------- */
.standard {
  background: linear-gradient(135deg, #0B1320 0%, #1E2638 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.standard::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(109, 94, 247, .35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.standard h2 { color: #fff; }
.standard p { color: #C8CCD4; }
.standard .btn-accent { box-shadow: 0 10px 30px rgba(79, 70, 229, .4); }
.standard code.inline {
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}
.standard pre {
  background: #05080F;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px;
  font-size: .85rem;
  overflow-x: auto;
  margin: 0;
  color: #D4D8E0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.standard pre .k { color: #A5B4FC; }
.standard pre .s { color: #86EFAC; }
@media (max-width: 900px) { .standard { grid-template-columns: 1fr; padding: 32px; } }

/* ---------------- Partners ---------------- */
.partner-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.partner-badge {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.partner-body h3 { margin: 0 0 4px; }
.partner-body .meta { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.partner-body dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: .9rem; }
.partner-body dt { color: var(--muted-2); }
.partner-body dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.partner-cta { text-align: right; }
@media (max-width: 700px) {
  .partner-card { grid-template-columns: 1fr; text-align: left; }
  .partner-cta { text-align: left; }
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-notice {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 18px;
}
.form-notice.ok  { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.form-notice.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.contact-info {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line-2);
}
.contact-info h3 { margin-top: 0; }
.contact-info .info-row { margin-bottom: 18px; }
.contact-info .info-row:last-child { margin-bottom: 0; }
.contact-info .info-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; margin-bottom: 4px; }
.contact-info a { color: var(--ink); font-weight: 500; }
.contact-info a:hover { color: var(--accent); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a {
  color: var(--ink-2);
  font-size: .95rem;
}
.footer-grid ul a:hover { color: var(--accent); }
.footer-logo { margin-bottom: 16px; }
.footer-tag { color: var(--muted); margin-bottom: 16px; max-width: 340px; }
.footer-address { color: var(--muted-2); font-size: .9rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--line-2);
  margin-top: 48px;
  padding-top: 20px;
  color: var(--muted-2);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Thank you page ---------------- */
.thankyou-section {
  padding: 96px 0 120px;
}
.thankyou-inner {
  max-width: 560px;
  text-align: center;
}
.thankyou-icon {
  margin: 0 auto 28px;
  width: 56px;
}
.thankyou-inner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}
.thankyou-inner p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.thankyou-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Legal pages ---------------- */
.legal {
  padding: 72px 0 96px;
}
.legal-body {
  max-width: 780px;
}
.legal-body h1 { margin-bottom: 8px; }
.legal-body .updated { color: var(--muted); margin-bottom: 40px; }
.legal-body h2 {
  margin-top: 40px; font-size: 1.4rem;
}
.legal-body h3 { margin-top: 24px; font-size: 1.1rem; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
