/* POWER website v2 — base: tokens, reset, type, buttons, labels.
   Direction: dark framed hero with an animated energy orb, light airy sections,
   pill navigation, mono tags, bento cards (inspired by modern AI/SaaS landing pages). */

:root {
  /* Brand */
  --blue: #19a3e0;          /* POWER logo blue, brightened for screens */
  --blue-deep: #1d5bd8;
  --cyan: #52d6ff;
  --spark: #ff8a3d;         /* welding-spark accent, used sparingly */
  --blue-ink: #0b6fa6;      /* blue for text on light backgrounds */

  /* Dark surfaces */
  --night: #04070d;
  --night-2: #0a1322;
  --night-3: #111d31;
  --on-night: #c9d4e3;
  --on-night-muted: #8d9bb0;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);

  /* Light surfaces */
  --paper: #f6f8fb;
  --card: #eef2f7;
  --white: #fff;
  --ink: #09111e;
  --text: #3a4556;
  --muted: #677386;
  --line: #e1e6ee;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; letter-spacing: -.005em;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--night); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 200; padding: .6rem 1rem; background: var(--white); color: var(--ink); border-radius: var(--pill); }

/* Dark context */
.dark { color: var(--on-night); background: var(--night); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark a:not(.btn) { color: var(--cyan); }

/* Gradient headline text */
.grad-text {
  background: linear-gradient(100deg, #fff 0%, #fff 35%, #9fdcff 62%, #6f8dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-ink {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, var(--blue-ink) 75%, var(--blue-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Mono tag / eyebrow: "• FEATURES" */
.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.25rem; padding: .38rem .8rem .38rem .65rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: var(--pill);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(25, 163, 224, .18); }
.dark .tag { color: var(--on-night); background: var(--glass); border-color: var(--glass-line); }
.dark .tag::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.dark .lead { color: var(--on-night); }
.mono { font-family: var(--mono); }

/* Buttons: pills */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 500 .98rem/1.2 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--pill); cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: -.55rem; border-radius: 50%; font-size: .85rem; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink .arrow { background: var(--white); color: var(--ink); }
.btn-ink:hover { color: var(--white); box-shadow: 0 12px 30px rgba(9, 17, 30, .25); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light .arrow { background: var(--ink); color: var(--white); }
.btn-light:hover { color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 12px 40px rgba(82, 214, 255, .35); }
.btn-glass { background: var(--glass); color: var(--white); border-color: var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { color: var(--ink); background: var(--white); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.dark .text-link { color: var(--white); }

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center { text-align: center; }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .lead { margin-inline: auto; max-width: 38rem; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 4rem; align-items: end; max-width: none; text-align: left; }
.section-head.split .lead { margin: 0; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* Motion */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
