/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 640px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.75rem;
}

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

a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo span {
  color: var(--color-primary);
}

.logo:hover {
  text-decoration: none;
}

.nav a {
  margin-left: 24px;
  color: var(--color-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 70%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card p {
  color: var(--color-muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.contact-info strong {
  color: var(--color-text);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #dc2626;
}

.contact-form .btn {
  margin-top: 24px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}
