/* Comwil site refresh. Loaded after /styles.css: adds the floating header, product
   cards, richer hero, contact band and footer. Brand colours and fonts are unchanged. */

:root {
  --radius: 20px;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  --glow: 0 0 0 1px rgba(34,224,194,0.35), 0 18px 60px -18px rgba(34,224,194,0.35);
}

body { background-attachment: fixed; }
.backdrop::before {
  background:
    radial-gradient(ellipse 55% 40% at 8% -8%, rgba(34,224,194,0.18), transparent 62%),
    radial-gradient(ellipse 45% 45% at 100% 6%, rgba(34,150,224,0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 112%, rgba(34,224,194,0.08), transparent 60%);
}

/* ---------- floating header ---------- */
header.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px 0 0;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 37, 72, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
header.site-header nav { display: flex; align-items: center; gap: 4px; }
header.site-header nav a {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}
header.site-header nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
header.site-header nav a.nav-cta {
  margin-left: 6px;
  background: var(--teal);
  color: #002018;
  font-weight: 600;
}
header.site-header nav a.nav-cta:hover { background: var(--teal-soft); color: #002018; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn.primary { background: var(--teal); color: #002018; box-shadow: 0 10px 30px -12px rgba(34,224,194,0.7); }
.btn.primary:hover { background: var(--teal-soft); transform: translateY(-2px); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.03); }
.btn.ghost:hover { border-color: var(--teal); background: var(--teal-wash); transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,224,194,0.30), rgba(34,224,194,0) 68%);
  filter: blur(18px); animation: breathe 7s ease-in-out infinite;
}
.hero-visual img {
  position: relative; width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%,100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; position: relative; z-index: 2; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 0; }

/* ---------- product cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass), var(--bg-1); text-decoration: none; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(34,224,194,0.5); }
.pcard.span-4 { grid-column: span 4; }
.pcard.span-2 { grid-column: span 2; }
.pcard .kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-soft); margin-bottom: 14px;
}
.pcard h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.pcard p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; margin: 0 0 22px; max-width: 46ch; }
.pcard .go { margin-top: auto; color: var(--teal-soft); font-weight: 600; font-size: 0.9rem; }
.pcard .go::after { content: " \2192"; transition: margin-left 0.15s ease; }
.pcard:hover .go::after { margin-left: 4px; }
.pcard.feature { flex-direction: row; align-items: center; gap: 28px; min-height: 300px; }
.pcard.feature .copy { flex: 1 1 55%; display: flex; flex-direction: column; align-self: stretch; }
.pcard.feature .art {
  flex: 1 1 40%; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(34,224,194,0.20), transparent 70%);
}
.pcard.feature .art img { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.4)); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tag-row li { font-size: 0.76rem; padding: 4px 10px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-soft); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass); transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: rgba(34,224,194,0.45); transform: translateY(-3px); }
.step .num {
  font-family: var(--display); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(143,242,227,0.7); margin-bottom: 18px; display: block;
}
.step .t { font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin-bottom: 8px; }
.step .d { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---------- about + contact band ---------- */
.about-modern { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.about-modern h2 { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.about-modern .copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin: 0 0 20px; }
.about-modern .copy strong { color: var(--ink); font-weight: 600; }
.band {
  margin: 12px 0 96px; padding: 48px; border-radius: 28px; border: 1px solid rgba(34,224,194,0.28);
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(34,224,194,0.18), transparent 60%), var(--bg-1);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.band p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.6; max-width: 52ch; }

/* ---------- footer ---------- */
footer.site-footer { display: block; padding: 56px 0 44px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 16px 0 0; max-width: 32ch; }
.foot-grid h4 {
  margin: 0 0 16px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted-dim); font-weight: 600;
}
.foot-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 5px 0; transition: color 0.15s ease; }
.foot-grid a:not(.brand):hover { color: var(--teal-soft); }
footer.site-footer .foot-meta { border-top: 1px solid var(--line-soft); padding-top: 24px; }

/* ---------- scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; } .js .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual::before, .hero-visual img { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pcard.span-4 { grid-column: span 2; }
  .pcard.span-2 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-modern { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pcard.feature { flex-direction: column; align-items: stretch; }
  .bento { grid-template-columns: 1fr; }
  .pcard.span-4, .pcard.span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
}

/* spacing helper used by the VoltSight pages (inline styles are blocked by the CSP) */
.fine.tight { margin-top: 18px; }


/* ================= round two ================= */
@view-transition { navigation: auto; }

.skip { position: absolute; left: -9999px; top: 10px; }
.skip:focus { left: 14px; z-index: 100; background: var(--teal); color: #002018; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

header.site-header { transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
header.site-header.scrolled { background: rgba(3, 28, 56, 0.86); border-color: rgba(255,255,255,0.14); box-shadow: 0 16px 50px -22px rgba(0,0,0,0.8); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,0.04); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
header.site-header.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
header.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* product cards: spotlight that follows the pointer */
.pcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34,224,194,0.14), transparent 60%); }
.pcard:hover::before { opacity: 1; }

/* VoltSight showcase card with a real app screenshot */
.pcard.span-6 { grid-column: span 6; }
.pcard.showcase { flex-direction: row; align-items: center; gap: 44px; padding: 44px; min-height: 380px; }
.showcase .copy { flex: 0 0 34%; display: flex; flex-direction: column; justify-content: center; }
.showcase .copy .go { margin-top: 6px; }
.showcase .shot { flex: 1; min-width: 0; perspective: 1500px; }
.window { border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); background: #10161c; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(34,224,194,0.08);
  transform: rotateY(-7deg) rotateX(2deg); transform-origin: 70% 50%; transition: transform 0.45s ease; }
.pcard:hover .window { transform: rotateY(-2deg) rotateX(0) translateY(-4px); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1a222b; border-bottom: 1px solid rgba(255,255,255,0.08); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.window-bar span { margin-left: 10px; font-size: 0.72rem; color: var(--muted); }
.window img { display: block; width: 100%; height: auto; }

@media (max-width: 980px) {
  .pcard.span-6 { grid-column: span 2; }
  .pcard.showcase { flex-direction: column; align-items: stretch; padding: 32px; gap: 28px; }
  .showcase .copy { flex: none; }
  .window { transform: none; }
  .bento .pcard.span-2:last-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  header.site-header { padding: 10px 12px 10px 16px; }
  .menu-btn { display: flex; }
  header.site-header nav {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border: 1px solid var(--line); border-radius: 22px; background: rgba(3, 28, 56, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
  }
  header.site-header.open nav { display: flex; }
  header.site-header nav a { padding: 13px 16px; font-size: 1rem; }
  header.site-header nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .bento .pcard.span-2:last-child, .pcard.span-6, .pcard.span-4, .pcard.span-2 { grid-column: span 1; }
  .pcard.showcase { padding: 24px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .window, .pcard:hover .window { transition: none; }
}
