/* Smart Orchard case study styles. */
:root {
  --bg:#0b121b;
  --panel:#121f2c;
  --line:#2b3d4c;
  --text:#f2f6fa;
  --muted:#a6b5c4;
  --accent:#6de1cf
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.65 Inter,system-ui,-apple-system,Segoe UI,sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
.wrap {
  width:min(1140px,calc(100% - 80px));
  margin:auto
}
.topbar {
  position:sticky;
  top:0;
  z-index:3;
  backdrop-filter:blur(15px);
  background:#0b121be8;
  border-bottom:1px solid #ffffff16
}
.bar {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  font-size:24px;
  font-weight:850;
  letter-spacing:-1.2px
}
.brand span,.accent {
  color:var(--accent)
}
nav {
  display:flex;
  gap:27px;
  font-size:13px;
  color:#c4ced8;
  font-weight:650
}
.back {
  color:var(--accent)
}
.eyebrow {
  font-size:11px;
  letter-spacing:.2em;
  font-weight:750;
  text-transform:uppercase;
  color:var(--accent)
}
.hero {
  padding:75px 0 42px
}
.hero h1 {
  font-size:clamp(47px,7vw,91px);
  letter-spacing:-.065em;
  line-height:1.03;
  margin:18px 0 22px;
  max-width:850px
}
.lead {
  max-width:750px;
  color:#b5c2cf;
  font-size:20px;
  line-height:1.6
}
.facts {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:31px 0 0
}
.pill {
  padding:8px 13px;
  background:#122e35;
  border:1px solid #2f575e;
  color:#caeeea;
  border-radius:50px;
  font-size:12px
}
.heroart {
  border:1px solid #29475b;
  overflow:hidden;
  border-radius:18px;
  background:radial-gradient(ellipse at 65% 45%,#1c4c54,#0d2231 65%,#0b1723);
  min-height:340px;
  position:relative
}
.heroart svg {
  width:100%;
  height:auto;
  display:block
}
.heroart:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#09121bae,transparent 36%);
  pointer-events:none
}
.art-label {
  position:absolute;
  bottom:22px;
  left:26px;
  z-index:1;
  color:#d7f2ef;
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase
}
.section {
  padding:73px 0
}
.section h2 {
  font-size:clamp(31px,4vw,49px);
  letter-spacing:-.055em;
  line-height:1.13;
  margin:10px 0 24px
}
.section p {
  color:#aebfcb;
  line-height:1.8
}
.intro {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:75px
}
.intro p {
  margin-top:0
}
.metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
  margin-top:25px
}
.metric {
  background:#12222e;
  border:1px solid var(--line);
  border-radius:13px;
  padding:21px
}
.metric strong {
  font-size:35px;
  line-height:1.1;
  letter-spacing:-.045em;
  display:block;
  color:var(--accent)
}
.metric span {
  font-size:12px;
  color:#acbdc9
}
.rule {
  height:1px;
  background:var(--line)
}
.arch {
  background:#101b27;
  border-block:1px solid #253b4c
}
.arch-diagram {
  padding:28px;
  background:#0b1520;
  border:1px solid #2b4052;
  border-radius:17px;
  overflow:auto
}
.arch-diagram svg {
  display:block;
  width:100%;
  min-width:650px;
  height:auto
}
.arch-caption {
  font-size:12px!important;
  color:#91a6b6!important;
  margin:18px 0 0
}
.feature-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px
}
.feature {
  background:#121f2c;
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px
}
.feature .num {
  color:var(--accent);
  font-size:12px;
  font-weight:800
}
.feature h3 {
  margin:12px 0;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.035em
}
.feature p {
  font-size:14px;
  margin:0
}
.gallery {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.slot {
  min-height:265px;
  background:linear-gradient(130deg,#132f39,#11202c);
  border:1px dashed #587080;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:25px
}
.slot strong {
  font-size:18px;
  margin-top:12px
}
.slot span {
  color:#a8bec9;
  max-width:300px;
  font-size:13px
}
.slot svg {
  height:35px;
  width:35px;
  stroke:#76dfd3;
  fill:none;
  stroke-width:1.7
}
.wide {
  grid-column:span 2
}
.note {
  border-left:3px solid var(--accent);
  padding:17px 20px;
  background:#15303a;
  color:#cbe4e4;
  font-size:14px;
  border-radius:0 12px 12px 0
}
.next {
  background:#132330;
  border-top:1px solid #2d4353;
  padding:60px 0
}
.next .wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px
}
.next h2 {
  font-size:34px;
  letter-spacing:-.05em;
  line-height:1.1;
  margin:8px 0
}
.btn {
  display:inline-block;
  background:var(--accent);
  color:#0b2529;
  font-weight:800;
  font-size:13px;
  border-radius:9px;
  padding:14px 20px;
  white-space:nowrap
}
footer {
  padding:28px 0;
  color:#8297aa;
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:15px
}
@media(max-width:850px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .intro {
    grid-template-columns:1fr;
    gap:12px
  }
  .feature-grid {
    grid-template-columns:1fr 1fr
  }
  .hero {
    padding-top:50px
  }
}
@media(max-width:600px) {
  .wrap {
    width:calc(100% - 28px)
  }
  .bar {
    height:65px
  }
  nav {
    gap:13px;
    font-size:12px
  }
  .hero h1 {
    font-size:49px
  }
  .lead {
    font-size:16px
  }
  .heroart {
    min-height:0
  }
  .section {
    padding:48px 0
  }
  .metrics {
    grid-template-columns:1fr 1fr
  }
  .feature-grid,.gallery {
    grid-template-columns:1fr
  }
  .wide {
    grid-column:auto
  }
  .slot {
    min-height:200px
  }
  .next .wrap {
    display:block
  }
  .btn {
    margin-top:16px
  }
  footer {
    display:block
  }
}

/* Astro shared header alignment */
.topbar .inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar .inner nav{display:flex;gap:24px}
.topbar .inner .nav-contact{color:#6de1cf}
