@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #15112f;
  --bg-2: #1c1541;
  --surface: #2c2466;
  --surface-2: #342a76;
  --line: rgba(255,255,255,.12);
  --text: #f7f5ff;
  --muted: #b9b3d4;
  --purple: #5733d1;
  --pink: #ff3e7f;
  --yellow: #ffc401;
  --cyan: #02d5e8;
  --violet: #8859f3;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(87, 51, 209, .24), transparent 30rem),
    radial-gradient(circle at 0% 55%, rgba(2, 213, 232, .06), transparent 28rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 11px;
  padding: 8px 12px;
}

.brand-mark img {
  display: block;
  width: 118px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.22);
}

.brand-label,
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.brand-label {
  color: #aaa4c7;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.lang-btn {
  min-width: 42px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aaa4c7;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: #f5f3ff;
  color: #211943;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hero-line {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
  background: none !important;
}

.hero {
  padding: 86px 0 74px;
  max-width: 830px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, #9ad93a 0%, #ffc401 40%, #ff7a39 68%, #ff3e7f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.apps-section,
.partners {
  padding: 28px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.025em;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
  color: #aaa4c7;
}

.section-note {
  margin: 0 0 3px;
  color: #9089b3;
  font-size: 13px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  --accent: var(--cyan);
  position: relative;
  min-height: 302px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 42%),
    var(--surface);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 14px 45px rgba(0,0,0,.15);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -100px;
  right: -70px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .08;
  filter: blur(2px);
  transition: transform .3s ease, opacity .3s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, white 10%);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 42%),
    var(--surface-2);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  outline: none;
}

.app-card:hover::before {
  transform: scale(1.25);
  opacity: .13;
}

.card-cyan { --accent: var(--cyan); }
.card-pink { --accent: var(--pink); }
.card-yellow { --accent: var(--yellow); }
.card-violet { --accent: var(--violet); }

.card-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.card-head,
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #15112f;
}

.app-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
}

.card-content {
  margin-top: 36px;
}

.app-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.card-content h3 {
  margin: 8px 0 10px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.card-content p {
  max-width: 470px;
  margin: 0;
  color: #beb8d7;
  line-height: 1.62;
  font-size: 14px;
}

.card-action {
  margin-top: auto;
  padding-top: 27px;
  color: #e4e0f6;
  font-size: 13px;
  font-weight: 700;
}

.arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.075);
  font-size: 17px;
  transition: transform .2s ease, background .2s ease;
}

.app-card:hover .arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: #15112f;
}

.partners {
  padding-top: 30px;
}

.logo-panel {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 45px rgba(0,0,0,.18);
}

.logo-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--yellow), var(--cyan), var(--violet));
}

.logo-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #8f89ae;
  font-size: 12px;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand-label,
  .brand-divider {
    display: none;
  }

  .lang-switcher {
    gap: 2px;
    padding: 3px;
  }

  .lang-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero {
    padding: 64px 0 54px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 68px);
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-note {
    margin: 0;
  }

  .site-footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-mark img {
    width: 103px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .app-card {
    min-height: 286px;
    padding: 22px;
    border-radius: 18px;
  }

  .card-content {
    margin-top: 30px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .logo-panel {
    padding: 18px 16px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
    gap: 12px;
  }

  .lang-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-btn {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
  }
}


/* Detailed FinEdu footer */
.detailed-footer {
  display: block;
  min-height: 0;
  padding: 34px 0 26px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #aaa4c0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 9px;
}

.footer-logo img {
  width: 82px;
}

.footer-copy {
  max-width: 1050px;
}

.footer-copy p {
  margin: 0 0 10px;
}

.footer-logo-panel {
  width: 100%;
  padding: 0;
  margin: 18px 0 14px;
  border-radius: 14px;
  background: #fff;
}

.footer-logo-panel img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.eu-disclaimer {
  margin: 0;
  max-width: 1100px;
  color: #8f89ae;
  font-size: 11px;
  line-height: 1.6;
}
