/* ============================================
   Easy Money Agency — styles
   Paleta z logo: iryzujący gradient
   (niebieski → fiolet → róż → brzoskwinia)
   na jasnym, pastelowym tle. Granatowy tekst.
   ============================================ */

:root {
  --navy:        #1d2340;
  --navy-soft:   #3a4166;
  --ink:         #232847;
  --muted:       #6b7192;

  --blue:        #4f9bf5;
  --purple:      #a855f7;
  --pink:        #ec4899;
  --peach:       #fb9a6b;

  --bg:          #fbfaff;
  --bg-card:     #ffffff;
  --line:        rgba(29, 35, 64, 0.09);

  --grad: linear-gradient(105deg, #4f9bf5 0%, #8b7cf6 32%, #c86ae0 58%, #ec4899 80%, #fb9a6b 100%);
  --grad-soft: linear-gradient(135deg, rgba(79,155,245,.16), rgba(168,85,247,.16), rgba(236,72,153,.16));

  --shadow-sm: 0 4px 18px rgba(29,35,64,.06);
  --shadow-md: 0 18px 50px rgba(29,35,64,.10);
  --shadow-lg: 0 30px 80px rgba(120,70,200,.18);

  --radius: 20px;
  --radius-lg: 30px;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(70% 55% at 12% 6%, rgba(120,175,255,.30), transparent 62%),
    radial-gradient(65% 50% at 88% 10%, rgba(232,150,235,.28), transparent 62%),
    radial-gradient(70% 55% at 85% 90%, rgba(255,188,158,.24), transparent 62%),
    radial-gradient(62% 55% at 8% 92%, rgba(170,140,250,.24), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }

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

p { margin: 0; }

/* ---------- Background blobs ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; top: -160px; left: -120px;
  background: radial-gradient(circle, #7db4ff, transparent 70%); }
.blob-2 { width: 560px; height: 560px; top: 8%; right: -180px;
  background: radial-gradient(circle, #e59ff0, transparent 70%); }
.blob-3 { width: 620px; height: 620px; bottom: -220px; left: 30%;
  background: radial-gradient(circle, #ffc4a8, transparent 70%); opacity: .4; }

/* ---------- Brand mark ---------- */
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.05rem;
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px rgba(168,85,247,.35);
  letter-spacing: -0.03em;
}
.brand-text { font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--navy); letter-spacing: -.01em; font-size: .95rem; }
.brand-text em {
  font-style: normal; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251, 250, 255, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 30px; width: auto; display: block; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border: 1px solid var(--line); background: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .85rem;
  color: var(--navy); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.lang-btn:hover { border-color: rgba(168,85,247,.4); box-shadow: var(--shadow-sm); }
.lang-btn .globe { color: var(--purple); }
.lang-btn .chev { transition: transform .25s; opacity: .7; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 178px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  list-style: none; margin: 0; padding: 6px; z-index: 200;
  max-height: 340px; overflow-y: auto; display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; font-size: .92rem; color: var(--navy-soft); cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-menu li:hover { background: #f5f2fc; color: var(--navy); }
.lang-menu li.active { color: var(--navy); font-weight: 600; }
.lang-menu li .code { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .72rem; color: var(--muted); }
.lang-menu li.active .code { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--navy-soft); transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  padding: 10px 20px; border-radius: 0; color: #fff !important;
  background: var(--grad); font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(168,85,247,.30); transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168,85,247,.40); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 0; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 14px 34px rgba(168,85,247,.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(168,85,247,.44); }
.btn-ghost { color: var(--navy); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: transparent; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 90px; }
.hero-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.hero-copy .lead { font-size: 1.2rem; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }
.logo-media {
  display: block; width: 100%; max-width: 460px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 26px 50px rgba(120,70,200,.22));
}

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

/* ---------- Stats ---------- */
.stats { padding: 8px 0 40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 38px 30px; box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat-num { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.stat-label { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.card {
  padding: 8px 16px; text-align: center;
}
.card-icon {
  height: 60px; width: auto; display: block; margin: 0 auto 18px;
  filter: drop-shadow(0 8px 16px rgba(168,85,247,.28));
}
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.step {
  padding: 8px 16px; text-align: center;
}
.step-num {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.4rem;
  background: linear-gradient(120deg, #8b7cf6 0%, #c86ae0 55%, #ec4899 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Why ---------- */
.why-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.why-list li { position: relative; padding-left: 34px; color: var(--navy-soft); font-weight: 500; }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: .8rem; color: #fff; background: var(--grad);
}
.why-visual { display: flex; justify-content: center; }
.why-logo {
  display: block; width: 100%; max-width: 400px;
  filter: drop-shadow(0 22px 44px rgba(120,70,200,.20));
}
.glass-card {
  width: 100%; max-width: 360px; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  background: var(--grad); color: #fff; padding: 42px; display: flex; flex-direction: column;
  justify-content: space-between; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.glass-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 55%);
}
.glass-em { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 3.4rem; letter-spacing: -.04em; position: relative; }
.glass-card p { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.35rem; line-height: 1.3; position: relative; }

/* ---------- CTA / Contact ---------- */
.cta { text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 16px; }
.cta .lead { margin: 0 auto 40px; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 34px; box-shadow: var(--shadow-md);
}
.field-full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 15px 18px; border-radius: 0; border: 1px solid var(--line);
  background: #fbfaff; font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: rgba(168,85,247,.5); box-shadow: 0 0 0 4px rgba(168,85,247,.12);
}
.contact-form .btn-block { grid-column: 1 / -1; margin-top: 4px; }
.form-note { grid-column: 1 / -1; text-align: center; color: var(--purple); font-weight: 600; margin-top: 4px; }
.form-note.err { color: #d84a6b; }
.mail-link {
  display: inline-block; margin-top: 26px; font-family: 'Poppins', sans-serif; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-tag { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.footer-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.age-badge {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 8px; font-weight: 700; font-size: .82rem; color: #fff; background: var(--navy);
}
.footer-copy { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .why-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .lead { max-width: none; }

  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(251,250,255,.98); backdrop-filter: blur(14px);
    padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s ease; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .brand-logo { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-frame { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .why-list li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .why-list li::before { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu li { flex-direction: row-reverse; }
