/* === Variables === */
:root {
  --navy: #0f1b2d;
  --blue: #1a3a5c;
  --blue-mid: #264d73;
  --teal: #2a9d8f;
  --teal-light: #40b4a6;
  --teal-glow: rgba(42,157,143,0.15);
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #eef0f2;
  --gray-200: #d4d8dd;
  --gray-400: #8c95a1;
  --gray-600: #4a5568;
  --gray-800: #2d3748;
  --red: #c53030;
  --green: #276749;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1120px;
  --header-h: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Skip link === */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 0.75rem 1.5rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* === Utility === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  font-size: 2.25rem; font-weight: 800; color: var(--navy); text-align: center;
  margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.section-subtitle { text-align: center; color: var(--gray-600); max-width: 560px; margin: 0 auto 3.5rem; font-size: 1.0625rem; }

/* === Scroll animations === */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: var(--radius); transition: all var(--transition);
  text-align: center; white-space: nowrap; position: relative; overflow: hidden;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white); padding: 0.625rem 1.5rem; font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(42,157,143,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(42,157,143,0.4); }
.btn--outline {
  border: 2px solid rgba(255,255,255,0.6); color: var(--white);
  padding: 0.5625rem 1.5rem; font-size: 0.9375rem; backdrop-filter: blur(4px);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--lg { padding: 0.875rem 2.25rem; font-size: 1rem; border-radius: 12px; }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,27,45,0.95); backdrop-filter: blur(12px);
  height: var(--header-h); display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo {
  display: flex; align-items: center; gap: 0.5rem; color: var(--white);
  font-weight: 700; font-size: 1.0625rem;
}
.header__star { color: var(--teal); filter: drop-shadow(0 0 4px rgba(42,157,143,0.5)); }
.header__nav-list { display: flex; gap: 2rem; }
.header__nav-link {
  color: var(--gray-200); font-size: 0.9375rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}
.header__nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--teal); transition: width 0.3s; border-radius: 1px;
}
.header__nav-link:hover { color: var(--white); }
.header__nav-link:hover::after { width: 100%; }
.header__cta { font-size: 0.875rem; padding: 0.5rem 1.25rem; }
.header__menu-btn { display: none; width: 32px; height: 32px; position: relative; }
.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px;
  position: absolute; left: 5px; transition: transform 0.3s, opacity 0.3s;
}
.header__menu-icon { top: 15px; }
.header__menu-icon::before { content: ''; top: -7px; }
.header__menu-icon::after { content: ''; top: 7px; }
.header__menu-btn[aria-expanded="true"] .header__menu-icon { background: transparent; }
.header__menu-btn[aria-expanded="true"] .header__menu-icon::before { transform: translateY(7px) rotate(45deg); }
.header__menu-btn[aria-expanded="true"] .header__menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  background: linear-gradient(160deg, #080e1a 0%, var(--navy) 30%, var(--blue) 70%, var(--blue-mid) 100%);
  color: var(--white); padding: 9rem 0 6rem; position: relative; overflow: hidden;
  min-height: 600px; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__constellation {
  width: 100%; height: 100%; opacity: 0.8;
}
@keyframes star-pulse {
  0%, 100% { opacity: 0.4; r: 2; }
  50% { opacity: 0.9; r: 3; }
}
.star-pulse { animation: star-pulse 3s ease-in-out infinite; }

.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero__badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 20px;
  background: rgba(42,157,143,0.15); border: 1px solid rgba(42,157,143,0.3);
  color: var(--teal-light); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero__text { font-size: 1.125rem; color: rgba(255,255,255,0.75); margin-bottom: 2.25rem; max-width: 520px; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }

/* === Services === */
.services { padding: 5rem 0 6rem; background: var(--gray-50); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }

.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 0;
  box-shadow: var(--shadow); transition: all 0.3s ease;
  border: 1px solid var(--gray-100); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__illustration {
  background: linear-gradient(135deg, #f0f7f6 0%, var(--gray-50) 100%);
  padding: 1.25rem 1rem 0.75rem; text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.card__illustration svg { width: 100%; max-width: 200px; height: auto; margin: 0 auto; }
.card__title {
  font-size: 1.125rem; font-weight: 700; color: var(--navy);
  margin: 1.25rem 1.5rem 0.75rem; position: relative; padding-left: 0.875rem;
}
.card__title::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; border-radius: 2px; background: var(--teal);
}
.card__list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 1.5rem 1.5rem; }
.card__list li { position: relative; padding-left: 1.25rem; color: var(--gray-600); font-size: 0.9375rem; }
.card__list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: 0.6;
}

.services__disclaimer {
  margin-top: 2.5rem; text-align: center; font-size: 0.8125rem; color: var(--gray-400);
  font-style: italic; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* === Why === */
.why { padding: 6rem 0; background: var(--white); }
.why__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; max-width: 960px; margin: 0 auto;
}
.why__item {
  padding: 1.5rem; border-radius: var(--radius-lg); transition: all 0.3s;
  border: 1px solid transparent;
}
.why__item:hover { background: var(--gray-50); border-color: var(--gray-100); }
.why__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-glow), rgba(42,157,143,0.05));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 1rem;
}
.why__item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.why__item p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }

/* === Process === */
.process {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.process__steps { display: flex; align-items: flex-start; justify-content: center; gap: 0.5rem; max-width: 860px; margin: 0 auto; }
.process__step { text-align: center; flex: 1; padding: 0 0.75rem; }
.process__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 16px rgba(15,27,45,0.25);
}
.process__number {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--teal); background: var(--teal-glow); padding: 0.2rem 0.6rem;
  border-radius: 10px; margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.process__number::before { content: 'STEP '; }
.process__step-title { font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; font-size: 1.125rem; }
.process__step p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
.process__connector { display: flex; align-items: center; margin-top: 36px; flex-shrink: 0; }

/* === About === */
.about { padding: 6rem 0; background: var(--white); }
.about__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  max-width: 960px; margin: 0 auto;
}
.about__content .section-title { text-align: left; }
.about__text { color: var(--gray-600); font-size: 1.0625rem; margin-top: 1.25rem; line-height: 1.7; }
.about__visual { text-align: center; }
.about__visual svg { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }

/* === Contact === */
.contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, #eef3f5 100%);
}
.contact__form {
  max-width: 640px; margin: 0 auto;
  background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
}
.contact__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group--checkbox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; }
.form-group--checkbox input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.375rem; }
.form-label--checkbox { display: inline; font-weight: 400; font-size: 0.9375rem; }
.required { color: var(--red); }
.optional { color: var(--gray-400); font-weight: 400; font-size: 0.8125rem; }

.form-input {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.9375rem; font-family: var(--font); color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-input.is-invalid { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-error { display: block; font-size: 0.8125rem; color: var(--red); margin-top: 0.25rem; min-height: 0; }

.contact__submit { width: 100%; margin-top: 0.5rem; }
.contact__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact__status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9375rem; display: none; }
.contact__status.is-success { display: block; background: #f0fff4; color: var(--green); border: 1px solid #c6f6d5; }
.contact__status.is-error { display: block; background: #fff5f5; color: var(--red); border: 1px solid #fed7d7; }

/* === Footer === */
.footer {
  background: var(--navy); color: var(--gray-200); padding: 3.5rem 0 2rem; text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer__name { font-weight: 700; color: var(--white); font-size: 1rem; }
.footer__services { font-size: 0.875rem; color: var(--gray-400); }
.footer__links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer__link { color: var(--teal-light); transition: color var(--transition); }
.footer__link:hover { color: var(--white); }
.footer__disclaimer { font-size: 0.75rem; color: var(--gray-400); font-style: italic; }
.footer__copy { font-size: 0.75rem; color: var(--gray-400); }

/* === Mobile === */
@media (max-width: 768px) {
  .header__nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); padding: 1.5rem; transform: translateY(-100%);
    opacity: 0; transition: transform 0.3s, opacity 0.3s; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header__nav-list { flex-direction: column; gap: 1.25rem; }
  .header__cta { display: none; }
  .header__menu-btn { display: block; }
  .hero { padding: 7rem 0 4.5rem; min-height: auto; }
  .hero__wave svg { height: 40px; }
  .process__steps { flex-direction: column; align-items: center; }
  .process__connector { transform: rotate(90deg); margin: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__content .section-title { text-align: center; }
  .about__visual { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Print === */
@media print {
  .header, .hero__bg, .hero__wave, .contact__form, .header__menu-btn { display: none; }
  .hero { background: none; color: var(--navy); padding: 2rem 0; min-height: auto; }
  .btn--outline { border-color: var(--navy); color: var(--navy); }
  .fade-up { opacity: 1; transform: none; }
}
