:root {
  color-scheme: dark;
  --page: #0c1120;
  --surface: #141c2d;
  --text: #f4f7ff;
  --muted: #aebbd1;
  --accent: #86b8ff;
  --line: #27334a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 77% 25%, #182b4d 0, transparent 42%) var(--page); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(73rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }

.skip { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .75rem 1rem; transform: translateY(-200%); background: var(--text); color: var(--page); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead, .masthead nav, .brand, .footer { display: flex; align-items: center; }
.masthead { min-height: 5.375rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .65rem; font-weight: 700; font-size: 1.22rem; letter-spacing: -.04em; text-decoration: none; }
.brand img { display: block; border-radius: .6rem; }
.masthead nav { gap: 1.65rem; }
.masthead nav a { font-size: .9375rem; font-weight: 600; text-decoration: none; }
.nav-tour, .footer { color: var(--muted); }
.nav-tour:hover, .footer a:hover { color: var(--text); }
.sign-in { padding: .66rem 1rem; border-radius: .5rem; background: #ffffff0c; border: 1px solid #ffffff24; }
.sign-in:hover { background: #ffffff19; }

.hero { display: grid; align-items: center; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.45rem, 7vw, 6.25rem) clamp(3.5rem, 7.5vw, 6.6rem); }
.intro h1 { font-size: clamp(3.3rem, 5.8vw, 6rem); font-weight: 690; letter-spacing: -.065em; word-spacing: .025em; line-height: .99; }
.intro h1 span { color: var(--accent); }
.intro p { color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.68; max-width: 27rem; margin-block: 1.55rem 1.8rem; }
.primary { display: inline-flex; align-items: center; min-height: 3.2rem; padding-inline: 1.25rem; border-radius: .625rem; color: white; background: #225cca; font-weight: 650; font-size: .98rem; text-decoration: none; box-shadow: 0 8px 22px #0005; }
.primary:hover { background: #2e6ce4; }

.hero-visual { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-width: 0; min-height: 27rem; aspect-ratio: 1.24; border-radius: 1.5rem; background: linear-gradient(145deg, #253657, #141c2b); box-shadow: 0 28px 70px #02071388; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #09112199, transparent 75%); pointer-events: none; }

.sample-dashboard {
  position: absolute;
  z-index: 1;
  inset: auto clamp(.75rem, 5%, 1.7rem) clamp(.75rem, 5%, 1.7rem);
  padding: clamp(.75rem, 4%, 1.2rem);
  border-radius: .95rem;
  color: #f8faff;
  background: #0c1423e0;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px #03061177;
}
.sample-header { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.sample-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .42rem; background: linear-gradient(150deg, #63aeff, #1446bb); font-weight: 760; }
.sample-header strong { display: block; font-size: .95rem; }
.sample-header div span { display: block; margin-top: .12rem; color: var(--muted); font-size: .75rem; }
.sample-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sample-card { display: grid; align-content: start; gap: .3rem; padding: .65rem; border-radius: .55rem; background: #25344bd6; }
.sample-card > span { color: #c3d0e7; font-size: .8rem; }
.sample-card strong { font-size: clamp(1.28rem, 2.75vw, 2rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.sample-card small { color: #c3d0e7; font-size: .7rem; letter-spacing: 0; }
.climate { background: #284573; }
.sample-level { height: .25rem; margin-top: .36rem; overflow: hidden; border-radius: 2rem; background: #b3c4e338; }
.sample-level span { display: block; width: 65%; height: 100%; border-radius: inherit; background: #87baff; }
.sample-energy { display: flex; align-items: end; gap: .17rem; height: .72rem; }
.sample-energy i { height: 36%; width: .25rem; border-radius: .08rem; background: #8fdab9; }
.sample-energy i:nth-child(2) { height: 52%; }
.sample-energy i:nth-child(3) { height: 71%; }
.sample-energy i:nth-child(4) { height: 83%; }
.sample-energy i:nth-child(5) { height: 100%; }
.sample-energy i:nth-child(6) { height: 91%; }

.overview { border-top: 1px solid var(--line); padding-block: clamp(2.7rem, 6vw, 4.7rem); }
.overview h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); font-weight: 665; letter-spacing: -.055em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2.5vw, 1.5rem); margin-top: 1.5rem; }
.features article { padding: clamp(1.15rem, 2.5vw, 1.7rem); background: var(--surface); border-radius: .9rem; }
.feature-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .6rem; color: var(--accent); background: #243653; font-size: 1.55rem; line-height: 1; }
.feature-icon.tiles { font-size: 1.375rem; }
.features h3 { font-size: 1.18rem; margin-block: .8rem .42rem; letter-spacing: -.025em; }
.features p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.footer { justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.6rem 2rem; font-size: .875rem; }
.footer a { text-underline-offset: .21em; }

@media (max-width: 57rem) {
  .hero { grid-template-columns: .92fr 1.08fr; gap: 1.5rem; padding-top: 3rem; }
  .intro h1 { font-size: clamp(3rem, 6.3vw, 4.5rem); }
  .hero-visual { min-height: 23rem; }
}
@media (max-width: 43rem) {
  .masthead { min-height: 4.5rem; }
  .masthead nav { gap: .85rem; }
  .nav-tour { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.45rem; }
  .intro h1 { font-size: clamp(3.25rem, 10vw, 5rem); }
  .hero-visual { min-height: 20rem; aspect-ratio: 1.26; border-radius: 1rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 23rem) {
  .sample-card { padding: .48rem; }
  .sample-card > span, .sample-card small { font-size: .64rem; }
}
@media (prefers-reduced-motion: no-preference) {
  a { transition: color .16s ease, background-color .16s ease; }
}
