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

:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-2: #eaf1f8;
  --text: #172033;
  --muted: #556179;
  --accent: #1b6de0;
  --accent-dark: #0f1f4d;
  --accent-soft: #0f8d83;
  --accent-warm: #f59e0b;
  --border: rgba(120, 146, 184, 0.22);
  --border-strong: rgba(15, 31, 77, 0.12);
  --shadow: 0 24px 60px rgba(18, 35, 68, 0.12);
  --shadow-soft: 0 16px 35px rgba(18, 35, 68, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top left, rgba(27, 109, 224, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 141, 131, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

a:hover {
  color: var(--accent-dark);
}

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(111, 243, 223, 0.22), transparent 16%),
    linear-gradient(135deg, #0b1535 0%, #153b8f 56%, #0b766e 100%);
  color: #fff;
  padding: 84px 0 74px;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -100px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: -110px;
  background: rgba(245, 158, 11, 0.12);
  filter: blur(6px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: none;
  white-space: nowrap;
  margin: 0 0 18px;
}

.hero p {
  font-size: 18px;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}

.button-primary {
  background: #fff;
  color: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.button:hover,
.card-actions a:hover,
.page-header .back-link:hover {
  transform: translateY(-1px);
}

main {
  position: relative;
  padding: 46px 0 72px;
}

.section-title {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
  max-width: 860px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.section-intro a {
  font-weight: 800;
}

.intro-shell {
  margin-top: -18px;
  margin-bottom: 30px;
}

.intro-panel {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  padding: 26px 28px;
  font-size: 1.08rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.97));
}

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

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 109, 224, 0.24);
  box-shadow: 0 28px 70px rgba(18, 35, 68, 0.16);
}

.card-media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(27, 109, 224, 0.14), rgba(15, 141, 131, 0.08)),
    var(--surface-2);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.card-body {
  padding: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: #e6f8f4;
  padding: 7px 11px;
  border-radius: 999px;
}

.card h2,
.page-header h1 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.card h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: -0.03em;
}

.card p,
.lead,
.muted {
  color: var(--muted);
}

.card p {
  margin: 0 0 18px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(27, 109, 224, 0.16);
  background: #eff5ff;
  color: var(--accent-dark);
}

.card-actions a:last-child {
  background: transparent;
  color: var(--accent);
}

.about,
.content-box {
  margin-top: 34px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.about {
  position: relative;
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-media img {
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 31, 77, 0.12));
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 68%);
  pointer-events: none;
}

.page-header {
  position: relative;
  padding: 42px 34px 28px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.88)),
    linear-gradient(135deg, rgba(27, 109, 224, 0.1), rgba(15, 141, 131, 0.05));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent-warm));
}

.page-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27, 109, 224, 0.08);
  color: var(--accent-dark);
}

.page-header h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0;
}

.feature-list,
.content-box ul {
  padding-left: 22px;
}

.content-box h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.03em;
}

.content-box h3 {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 31, 77, 0.06);
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.content-box p,
.content-box li {
  color: #2c364a;
}

.content-box li + li {
  margin-top: 6px;
}

.content-box p strong {
  color: var(--accent-dark);
}

.content-box a:not(.back-link) {
  font-weight: 800;
}

.preview-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.two-col > .content-box:last-child {
  position: sticky;
  top: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 255, 0.92));
}

.two-col > .content-box:last-child h2 {
  margin-bottom: 18px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}

.page-action-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #ffffff;
}

.page-action-primary:hover {
  color: #ffffff;
}

.page-action-secondary {
  background: rgba(27, 109, 224, 0.08);
  color: var(--accent-dark);
  border-color: rgba(27, 109, 224, 0.14);
}

code {
  background: #edf3fb;
  color: var(--accent-dark);
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.95em;
}

.page-oled code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer {
  padding: 26px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col > .content-box:last-child {
    position: static;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-media {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 52px;
  }

  .hero h1 {
    max-width: 100%;
    white-space: normal;
  }

  .page-header {
    padding: 34px 22px 24px;
  }

  .card-body,
  .about,
  .content-box {
    padding: 20px;
  }

  .section-intro {
    padding: 18px;
  }

  .intro-shell {
    margin-top: -10px;
  }

  .card-actions,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    flex-direction: column;
  }

  .page-oled .photo-gallery {
    grid-template-columns: 1fr;
  }
}
