/* ============================================================
   blugrit - Main Stylesheet
   ============================================================ */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --cream: #f9fafd;
  --blue-50: #eef2ff;
  --blue-100: #dce4ff;
  --blue-200: #b0c4f5;
  --blue-300: #7a9bef;
  --blue-400: #4f74e3;
  --blue-500: #3356d1;
  --blue-600: #2742ab;
  --gray-200: #e8eaef;
  --gray-400: #aab0ba;
  --gray-500: #7d8490;
  --gray-600: #5c6370;
  --gray-700: #444b57;
  --gray-800: #2d3340;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-soft: 0 4px 24px rgba(51, 86, 209, .08);
  --shadow-hover: 0 12px 36px rgba(51, 86, 209, .14);
  --transition: all .25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--gray-600);
  background: var(--white);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--blue-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

@supports not (backdrop-filter: blur(20px)) {
  .header {
    background: rgba(255, 255, 255, .97);
  }
}

.header--fixed {
  position: fixed;
  left: 0;
  right: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-500);
}

.header__logo span {
  color: var(--gray-700);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav__link {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--blue-500);
  background: var(--blue-50);
}

/* --- Page Header --- */
.page-header {
  padding: 80px 0 48px;
  text-align: center;
  background: linear-gradient(175deg, var(--white) 0%, var(--blue-50) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,25 C360,50 720,0 1080,25 C1260,38 1380,30 1440,25 L1440,50 L0,50Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.page-header__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-700);
  position: relative;
  z-index: 1;
}

/* --- Decorative circles --- */
.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.deco--1 {
  width: 100px;
  height: 100px;
  background: var(--blue-100);
  opacity: .4;
}

.deco--2 {
  width: 60px;
  height: 60px;
  background: var(--blue-200);
  opacity: .3;
}

/* --- Page Header deco positions --- */
.page-header .deco--1 {
  top: 10%;
  left: 6%;
}

.page-header .deco--2 {
  bottom: 15%;
  right: 8%;
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 8px;
}

.section-heading__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-700);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(51, 86, 209, .25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(51, 86, 209, .35);
  color: var(--white);
}

.btn--outline {
  padding: 16px 48px;
  border: 1.5px solid var(--blue-300);
  color: var(--blue-500);
  font-size: 14px;
  background: transparent;
}

.btn--outline:hover {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 4px 20px rgba(51, 86, 209, .2);
}

/* --- CTA Section --- */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 12px;
  color: var(--gray-500);
}

.footer__link:hover {
  color: var(--gray-700);
}

.footer__copy {
  font-size: 11px;
  color: var(--gray-500);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    gap: 4px;
  }

  .nav__link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .page-header__title {
    font-size: 20px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
