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

:root {
  --bg: #e9eef6;
  --ink: #0f1f3d;
  --muted: #3f4d69;
  --navy: #14296b;
  --teal: #2f9bc0;
  --accent: var(--navy);

  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.14) 100%);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060c1b;
    --ink: #eaf0fc;
    --muted: #a9b8d6;
    --accent: #5cc3e6;
    --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-edge:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  }
}

:root[data-theme="dark"] {
  --bg: #060c1b;
  --ink: #eaf0fc;
  --muted: #a9b8d6;
  --accent: #5cc3e6;
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 88px; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(to bottom right, rgba(20, 41, 107, 0.5) 0%, rgba(47, 155, 192, 0.6) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

main { padding-bottom: 48px; }

/* Glass bars: header and footer only */
.site-header,
footer {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(14px) saturate(190%) brightness(1.06);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-edge);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  footer {
    background: rgba(255, 255, 255, 0.8);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-width: 0 0 1px 0;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  display: block;
  width: 64px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}

@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
}

/* Page title */
.hero { padding: 56px 0 8px; }

h1 {
  font-size: clamp(22px, 3.7vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero p {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 24px;
}

/* Content */
section { padding: 32px 0 8px; }

h2 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

h3 { margin: 0 0 8px; font-size: 14px; }

p { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }

a { color: var(--accent); font-weight: 700; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact p { color: var(--ink); margin: 0; line-height: 1.35; }

/* Footer */
footer {
  border-width: 1px 0 0 0;
  margin-top: auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

footer p { margin: 0; }
