:root {
  --bg-dark: #13151d;
  --bg-card: #1a1d2e;
  --ink: #ffffff;
  --ink-dim: #ded4cf;
  --muted: #8b8fa3;
  --teal: #2d9193;
  --teal-2: #2f6c98;
  --rose: #a76370;
  --border: #2d6d78;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-dark);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.text-center { text-align: center; }
.small { font-size: 12px; color: #9aa0ac; }
.lead { font-size: 20px; color: #c7cbd6; margin-bottom: 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-dark) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
}
.nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand__logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  animation: pulse 2s ease-in-out infinite;
}
.brand__logo svg { width: 24px; height: 24px; }
.brand__name { font-weight: 700; font-size: 18px; }

.nav__links { display: none; gap: 24px; align-items: center; }
.nav__links a { color: #e7ebf3; text-decoration: none; }
.nav__links a:hover { color: var(--teal); }
.nav__links .btn { margin-left: 12px; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column; gap: 4px;
  background: transparent; border: none; color: #fff; cursor: pointer; padding: 8px;
}
.nav__toggle-bar { width: 24px; height: 2px; background: #fff; display: block; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu */
.nav--open .nav__links {
  position: absolute; top: 64px; left: 0; right: 0;
  display: grid; gap: 12px; padding: 16px;
  background: var(--bg-dark);
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
}

/* Hero */
.hero { 
  position: relative; 
  padding-top: 128px; 
  padding-bottom: 80px; 
  overflow: hidden; 
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19, 21, 29, 0.7), rgba(19, 21, 29, 0.5));
  z-index: 1;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
  z-index: 0;
}

.hero__content { position: relative; z-index: 2; text-align: center; }
.hero__title { font-size: clamp(40px, 8vw, 80px); margin: 0 0 12px; font-weight: 800; }
.hero__subtitle { font-size: clamp(28px, 5vw, 56px); margin: 0 0 24px; color: var(--ink-dim); font-weight: 800; }
.hero__desc { font-size: 18px; max-width: 720px; margin: 0 auto 32px; color: #c8ced8; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 80px 0; position: relative; }
.section--dark { background: var(--bg-dark); color: var(--ink); }
.section--light { background: var(--ink-dim); color: var(--bg-dark); }
.section__title { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; font-weight: 800; }
.section__subtitle { color: #9aa0ac; margin: 0 0 32px; font-size: 18px; }

.torn { height: 8px; }
.torn--top { background: var(--ink-dim); }
.torn--bottom { background: var(--ink-dim); }

/* Grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card { background: #fff; color: #111; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--border) 20%, transparent); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.card--dark { background: var(--bg-card); color: #eaeef7; border: 1px solid color-mix(in srgb, var(--border) 30%, transparent); }
.card__body { padding: 20px; }
.card__badge { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; font-size: 24px; flex-shrink: 0; }
.card__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.card__meta { margin: 0 0 4px; color: #6b7280; }
.card__meta--sm { font-size: 12px; color: #6b7280; }
.card__btn { margin-top: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1.5px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: color-mix(in srgb, var(--teal) 80%, black); }
.btn--rose { background: var(--rose); color: #fff; }
.btn--rose:hover { background: color-mix(in srgb, var(--rose) 80%, black); }
.btn--outline { color: var(--teal); border: 2px solid var(--teal); }
.btn--outline:hover { background: color-mix(in srgb, var(--teal) 10%, transparent); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Starry background */
.starry-background {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.star {
  position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 999px; opacity: .6; animation: twinkle 2.5s infinite ease-in-out;
}

@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Layout pieces */
.service-card { text-align: center; }
.service-card .icon { font-size: 40px; margin-bottom: 12px; }

.certificate-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.certificate-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.article .thumb { height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-2)); font-size: 48px; }

.footer { border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent); padding: 24px 0; }

/* Utilities */
.prose { color: #374151; font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose .quote { color: var(--teal); font-weight: 700; font-size: 20px; }

.app-root { position: relative; min-height: 100vh; }