/* Eleven UB Solutions: home page styles */

:root {
  --accent: #5ad1d6;          /* ocean teal: brand accent */
  --accent-2: #b9eef2;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --glass: rgba(6, 26, 34, 0.45);
  --border: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.06);
  --error: #ff6b6b;
  --success: #3ddc97;
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #0a2229 url("../ocean-poster.jpg") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Background video ---------- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,22,30,0.55) 0%, rgba(4,22,30,0.35) 45%, rgba(3,16,22,0.7) 100%),
    linear-gradient(90deg, rgba(3,16,22,0.55) 0%, transparent 60%);
}

/* ---------- Layout ---------- */
.page {
  min-height: calc(100vh - 40px);   /* leave room for the footer */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ---------- Hero ---------- */
/* Logo: inline SVG so "SOLUTIONS" can use the accent gradient */
.logo {
  width: clamp(260px, 34vw, 480px);
  max-width: 100%;
  margin-bottom: 32px;
  line-height: 0;
}
.logo-mark { display: block; width: 100%; height: auto; }
.logo-top { fill: var(--text); }
.stop-a { stop-color: var(--accent); }
.stop-b { stop-color: var(--accent-2); }

.tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 520px;
  font-weight: 300;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  list-style: none;
}
.pillars li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Form card ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.card p.sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { margin-bottom: 14px; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(90,209,214,0.22);
}
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff99' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select option { color: #111; }
textarea { resize: vertical; min-height: 110px; }

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #04212a;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .15s, opacity .2s, box-shadow .2s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(90,209,214,0.35); }
button:disabled { opacity: .6; cursor: wait; transform: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.privacy-note {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-dim);
}
.privacy-note a, footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-note a:hover, footer a:hover { color: var(--accent); }

.status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}
.status.ok { color: var(--success); }
.status.err { color: var(--error); }

/* Footer sits below the content, so it never covers the form on short screens */
footer {
  padding: 0 16px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Entrance animation ---------- */
.fade { opacity: 0; transform: translateY(16px); animation: in .9s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }
@keyframes in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .fade { animation: none; opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 40px; padding: 40px 16px 72px; }
  .logo { width: min(340px, 100%); margin-bottom: 24px; }
  .card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; gap: 0; }
}
