/* DAN'S PLUGINS — UI REVISION 02
   Cyberpunk-inspired geometry with the owner's approved palette.
   No gridded page textures; every framed rectangle has a clipped bottom-right.
   Only Rajdhani Medium (500), Semibold (600), and Bold (700) are loaded.
*/
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #06090f;
  --glow-target: #311418;
  --card: #31181e;
  --heading: #FF5449;
  --description: #5ef6fe;
  --muted: rgba(94, 246, 254, .72);
  --muted-soft: rgba(94, 246, 254, .49);
  --border: #FF5449;
  --cut: 18px;
  --body-font: 'Rajdhani', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--description);
  font: 500 18px/1.55 var(--body-font);
  letter-spacing: .12px;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--description);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

/* Layer order: #06090f background -> maroon upper-left oval -> blue grain.
   At the core, #952E2D at ~30% over #06090f yields approximately #311418.
   Grain has monochrome noise at 20% opacity inside a blue layer which itself
   is blended across the page at 6%, like the requested Photoshop approach. */
.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  top: -365px;
  left: -285px;
  width: min(1150px, 125vw);
  height: 1020px;
  background:
    radial-gradient(ellipse at 43% 45%,
      rgba(149, 46, 45, .30) 0%,
      rgba(149, 46, 45, .27) 22%,
      rgba(149, 46, 45, .16) 45%,
      rgba(149, 46, 45, .04) 63%,
      transparent 74%);
}
body::before {
  content: "";
  position: fixed;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  background-color: #244963;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch' seed='17'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' opacity='.20' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-blend-mode: luminosity;
  opacity: .06;
}
.shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Consistent cut-corner geometry. The extra diagonal line joins the otherwise
   axis-aligned native border around elements that allow pseudo-elements. */
.wordmark-symbol, .btn, .pill, input,
.product-card, .steps-grid article, .account-card, .result-panel, .art-hex {
  --cut: 14px;
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
  border-radius: 0;
}
.wordmark-symbol, .btn, .pill,
.product-card, .steps-grid article, .account-card, .result-panel { position: relative; }
.wordmark-symbol::after, .btn::after, .pill::after,
.product-card::after, .steps-grid article::after,
.account-card::after, .result-panel::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: var(--cut);
  width: calc(var(--cut) * 1.4142);
  height: 1px;
  background: var(--border);
  transform: rotate(-45deg);
  transform-origin: right center;
  pointer-events: none;
}

/* Navigation */
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 84, 73, .48);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1.4px;
}
.wordmark strong { color: var(--heading); font-weight: 700; }
.wordmark-symbol {
  --cut: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--heading);
  border: 1px solid var(--border);
  font-size: 26px;
  line-height: 1;
}
.wordmark-symbol span { color: var(--description); }
.navlinks { display: flex; gap: 34px; }
.navlinks a, .nav-action {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.7px;
  text-decoration: none;
}
.navlinks a { color: var(--description); }
.navlinks a:hover { color: var(--heading); }
.nav-action { color: var(--heading); }
.nav-action span { padding-left: 8px; }

/* Hero */
.hero {
  min-height: 568px;
  padding: 73px 0 55px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.hero::after {
  content: "// SYSTEM ONLINE";
  position: absolute;
  right: 37px;
  top: 118px;
  color: rgba(255, 84, 73, .40);
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
}
.eyebrow {
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.4px;
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--heading);
  box-shadow: 0 0 12px rgba(255, 84, 73, .7);
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--heading);
  font-family: var(--body-font);
  font-weight: 700;
  line-height: 1.06;
}
.hero h1 {
  margin: 22px 0;
  font-size: clamp(58px, 7.8vw, 105px);
  letter-spacing: -1.1px;
}
.gradient-text {
  color: var(--heading);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero > p {
  max-width: 585px;
  color: var(--description);
  font-size: 18px;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  --cut: 10px;
  display: inline-flex;
  min-height: 48px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--heading);
  background: rgba(49, 24, 30, .48);
  border: 1px solid var(--border);
  text-decoration: none;
  font: 700 15px/1 var(--body-font);
  letter-spacing: 1.4px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn.primary { color: var(--bg); background: var(--heading); }
.btn.primary::after { background: var(--bg); opacity: .68; }
.btn.ghost { background: rgba(49, 24, 30, .4); }
.btn:disabled { opacity: .56; cursor: not-allowed; }
.btn:not(:disabled):hover { color: var(--description); background: var(--card); }
.btn.primary:not(:disabled):hover { color: var(--bg); background: #ff766d; }
.btn.primary:not(:disabled):hover::after { background: var(--bg); }
.hero-meta {
  width: 100%;
  display: flex;
  gap: 38px;
  margin-top: 70px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 84, 73, .45);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.9px;
}

/* Collection */
.section-heading { padding-top: 54px; margin-bottom: 35px; }
.section-heading h2, .account-card h2 {
  margin: 9px 0;
  font-size: clamp(40px, 5vw, 57px);
}
.accent { color: var(--heading); }
.section-heading p {
  max-width: 640px;
  color: var(--description);
  font-size: 17px;
}
.product-card {
  --cut: 20px;
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.product-art {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 42%,
    rgba(255, 84, 73, .18),
    rgba(74, 28, 36, .80) 38%,
    #170d15 80%);
}
.art-hex {
  --cut: 11px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 155px;
  height: 155px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid var(--border);
  background: rgba(6, 9, 15, .2);
  box-shadow: 0 0 34px rgba(255, 84, 73, .30), inset 0 0 30px rgba(255, 84, 73, .08);
}
.art-hex::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 84, 73, .58);
}
.art-hex span {
  display: block;
  color: var(--heading);
  font: 700 61px/151px var(--body-font);
  text-align: center;
  transform: rotate(-45deg);
}
.art-trace {
  position: absolute;
  width: 84px;
  height: 100px;
  border-left: 1px solid rgba(255, 84, 73, .5);
  border-bottom: 1px solid rgba(255, 84, 73, .5);
}
.t1 { top: 12%; left: 11%; }
.t2 { bottom: 10%; right: 10%; transform: rotate(180deg); }
.art-caption {
  position: absolute;
  bottom: 23px;
  left: 24px;
  color: var(--description);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
}
.product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 37px 39px 32px;
  background: var(--card);
}
.product-top { display: flex; align-items: center; justify-content: space-between; }
.pill {
  --cut: 6px;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: #240e15;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.sku { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.product-copy h3 { margin: 23px 0 12px; font-size: 44px; }
.product-copy > p {
  color: var(--description);
  font-size: 16px;
  line-height: 1.58;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 15px;
  color: var(--description);
  font-weight: 600;
  font-size: 14px;
}
.product-bottom {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 32px;
}
.price { display: flex; flex-direction: column; }
.price strong { color: var(--heading); font-size: 39px; font-weight: 700; line-height: 1; }
.price span {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.4px;
}
.product-copy .detail {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.muted { color: var(--muted); }

/* Steps */
.steps { padding-bottom: 84px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-grid article {
  --cut: 16px;
  min-width: 0;
  min-height: 183px;
  padding: 24px 26px 32px;
  background: var(--card);
  border: 1px solid var(--border);
}
.step-number { color: var(--heading); font-size: 31px; font-weight: 700; }
.steps-grid h3 { margin: 14px 0 9px; font-size: 29px; }
.steps-grid p {
  margin: 0;
  color: var(--description);
  font-size: 16px;
  line-height: 1.45;
}

/* Account section */
.account-card {
  --cut: 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-bottom: 70px;
  padding: 38px 42px;
  border: 1px solid var(--border);
  background: var(--card);
}
.account-card h2 { font-size: 43px; }
.account-card p {
  color: var(--description);
  font-size: 17px;
}
.login-area { padding: 12px 0; }
form { display: flex; flex-direction: column; gap: 10px; }
label { color: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 1.3px; }
input {
  --cut: 7px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--description);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}
input::placeholder { color: rgba(94, 246, 254, .47); }
input:focus { border-color: var(--description); }
.auth-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.notice { min-height: 20px; color: var(--description) !important; font-size: 16px; }
.notice.error { color: var(--heading) !important; }

/* Checkout result / return pages */
.result-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74vh;
  padding: 70px 0;
}
.result-panel {
  --cut: 20px;
  width: min(100%, 760px);
  padding: 52px;
  background: var(--card);
  border: 1px solid var(--border);
}
.result-icon {
  --cut: 11px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 27px 0;
  border: 1px solid var(--border);
  clip-path: polygon(0 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%);
  color: var(--heading);
  font-size: 47px;
  font-weight: 700;
}
.result-panel h1 { margin: 15px 0; font-size: clamp(43px, 6vw, 70px); }
.result-panel > p {
  max-width: 610px;
  color: var(--description);
  font-size: 17px;
}
.result-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.result-auth { max-width: 390px; margin-top: 26px; }
.result-help {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.result-help h3 { font-size: 24px; }
.result-help p { color: var(--description); font-size: 16px; }

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px 0 35px;
  border-top: 1px solid rgba(255, 84, 73, .45);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

/* Responsive refinement */
@media (max-width: 850px) {
  .navlinks { display: none; }
  .product-card { grid-template-columns: 1fr; }
  .product-art {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .product-copy { min-height: 355px; }
  .steps-grid { grid-template-columns: 1fr; }
  .account-card { grid-template-columns: 1fr; }
  .hero { min-height: 515px; }
}
@media (max-width: 540px) {
  .shell { padding: 0 20px; }
  .topbar { height: 72px; }
  .wordmark { font-size: 18px; }
  .wordmark-symbol { width: 34px; height: 34px; }
  .nav-action { font-size: 12px; }
  .hero { min-height: 475px; padding: 52px 0 30px; }
  .hero h1 { font-size: clamp(54px, 11vw, 70px); }
  .hero::after { display: none; }
  .hero-meta { gap: 16px; font-size: 11px; }
  .hero > p { font-size: 17px; }
  .section-heading { padding-top: 36px; }
  .product-art { min-height: 225px; }
  .product-copy { padding: 28px 24px; }
  .product-copy h3 { font-size: 36px; }
  .product-bottom { flex-wrap: wrap; }
  .account-card, .result-panel { padding: 25px; }
  .account-card { gap: 18px; }
  .result-wrap { padding: 30px 0; }
  footer { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* UI REVISION 03 — CORNER REPAIR & NEURAL PALETTE
   The earlier diagonal was a rotated 1px pseudo-element placed on top
   of a clipped CSS border. It could not join the physical border cleanly.
   Instead, we draw a complete, single-piece 1px polygon ring as an
   overlay. The outer clip defines the silhouette; its inner polygon
   defines the parallel inset stroke, including the diagonal edge.
   No separate rotated lines = no double borders or floating fragments.
*/
:root {
  --neural-yellow: #ffd438;
  --grain-blue: #244963;
  --account-panel: #131220;
}

/* One geometric outline for every framed UI surface. The polygon uses
   even-odd winding to subtract an inset interior from its exterior. */
.wordmark-symbol, .btn, .pill, .product-card,
.steps-grid article, .account-card, .result-panel, .result-icon {
  border: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}
.wordmark-symbol::after, .btn::after, .pill::after,
.product-card::after, .steps-grid article::after,
.account-card::after, .result-panel::after, .result-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  width: auto;
  height: auto;
  transform: none;
  border: none;
  opacity: 1;
  background: var(--border);
  pointer-events: none;
  clip-path: polygon(evenodd,
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 0,
    1px 1px,
    1px calc(100% - 1px),
    calc(100% - var(--cut) - 0.414px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - var(--cut) - 0.414px),
    calc(100% - 1px) 1px,
    1px 1px
  );
}
.wordmark-symbol, .result-icon { position: relative; }
.btn.primary::after { background: var(--border); }
.btn.primary:not(:disabled):hover::after { background: var(--border); }

/* Keep all children clear of the 1px perimeter, and of the clipped cut. */
.wordmark-symbol { overflow: hidden; place-items: center; }
.wordmark-glyph {
  display: block;
  line-height: 1;
  font-size: 27px;
  font-weight: 700;
  text-align: center;
  color: var(--heading);
  padding-top: 1px;
}
.wordmark-symbol > .wordmark-glyph { color: var(--heading); }
.wordmark-symbol > .wordmark-glyph::after { display: none; }
@media (max-width: 540px) { .wordmark-glyph { font-size: 24px; } }

/* Text fields: the outer clipped frame supplies the border color,
   while an identically clipped inner input reveals a uniform 1px rim.
   Unlike the former five-gradient trick, its bevel joins both edges
   continuously at every zoom level, without pseudo-elements on inputs. */
.input-frame {
  --cut: 11px;
  display: block;
  width: 100%;
  padding: 1px;
  background: var(--border);
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}
.input-frame:focus-within { background: var(--description); }
.input-frame input {
  --cut: 11px;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 0;
  background: var(--bg);
  background-image: none;
  background-repeat: no-repeat;
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}
.input-frame input:focus { outline: none; }

/* Correct account panel tone and all visible product prices. */
.account-card { background: var(--account-panel); }
.price strong, .price span, [data-price] { color: var(--neural-yellow); }

/* Headline is yellow, while all other section and component headings retain
   their original coral red. A restrained blurred underglow sits underneath
   the bright glyphs through text-shadow, rather than washing over them. */
.hero h1, .hero h1 .gradient-text { color: var(--neural-yellow); }
.hero h1 { font-size: clamp(52px, 7.2vw, 98px); }
h1, h2, h3, .step-number {
  text-shadow:
    0 2px 8px rgba(255, 84, 73, .27),
    0 0 16px rgba(255, 84, 73, .12);
}
.hero h1, .hero h1 .gradient-text {
  text-shadow:
    0 2px 9px rgba(255, 212, 56, .32),
    0 0 22px rgba(255, 212, 56, .12);
}

/* More visible uniform monochrome grain, gently blue-tinted.
   Previous implementation combined a 20% gray grain inside SVG with
   a 6% overlay (roughly 1.2% visibility), barely noticeable.
   This raises contrast while retaining the #06090f backdrop. */
body::before {
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch' seed='17'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.95'/%3E%3C/svg%3E"),
    linear-gradient(#244963, #244963);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: luminosity;
  opacity: .05;
}
