/* ============================================================
   UNDRDG DEVS — styles.css
   Palette: white + navy, with an electric-blue gradient accent
   ============================================================ */

:root {
  --navy: #0a1f44;          /* main brand navy */
  --navy-deep: #061530;     /* darkest navy (story section bg) */
  --ink: #10254e;           /* body text on white */
  --muted: #5b6b8c;         /* secondary text */
  --blue: #2563eb;          /* accent */
  --blue-bright: #3b82f6;
  --cyan: #38bdf8;          /* gradient partner */
  --bg: #ffffff;
  --bg-soft: #f5f7fc;       /* soft card background */
  --border: #e4e9f4;
  --radius: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal-on-scroll animation ----------
   Scoped to html.js so content stays visible if JS ever fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--navy); background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 900px;
}
.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--muted);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Section shared ---------- */
section { padding: 110px 0; }

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-kicker.light { color: var(--cyan); }

.section-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 56px;
}

/* ---------- Value ---------- */
.value { background: var(--bg); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10, 31, 68, .08);
}
.value-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(10, 31, 68, .1);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Story (dark navy band) ---------- */
.story {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, .18), transparent 60%),
              var(--navy-deep);
}
.story-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
}
.story-p {
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 540px;
}
.story .btn { margin-top: 16px; }

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 26px 28px;
  backdrop-filter: blur(6px);
}
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: rgba(255, 255, 255, .65); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.contact-email:hover { border-color: var(--blue); }

.contact-form {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
}
/* Honeypot: moved off-screen (not display:none — smarter bots skip that) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field label em { color: var(--muted); font-style: normal; font-weight: 500; }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-status {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  min-height: 22px;
}
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { font-weight: 900; letter-spacing: .06em; color: #fff; }
.footer-tag { color: var(--cyan); font-weight: 600; font-size: 14px; }
.footer-copy { color: rgba(255, 255, 255, .45); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .story-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}
