:root {
  --blue: #4a90e2;
  --blue-dark: #2f6fbf;
  --cyan: #5bc8f0;
  --ink: #1a2230;
  --body: #4a5568;
  --muted: #718096;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 10px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
.brand-dot { color: var(--blue); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero-logo { display: block; margin: 0 auto 1.5rem; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 auto 1rem;
  max-width: 16ch;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.35);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(74, 144, 226, 0.45); }
.btn-secondary {
  background: #fff;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 620px; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 2.5rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(26, 34, 48, 0.08);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}
.card p { margin: 0; color: var(--body); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); display: inline-flex; }
.site-footer a:hover { color: var(--blue-dark); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 1.5rem; }
}
