:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --primary: #0071e3;
  --primary-dark: #005bb5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  border-radius: 16px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e7e7e9;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  text-align: center;
  padding: 7rem 0 4rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 820px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.3rem);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  border-color: #d9d9de;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #e9e9ee;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 4.8rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.content {
  max-width: 840px;
  margin: 0 auto;
}

.content h2,
.content h3 {
  letter-spacing: -0.02em;
}

.content p,
.content li {
  color: #333336;
}

.blog-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.blog-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e7e7ec;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.blog-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.featured-image {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #dbeafe, #f3e8ff);
  border-radius: var(--radius);
  border: 1px solid #e4e4ea;
}

.auth-card,
.contact-card {
  max-width: 520px;
  margin: 2rem auto;
  background: var(--surface);
  border: 1px solid #e7e7ec;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d8d8df;
  font: inherit;
}

textarea {
  min-height: 130px;
}

.site-footer {
  border-top: 1px solid #e4e4ea;
  color: var(--muted);
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0 1rem;
  }
}
