@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #eef3f9;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f2d52;
  --ink-soft: #1e4068;
  --muted: #5a7290;
  --muted-dim: #8fa3bc;
  --border: rgba(30, 74, 122, 0.1);
  --border-strong: rgba(30, 74, 122, 0.18);
  --blue-deep: #0c4a8c;
  --blue: #1a6fd4;
  --blue-mid: #2b7fd4;
  --cyan: #4db8e8;
  --cyan-soft: #d8effc;
  --gradient-brand: linear-gradient(135deg, #0c4a8c 0%, #1a6fd4 48%, #4db8e8 100%);
  --gradient-hero: radial-gradient(ellipse 70% 55% at 15% 0%, rgba(77, 184, 232, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 45% at 95% 8%, rgba(26, 111, 212, 0.1), transparent 45%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  --shadow-sm: 0 4px 20px rgba(15, 45, 82, 0.06);
  --shadow: 0 16px 48px rgba(15, 45, 82, 0.1);
  --shadow-lg: 0 28px 70px rgba(15, 45, 82, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1120px;
  --narrow: 720px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-deep);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(30, 74, 122, 0.025) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 250, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  object-fit: cover;
}

.brand__text {
  font-family: var(--sans);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(26, 111, 212, 0.08);
}

.nav a.is-active {
  color: var(--blue-deep);
  background: rgba(26, 111, 212, 0.12);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: clamp(5rem, 13vh, 8rem) 0 clamp(3.5rem, 8vh, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}

.hero__copy {
  max-width: 36rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

@media (min-width: 900px) {
  .hero__visual {
    justify-content: flex-end;
    padding: 0;
  }
}

.hero__logo-wrap {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

@media (min-width: 900px) {
  .hero__logo-wrap {
    width: min(100%, 240px);
  }
}

.hero__logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 28%;
  background: var(--gradient-brand);
  opacity: 0.12;
  filter: blur(40px);
}

.hero__logo-wrap::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 26%;
  border: 1px solid rgba(26, 111, 212, 0.12);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.hero__logo {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.85rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.5rem;
  max-width: none;
}

.hero h1 em {
  font-style: italic;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 2.25rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  color: var(--ink);
  border-color: rgba(26, 111, 212, 0.25);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 111, 212, 0.28);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 111, 212, 0.34);
}

.btn__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Principles */
.section--principles {
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.principles-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.principle-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.principle-card:hover {
  border-color: rgba(26, 111, 212, 0.18);
  box-shadow: var(--shadow);
}

.principle-card__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: 0.65rem;
  color: var(--blue);
  background: var(--cyan-soft);
  border-radius: 0.5rem;
}

.principle-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.principle-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.app-grid {
  display: grid;
  gap: 1.25rem;
}

.app-card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.app-card:hover {
  border-color: rgba(26, 111, 212, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .app-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 2rem 2.25rem;
  }
}

.app-card__icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.app-card__body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(77, 184, 232, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--blue-deep);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.section__footnote {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted-dim);
}

.cta-band {
  margin: 2.5rem 0 0;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 252, 0.8));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.25rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0;
  line-height: 1.65;
}

.page-main {
  padding: 0 0 clamp(3.5rem, 7vw, 5rem);
}

.legal-body {
  max-width: var(--narrow);
}

.legal-body h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-body .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 1.5rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.legal-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-dim);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.25rem;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 0.85fr 0.85fr 0.85fr;
    gap: 2.5rem;
  }
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 22rem;
}

.site-footer__email {
  margin-top: 0.65rem !important;
}

.site-footer__email a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.site-footer__email a:hover {
  color: var(--blue-deep);
}

.site-footer__col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.site-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__col a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-dim);
}

.site-footer__bottom a {
  color: var(--muted);
}

.site-footer__bottom a:hover {
  color: var(--blue);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .app-card__actions {
    width: 100%;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo-wrap {
    width: min(55%, 200px);
    margin-inline: auto;
  }
}
