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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #ffffff;
  color: #252525;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 727px;
  padding: 40px 56px 0;
  background: #b49ce4;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 330px 300px at 9% 64%, rgba(241,236,250,0.85) 0%, rgba(216,206,241,0.55) 45%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 260px 240px at 17% 88%, rgba(214,204,241,0.7) 0%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 340px 320px at 92% 60%, rgba(241,236,250,0.85) 0%, rgba(216,206,241,0.55) 45%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 280px 260px at 84% 90%, rgba(214,204,241,0.7) 0%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 620px 640px at 4% 35%, rgba(222,212,244,0.35) 0%, rgba(180,156,228,0) 70%),
    radial-gradient(ellipse 620px 640px at 97% 35%, rgba(222,212,244,0.35) 0%, rgba(180,156,228,0) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 1808px;
  max-width: 100%;
  height: 686px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.menu-links {
  display: flex;
  gap: 32px;
}

.menu-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  padding: 9px 28px;
  background: #8e6ccf;
  border-radius: 1000px;
  font-weight: 700;
  font-size: 18px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.menu-links a:hover {
  background: #7a55c0;
}

.nav-toggle { display: none; }

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 183px;
}

.logo-img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.main-content {
  width: 880px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.hero-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-title h1 {
  width: 880px;
  font-weight: 700;
  font-size: 56px;
  line-height: 56px;
  color: #ffffff;
  text-align: center;
  text-transform: capitalize;
}

.hero-title p {
  width: 706px;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-align: center;
}

.btn-wrap {
  display: block;
  padding: 5px;
  border-radius: 1000px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  padding: 10px 33px;
  background: #5b2d9e;
  border-radius: 1000px;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Content ---------- */
.content {
  width: 100%;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
}

.expertise {
  width: 1280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.section-title h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #252525;
  text-align: center;
}

.section-title p {
  width: 720px;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.2px;
  color: #5b5b5b;
  text-align: center;
}

.cards {
  width: 1280px;
  max-width: 100%;
  display: flex;
  gap: 20px;
}

.card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px;
  overflow: hidden;
}

.card-grad {
  padding: 32px 32px 48px;
  min-height: 288px;
  background: linear-gradient(180deg, #ede6fa 0%, #ffffff 100%);
}

.card-solid {
  padding: 32px;
  min-height: 240px;
  background: #ede6fa;
}

.card-pb48 { padding-bottom: 48px; }

.card-icon { width: 40px; height: 40px; }

.card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-text h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #252525;
}

.card-p-16s {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  color: #5b5b5b;
}

.card-p-16 {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #5b5b5b;
}

.global {
  width: 1280px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
}

.global-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.global-text h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #252525;
}

.global-text p {
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #5b5b5b;
}

.media {
  position: relative;
  flex-shrink: 0;
  width: 635px;
}

.media-1 { height: 520px; }
.media-2 { height: 470px; }

.img-box {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
}

.media-1 .img-box {
  left: 60px;
  top: 57px;
  width: 575px;
  height: 406px;
}

.media-1 .img-box img {
  position: absolute;
  left: -48px;
  top: 0;
  width: 672px;
  height: 406px;
  object-fit: cover;
  border-radius: 16.22px;
}

.media-2 .img-box {
  left: 0;
  top: 0;
  width: 575px;
  height: 470px;
}

.media-2 .img-box img {
  position: absolute;
  left: -101px;
  top: 0;
  width: 778px;
  height: 470px;
  object-fit: cover;
  border-radius: 16.22px;
}

/* ---------- Careers ---------- */
.careers-wrap {
  width: 100%;
  background: #b49ce4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.careers {
  position: relative;
  width: 100%;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  background: #b49ce4;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
}

.careers-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 330px 300px at 7% 78%, rgba(222,212,244,0.9) 0%, rgba(222,212,244,0.5) 45%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 260px 240px at 18% 100%, rgba(222,212,244,0.7) 0%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 340px 320px at 93% 72%, rgba(222,212,244,0.9) 0%, rgba(222,212,244,0.5) 45%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 280px 260px at 83% 100%, rgba(222,212,244,0.7) 0%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 620px 640px at 2% 50%, rgba(222,212,244,0.3) 0%, rgba(180,156,228,0) 70%),
    radial-gradient(ellipse 620px 640px at 98% 50%, rgba(222,212,244,0.3) 0%, rgba(180,156,228,0) 70%);
}

.careers > * { position: relative; z-index: 1; }
.careers > .careers-bg { z-index: 0; }

.careers-title {
  width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1.28px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.careers-title h2 {
  width: 100%;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #ffffff;
  text-align: center;
}

.careers-sub {
  width: 100%;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-align: center;
}

.careers .btn {
  padding: 13px 33px;
}

/* ---------- Terms page ---------- */
body.show-terms .hero,
body.show-terms .content,
body.show-terms .careers-wrap {
  display: none;
}

.terms-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 40px 56px 80px;
  background: linear-gradient(160deg, #b49ce4 0%, #8e6ccf 55%, #5b2d9e 100%);
  overflow: hidden;
}

.terms-page[hidden] { display: none; }

.terms-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 420px 380px at 8% 20%, rgba(241,236,250,0.7) 0%, rgba(180,156,228,0) 100%),
    radial-gradient(ellipse 480px 440px at 94% 85%, rgba(222,212,244,0.5) 0%, rgba(180,156,228,0) 100%);
}

.terms-inner {
  position: relative;
  z-index: 1;
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.terms-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.terms-back {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 9px 28px;
  background: #5b2d9e;
  border-radius: 1000px;
  font-weight: 700;
  font-size: 18px;
  line-height: 30px;
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.terms-back:hover { background: #4a2283; }

.terms-card {
  width: 880px;
  max-width: 100%;
  padding: 56px 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terms-eyebrow { color: #8e6ccf; text-align: left; }

.terms-card h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #252525;
}

.terms-updated {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #5b5b5b;
  margin-bottom: 16px;
}

.terms-card h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #252525;
  margin-top: 16px;
}

.terms-card p {
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #5b5b5b;
}

.terms-card p a {
  color: #5b2d9e;
  font-weight: 700;
  word-break: break-word;
}

.terms-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.terms-card li {
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #5b5b5b;
}

.terms-address {
  padding: 16px 24px;
  border-left: 3px solid #b49ce4;
  background: #f5f1fc;
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-address p {
  font-weight: 600;
  color: #252525;
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  min-height: 250px;
  padding: 40px 56px 32px 40px;
  background: #b49ce4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.footer-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 84px;
}

.footer-logo { align-items: flex-start; align-self: flex-start; }

.footer-links {
  display: flex;
  gap: 84px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.col-legal { width: 141px; }

.col-contact {
  align-items: flex-end;
  text-align: right;
}

.footer-heading {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: #01478f;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-phone {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #01478f;
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-bottom p {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #01478f;
}

/* =========================================================
   Responsive — tablet (≤1100px)
   ========================================================= */
@media (max-width: 1100px) {
  .hero {
    height: auto;
    padding: 32px 32px 0;
  }

  .hero-content {
    height: auto;
    padding-bottom: 72px;
    gap: 56px;
  }

  .header { gap: 32px; }
  .menu-links { gap: 16px; }
  .menu-links a { padding: 9px 22px; font-size: 17px; }
  .logo { min-width: 0; }
  .logo-img { width: 200px; }

  .main-content {
    width: 100%;
    max-width: 880px;
    gap: 40px;
  }

  .hero-title h1 {
    width: 100%;
    font-size: 46px;
    line-height: 52px;
  }

  .hero-title p {
    width: 100%;
    max-width: 706px;
  }

  .section-title p {
    width: 100%;
    max-width: 720px;
  }

  .cards-4 { flex-wrap: wrap; }
  .cards-4 .card { flex: 1 1 calc(50% - 10px); }

  .global {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .global-text {
    width: 100%;
    max-width: 720px;
  }

  .global .media { order: 2; }

  .media,
  .media-1,
  .media-2 {
    width: 100%;
    max-width: 640px;
    height: auto;
  }

  .media-1 .img-box,
  .media-2 .img-box {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    background: #ede6fa;
  }

  .media-1 .img-box img,
  .media-2 .img-box img {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
  }

  .media-1 .img-box img { aspect-ratio: 575 / 406; }
  .media-2 .img-box img { aspect-ratio: 575 / 470; }

  .careers {
    padding: 72px 32px;
  }

  .careers-title {
    width: 100%;
    max-width: 720px;
  }

  .card-solid { padding: 28px; }

  .footer { padding: 40px 32px 32px; }
  .footer-top { gap: 48px; }
  .footer-links { gap: 56px; }

  .terms-page { padding: 32px 32px 72px; }
}

/* =========================================================
   Responsive — small tablet / large phone (≤900px)
   ========================================================= */
@media (max-width: 900px) {
  /* Collapsible header */
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }

  .header .logo { order: 0; justify-content: flex-start; }
  .logo-img { width: 170px; }

  .nav-toggle {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 1000px;
    background: #8e6ccf;
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .nav-toggle-bar { position: relative; }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }

  .header.is-open .nav-toggle-bar { background: transparent; }
  .header.is-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .header.is-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .menu-links {
    order: 2;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .menu-left { margin-top: 20px; }
  .menu-right { margin-top: 10px; }

  .header.is-open .menu-links { display: flex; }

  .menu-links a {
    width: 100%;
    height: 52px;
    font-size: 18px;
  }

  .cards-3 {
    flex-direction: column;
    max-width: 640px;
  }

  .card-solid { min-height: 0; }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-logo .logo-img { width: 170px; }
  .footer-links { flex-wrap: wrap; gap: 48px; }
  .col-contact { align-items: flex-start; text-align: left; }
}

/* =========================================================
   Responsive — mobile (≤600px)
   ========================================================= */
@media (max-width: 600px) {
  .hero {
    padding: 20px 20px 0;
    border-radius: 0 0 24px 24px;
  }

  .hero-content {
    gap: 40px;
    padding-bottom: 56px;
  }

  .logo-img { width: 140px; }
  .nav-toggle { width: 44px; height: 44px; }

  .main-content { gap: 32px; }
  .hero-title { gap: 20px; }

  .hero-title h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .hero-title p {
    font-size: 17px;
    line-height: 26px;
  }

  .btn-wrap { width: 100%; max-width: 360px; padding: 0; }
  .btn-wrap .btn { width: 100%; }
  .btn { height: 52px; font-size: 18px; }

  .content {
    padding: 56px 20px;
    gap: 64px;
  }

  .expertise { gap: 36px; }
  .section-title { gap: 16px; }

  .section-title h2,
  .global-text h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .section-title p {
    font-size: 17px;
    line-height: 26px;
  }

  .cards { gap: 16px; }
  .cards-4 { flex-direction: column; }
  .cards-4 .card { flex: 1 1 auto; }

  .card { gap: 16px; }
  .card-grad { padding: 24px 24px 32px; min-height: 0; }
  .card-solid,
  .card-pb48 { padding: 24px; }
  .card-text { gap: 8px; }

  .card-text h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .global { gap: 28px; }
  .global-text { gap: 20px; }

  .global-text p {
    font-size: 16px;
    line-height: 25px;
  }

  .careers {
    padding: 56px 20px;
    gap: 36px;
    border-radius: 24px 24px 0 0;
  }

  .careers-title h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .careers-sub {
    font-size: 17px;
    line-height: 26px;
  }

  .careers .btn {
    width: 100%;
    max-width: 360px;
  }

  .footer {
    padding: 40px 20px 28px;
    gap: 32px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .col-legal { width: auto; }
  .footer-col { gap: 8px; }
  .footer-list { gap: 0; }

  .footer-links a {
    display: inline-block;
    padding: 8px 0;
    word-break: break-word;
  }

  .footer-bottom p {
    font-size: 14px;
    line-height: 22px;
  }

  /* Terms page */
  .terms-page { padding: 20px 16px 48px; }
  .terms-inner { gap: 28px; }
  .terms-header { gap: 16px; }
  .terms-logo .logo-img { width: 130px; }

  .terms-back {
    height: 44px;
    padding: 8px 18px;
    font-size: 15px;
  }

  .terms-card {
    padding: 32px 20px;
    border-radius: 24px;
    gap: 14px;
  }

  .terms-card h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .terms-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .terms-card p,
  .terms-card li {
    font-size: 16px;
    line-height: 25px;
  }

  .terms-card ul { padding-left: 12px; }
  .terms-address { padding: 14px 16px; }
}
