/* Palette HUD et effets Look adaptés de TrackMyFund (hud.css et look.css). */
@font-face {
  font-family: "RootLab Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "RootLab Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #17242b;
  --foreground: #dce6eb;
  --accent: #4de0b0;
  --secondary: #50a5d5;
  --muted: #83959f;
  --line: rgba(177, 203, 215, .17);
  --grid: rgba(159, 187, 204, .03);
  --line: color-mix(in srgb, var(--accent) 20%, transparent);
  --grid: color-mix(in srgb, var(--accent) 4%, transparent);
  font-family: "RootLab Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

* { box-sizing: border-box; }

body {
  font-feature-settings: "cv11" 1;
  margin: 0;
  min-width: 240px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 6px 6px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 6px 6px,
    radial-gradient(ellipse at 85% 10%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 65%),
    radial-gradient(ellipse at 5% 90%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    linear-gradient(125deg, var(--background), color-mix(in srgb, var(--background) 94%, var(--secondary)));
}

.welcome {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.identity {
  position: relative;
  width: min(100%, 30rem);
  padding: clamp(2rem, 6vw, 3.25rem) 1rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(28, 43, 51, .28);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  box-shadow: 0 0 48px -24px var(--accent);
}

.identity::before,
.identity::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 9px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 9px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 9px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 9px no-repeat;
  opacity: .85;
}

.identity::after { transform: scaleX(-1); opacity: .425; }

@media (hover: hover) {
  .identity:hover {
    border-color: var(--accent);
    box-shadow: 0 0 64px -20px var(--accent);
  }

  .identity:hover::before,
  .identity:hover::after {
    background-size: 28px 2px, 2px 28px, 28px 2px, 2px 28px;
  }
}

.logo-wrap {
  position: relative;
  width: clamp(3.25rem, 9vw, 4.25rem);
  margin: 0 auto 1.25rem;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 7px var(--accent));
}

h1 {
  margin: 0;
  font-family: "RootLab Petch", "RootLab Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.5rem, 7vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: nowrap;
}

.slash { margin: 0 .04em; color: var(--accent); }

.domain {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .18em;
}

::selection { color: var(--background); background: var(--accent); }

/* Une presence visible sans attendre le survol, sur mobile aussi. */
@media (prefers-reduced-motion: no-preference) {
  .identity {
    animation: identity-reveal .7s ease-out both;
    transition: border-color .28s ease, box-shadow .28s ease;
  }

  .identity::before,
  .identity::after {
    transition: background-size .28s cubic-bezier(.2, .8, .2, 1);
  }

  .logo {
    animation: logo-glow 4s ease-in-out infinite;
  }
}

@keyframes identity-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)); }
  50% { filter: drop-shadow(0 0 16px var(--accent)); }
}
