:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #10639e;
  --primary-600: #10639e;
  --accent: #ffb703;
  --ring: rgba(15, 98, 158, 0.25);
  --shadow: 0 10px 30px rgba(15, 98, 158, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #0f5e96 0%, #10639e 60%, #0b4e7d 100%);
}
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.logo {
  max-width: 360px;
  width: 90%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: none;
  opacity: 0.92;
  mix-blend-mode: lighten;
}
.title { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); margin: 0.25rem 0 0.5rem; font-weight: 700; }
.tagline { color: #e6f1ff; opacity: 0.95; margin: 0 auto 1.25rem; max-width: 800px; }

.cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.button--primary { background: #fff; color: var(--primary-600); }
.button--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,255,255,0.25); }
.button--ghost { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); backdrop-filter: blur(2px); }
.button--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

.nav { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0 0; padding-bottom: 1rem; }
.nav a {
  color: #e6f1ff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 0.85rem; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.wave {
  display: block; width: 100%; height: 64px; margin-top: -10px; color: var(--bg);
}

/* Hero tech circuit overlay */
.hero-circuit { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.28; }
.hero-circuit .trace { stroke: rgba(255,255,255,0.28); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 10; animation: circuitFlow 20s linear infinite; }
.hero-circuit .node { fill: rgba(255,255,255,0.45); }
@keyframes circuitFlow { to { stroke-dashoffset: -240; } }

/* Motion preferences and mobile tuning */
@media (prefers-reduced-motion: reduce) {
  .hero-circuit .trace { animation: none !important; }
}
@media (max-width: 640px) {
  .hero-circuit { opacity: 0.22; }
  .hero-circuit .trace { animation: none; stroke-width: 1.5; }
}

section { padding: 2.5rem 0; }
section h2 { font-size: 1.75rem; margin: 0 0 0.25rem; letter-spacing: 0.2px; }
.container > h2::after, section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 999px; margin-top: 8px; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow); border: 1px solid rgba(2, 6, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 98, 158, 0.16); }
.card h3 { margin-top: 0.25rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); margin: 0; }

/* Card icons */
.card .icon { color: var(--accent); margin-bottom: 0.35rem; }
.card .icon svg { display: block; width: 40px; height: 40px; stroke: currentColor; }

.panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

form { margin-top: 0.5rem; }
form input, form textarea {
  width: 100%; padding: 0.75rem 0.9rem; margin: 0.4rem 0 0.85rem; border-radius: 10px;
  border: 1px solid #dbe2ea; background: #fff; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form input:focus, form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
form button {
  background: var(--primary); color: #fff; border: none; padding: 0.75rem 1.1rem; cursor: pointer;
  border-radius: 999px; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
form button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 98, 158, 0.25); }

footer {
  background: #0b1220; color: #e5e7eb; text-align: center; padding: 1.25rem 0; margin-top: 2rem;
}
footer p { margin: 0; }

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2rem; }
  .nav { gap: 0.25rem; }
}
