* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Arial, sans-serif; color: #333; background: #f5f7fa; }
a { color: #2563eb; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav { background: #1e293b; color: #fff; padding: 16px 0; }
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav .logo { font-size: 20px; font-weight: 700; }
nav ul { list-style: none; display: flex; gap: 24px; }
nav a { color: #cbd5e1; font-size: 14px; }
nav a:hover { color: #fff; }

/* Sections */
section { padding: 60px 0; }
h2 { font-size: 28px; margin-bottom: 20px; }
p { line-height: 1.8; color: #555; }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); color: #fff; text-align: center; padding: 100px 0 80px; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { color: #dbeafe; font-size: 18px; max-width: 600px; margin: 0 auto; }

/* Features */
.features { background: #fff; }
.features .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 32px; }
.features .card { background: #f8fafc; border-radius: 8px; padding: 28px; border: 1px solid #e2e8f0; }
.features .card h3 { margin-bottom: 8px; font-size: 18px; }

/* Contact */
.contact { background: #f1f5f9; }
.contact .contact-intro { margin-bottom: 24px; }
.contact form { max-width: 520px; margin: 0 auto; }
.contact label { display: block; margin: 16px 0 4px; font-weight: 600; font-size: 14px; }
.contact input, .contact textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px;
}
.contact input:focus, .contact textarea:focus {
  outline: 2px solid #2563eb; outline-offset: -1px; border-color: #2563eb;
}
.contact textarea { min-height: 120px; resize: vertical; }
.char-count { text-align: right; font-size: 13px; color: #94a3b8; margin-top: 4px; }
.char-count.warn { color: #ef4444; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 40px; border-radius: 6px; cursor: pointer; border: 1px solid #cbd5e1; }
.captcha-error { color: #991b1b; font-size: 13px; margin-top: 4px; min-height: 18px; }
.contact button {
  margin-top: 20px; width: 100%; padding: 12px; background: #2563eb; color: #fff;
  border: none; border-radius: 6px; font-size: 16px; cursor: pointer;
}
.contact button:hover { background: #1d4ed8; }
.contact button:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.contact button:disabled {
  background: #94a3b8; cursor: not-allowed; opacity: 0.7;
}

/* Flash messages */
.flash { max-width: 520px; margin: 12px auto 0; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.flash.hidden { display: none; }
.flash.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Footer */
footer { text-align: center; padding: 24px 0; font-size: 13px; color: #94a3b8; border-top: 1px solid #e2e8f0; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  nav ul { gap: 12px; }
  nav a { font-size: 13px; }
  section { padding: 40px 0; }
  h2 { font-size: 22px; }
  .features .grid { grid-template-columns: 1fr; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-row img { width: 120px; align-self: center; }
}

/* Print */
@media print {
  nav, footer, .captcha-row, .contact button, .char-count { display: none; }
  .flash { display: none; }
  body { background: #fff; }
  .hero { background: #f0f0f0; color: #333; padding: 30px 0; }
  .hero p { color: #555; }
}
