:root {
  --blue-light: rgb(180, 216, 238);
  --blue-mid: rgb(31, 130, 196);
  --blue-dark: rgb(15, 85, 138);
  --ink: #0f2436;
  --paper: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(9, 40, 66, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Background image + readability overlay */
.bg {
  position: fixed;
  inset: 0;
  background: url("assets/app_dev.jpg") center / cover no-repeat;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(9, 40, 66, 0.82) 0%,
    rgba(15, 85, 138, 0.78) 55%,
    rgba(9, 40, 66, 0.88) 100%
  );
  z-index: -1;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-suffix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 1px;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
}

.hero-inner {
  max-width: 820px;
}

.headline {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 20px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 0 44px;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pillar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 22px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pillar h2 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--blue-light);
}

.pillar p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Contact modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 40, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #6a7b8a;
  cursor: pointer;
}

.modal-close:hover { color: var(--ink); }

.modal h2 {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 1.5rem;
}

.modal-sub {
  margin: 0 0 22px;
  color: #56697a;
  font-size: 0.95rem;
}

#contact-form label {
  display: block;
  margin-bottom: 16px;
}

#contact-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d5266;
  margin-bottom: 6px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cdd8e2;
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
  background: #f8fafc;
  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-mid);
  box-shadow: 0 0 0 3px rgba(31, 130, 196, 0.18);
  background: #fff;
}

#contact-form textarea { resize: vertical; }

/* Honeypot — visually and semantically hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0 0 12px;
  min-height: 1em;
}

.form-success {
  margin: 6px 0 0;
  padding: 16px 18px;
  background: #eaf6ee;
  border: 1px solid #bfe3cb;
  border-radius: 10px;
  color: #1e7a45;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--blue-mid);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit:hover { background: var(--blue-dark); }

/* Responsive */
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .site-footer { justify-content: center; text-align: center; }
}
