/* Home page in the Drill Mouse brand (Drill_Mouse_Brand_Kit/brand_guidelines.md).
   Loaded after site.css, on the home page only: the app pages keep their own look. */

:root {
  --dm-navy: #0B2D5B;
  --dm-blue: #00B4FF;
  --dm-link: #007FC2;
  --dm-yellow: #FFC629;
  --dm-coral: #FF8A8A;
  --dm-grey-blue: #A7B4D3;
  --dm-pale-blue: #F0F6FF;
  --dm-ink: #092653;
  --dm-muted: #5B6F91;
  --dm-border: #DCE6F5;
  /* The brand is defined on light backgrounds only. */
  color-scheme: light;
}

body.home {
  font-family: Inter, Arial, sans-serif;
  color: var(--dm-ink);
  background: var(--dm-pale-blue);
}
body.home a { color: var(--dm-link); }

.home .display { font-family: Montserrat, Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; }

/* Header: the wordmark, "Drill" in navy and "Mouse" in bright blue. */
.home header.top .brand { gap: 10px; font-size: 22px; }
.home header.top .brand img { width: 36px; height: 36px; border-radius: 9px; }
.home .wordmark .drill { color: var(--dm-navy); }
.home .wordmark .mouse { color: var(--dm-blue); }
.home nav.links { color: var(--dm-muted); }
.home .lang-switch { border-color: var(--dm-border); background: #fff; }
.home .lang-switch button { color: var(--dm-muted); }
html[data-lang="fr"] .home .lang-switch [data-set="fr"],
html[data-lang="en"] .home .lang-switch [data-set="en"] { background: var(--dm-navy); color: #fff; }

/* Hero: a navy panel with the mascot, and the brand's organic shapes behind. */
.home .banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px;
  margin: 16px 0 48px; padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0E3A75 0%, var(--dm-navy) 60%, #081F42 100%);
  color: #fff;
}
.home .banner::before, .home .banner::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.home .banner::before { width: 360px; height: 300px; right: -90px; top: -110px; background: var(--dm-blue); opacity: 0.22; }
.home .banner::after { width: 120px; height: 120px; left: 46%; bottom: -60px; background: var(--dm-yellow); opacity: 0.9; }
.home .banner > * { position: relative; z-index: 1; }
.home .banner h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; margin: 0 0 16px; }
.home .banner h1 .mouse { color: var(--dm-blue); }
.home .banner p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #D5E2F7; margin: 0 0 28px; max-width: 520px; }
/* The icon's corners are white in the image: clipped just inside its own rounded edge. */
.home .banner .mascot { width: 100%; max-width: 320px; justify-self: center; clip-path: inset(2.5% round 21%); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }

.home .button.primary { background: var(--dm-yellow); color: var(--dm-navy); border-radius: 14px; }

/* "Our apps": one card per app. */
.home h2.section { font-size: 28px; color: var(--dm-navy); margin: 0 0 20px; }
.home .apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 64px; }
.home .card.app {
  background: #fff; border: 1px solid var(--dm-border); border-radius: 24px; padding: 24px;
  box-shadow: 0 8px 24px rgba(11, 45, 91, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home .card.app:hover { border-color: var(--dm-blue); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 45, 91, 0.12); }
.home .card.app h3 { font-family: Montserrat, Arial, sans-serif; font-weight: 800; color: var(--dm-navy); margin: 2px 0 6px; font-size: 21px; }
.home .card.app p { color: var(--dm-muted); margin: 0 0 12px; }
.home .card.app .more { font-weight: 600; color: var(--dm-link); }

/* Three promises, each marked with a dot in a brand colour. */
.home .promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 64px; }
.home .promise { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--dm-border); }
.home .promise h3 { font-family: Montserrat, Arial, sans-serif; font-weight: 800; color: var(--dm-navy); margin: 12px 0 6px; font-size: 18px; }
.home .promise p { color: var(--dm-muted); margin: 0; font-size: 16px; }
.home .promise .dot { display: block; width: 28px; height: 28px; border-radius: 50%; }

.home footer { border-top: 1px solid var(--dm-border); color: var(--dm-muted); }

@media (max-width: 720px) {
  .home .banner { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .home .banner p.lead { margin-left: auto; margin-right: auto; }
  .home .banner .mascot { max-width: 220px; grid-row: 1; }
  .home .banner::after { display: none; }
}
