/* Home page */
.type-home .site-header {
  background: #080d0b;
  border-color: #23372e;
}
.type-home .header-inner { min-height: 68px; }
.type-home .site-nav .nav-contact {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--outline);
  box-shadow: none;
}
.type-home .site-nav .nav-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.md-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 74% 44%, #102d21 0%, #0a1611 35%, transparent 67%), #080d0b;
  border-bottom: 1px solid var(--line);
}
.md-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), #c0f8e00a calc(12.5% - 1px), #c0f8e00a 12.5%);
  pointer-events: none;
}
.md-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  min-height: clamp(640px, 83svh, 940px);
  padding-block: 62px 80px;
}
.md-hero-copy { position: relative; z-index: 1; }
.md-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  margin: 0 0 20px;
}
.md-hero .md-label { display: flex; gap: 13px; align-items: center; }
.md-hero .md-label::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.md-hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.75vw, 86px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.08em;
}
.md-hero h1 em { color: var(--accent); font-style: normal; }
.md-lead {
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.95;
}
.md-hero-actions, .md-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.md-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  width: fit-content;
  padding: 11px 17px;
  color: var(--ink);
  background: #0d1814;
  border: 1px solid var(--outline);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.md-action span, .md-inline span { color: var(--accent); font-size: 16px; line-height: 1; }
.md-action:hover, .md-action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.md-action:hover span, .md-action-primary span { color: var(--on-accent); }
.md-action-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.md-inline { font-size: 13px; font-weight: 700; text-underline-offset: .34em; }
.md-inline span { margin-left: 4px; }
.md-hero-art {
  position: relative;
  aspect-ratio: 1.065;
  width: calc(100% + 6vw);
  max-width: 760px;
  margin-left: -2vw;
  background: radial-gradient(ellipse at 53% 51%, #006d4733 0%, transparent 61%);
}
.md-hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 49%;
  width: 39%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scaleY(.52) rotate(45deg);
  border: 1px solid #00e59970;
  background: radial-gradient(#00e59933, transparent 70%);
  box-shadow: 0 0 0 18px #00e59914, 0 0 0 48px #00e5990e, 0 0 48px #00e59936;
}
.md-hero-art[data-ready]::before { display: none; }
.md-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }

.md-tools { padding-block: clamp(72px, 9vw, 126px) 85px; scroll-margin-top: 26px; }
.md-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin: 0 0 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.md-section-head h2, .md-about h2, .md-contact h2 {
  margin: 0;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.055em;
  font-size: clamp(33px, 5.2vw, 69px);
}
.md-section-head p, .md-about p, .md-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.md-product {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(24px, 5.4vw, 78px);
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.md-product + .md-product { margin-top: 20px; }
.md-product-copy { padding-block: 12px; }
.md-product .md-label { margin-bottom: 12px; }
.md-product h3 {
  margin: 0 0 4px;
  font-size: clamp(52px, 7vw, 92px);
  letter-spacing: -.065em;
  line-height: .99;
}
.md-product-pitch { margin: 16px 0 10px; font-size: clamp(15px, 1.9vw, 21px); font-weight: 750; }
.md-product-description { max-width: 34rem; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.md-product-art {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 325px;
  aspect-ratio: 1.64;
  border: 1px solid #3a5348;
  border-radius: 11px;
  box-shadow: inset 0 0 50px #0003;
  background: radial-gradient(ellipse at 57% 64%, #206d4d 0, #173b2b 31%, #101d17 73%, #0b1410 100%);
}
.md-product-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#b7f7d70c 1px, transparent 1px), linear-gradient(90deg, #b7f7d70c 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 87%);
}
.md-phone, .md-window {
  position: absolute;
  background: #0a0e0c;
  border: 1px solid #587569;
  box-shadow: 0 17px 50px #000a, 0 1px 24px #00e59930;
  transition: transform .32s ease;
}
.md-phone {
  left: 35%;
  top: 12%;
  width: 25%;
  padding: .65%;
  z-index: 1;
  border-radius: 13px;
  transform: rotate(-9deg);
}
.md-phone-rear { left: 54%; top: 15%; z-index: 0; transform: scale(.91) rotate(10deg); }
.md-phone img { border-radius: 9px; width: 100%; }
.md-art-maind:hover .md-phone { transform: translateY(-6px) rotate(-10deg); }
.md-art-maind:hover .md-phone-rear { transform: translateY(-3px) scale(.93) rotate(11deg); }
.md-window {
  left: 11%;
  top: 10%;
  width: 79%;
  padding: 1.05%;
  border-radius: 11px;
  transform: perspective(1000px) rotateX(9deg) rotateY(-9deg);
}
.md-window img { width: 100%; border-radius: 6px; }
.md-art-wevia {
  background: radial-gradient(ellipse at 40% 69%, #235b4e, #142d26 48%, #0b1410 88%);
}
.md-art-wevia:hover .md-window { transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-4px); }
.md-media-note { color: var(--muted); margin: 16px 0 0; font-size: 12px; }

.md-about {
  background: linear-gradient(115deg, #10271c, #101b16 55%, #0e1211);
  border-block: 1px solid var(--line);
  scroll-margin-top: 14px;
}
.md-about-inner, .md-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(23px, 7vw, 100px);
}
.md-about-inner { padding-block: clamp(60px, 9vw, 120px); }
.md-about p + p { margin-top: 14px; }
.md-contact { padding-block: clamp(65px, 9vw, 116px); }
.md-contact-inner {
  border: 1px solid #3a5348;
  border-radius: 12px;
  padding: clamp(26px, 5.6vw, 64px);
  background: radial-gradient(ellipse at 91% 0%, #174830, transparent 65%), var(--panel);
}
.md-contact h2 { margin-bottom: 15px; font-size: clamp(31px, 4.5vw, 55px); }
.md-contact-actions { align-items: start; flex-direction: column; }
.type-home .site-footer { border-top: 1px solid var(--line); }

@media (max-width: 950px) {
  .md-product { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .md-product-art { min-height: 285px; }
}
@media (max-width: 760px) {
  .type-home .header-inner { min-height: auto; }
  .md-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: clamp(47px, 10vw, 83px) 0;
  }
  .md-hero h1 { font-size: clamp(42px, 9.8vw, 64px); }
  .md-lead { margin: 21px 0 23px; }
  .md-desktop-break { display: none; }
  .md-hero-art { margin: -6px auto -7vw; width: min(620px, 111%); justify-self: center; }
  .md-section-head { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 13px; padding-bottom: 17px; }
  .md-product, .md-about-inner, .md-contact-inner { grid-template-columns: 1fr; }
  .md-product { gap: 19px; }
  .md-product-copy { padding-block: 5px 0; }
  .md-product-art { min-height: 0; }
  .md-phone { border-radius: 9px; }
  .md-phone img { border-radius: 6px; }
  .md-window { border-radius: 8px; }
  .md-window img { border-radius: 5px; }
  .md-about-inner { gap: 21px; }
}
@media (max-width: 370px) {
  .md-hero h1 { font-size: 38px; }
  .md-hero-actions { gap: 14px; }
  .md-hero-actions .md-action { gap: 12px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-action, .md-phone, .md-window { transition: none; }
  .md-art-maind:hover .md-phone { transform: rotate(-9deg); }
  .md-art-maind:hover .md-phone-rear { transform: scale(.91) rotate(10deg); }
  .md-art-wevia:hover .md-window { transform: perspective(1000px) rotateX(9deg) rotateY(-9deg); }
}
@media print {
  .md-hero, .md-about, .md-contact-inner { background: none; }
  .md-hero-inner { min-height: 0; display: block; }
  .md-hero-art, .md-hero-actions { display: none; }
}
