/* Sunniebend Tech — tesla.com-inspired static site. No build step, no dependencies. */

:root {
  --ink: #171a20;
  --muted: #5c5e62;
  --line: rgba(23, 26, 32, 0.12);
  --bg: #ffffff;
  --panel: #f4f4f5;
  --white: #ffffff;
  --pill-dark: rgba(23, 26, 32, 0.82);
  --pill-dark-hover: rgba(23, 26, 32, 0.95);
  --accent: #f5b942;
  --accent-deep: #c77f1a;
  --leaf: #2e7d46;
  --radius: 999px;
  --font: "Universal Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 70px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #171a20; color: #fff; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- Header (fixed, transparent over hero) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1400px, 100% - 32px);
  margin-inline: auto;
  position: relative;
}
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand img { height: 63px; width: auto; }
.top-nav { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.top-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 6px;
}
.top-nav a:hover { background: rgba(255, 255, 255, 0.16); }
.top-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header.scrolled, .site-header.menu-open, .site-header.solid {
  color: #fff;
  background: #23262B;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; }
.btn-dark { background: var(--pill-dark); color: #fff; }
.btn-dark:hover { background: var(--pill-dark-hover); }
.btn-outline-w { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn-outline-w:hover { background: rgba(255,255,255,0.22); }
.btn-sm { min-height: 36px; padding: 7px 18px; font-size: 13px; }
.header-cta { white-space: nowrap; border-radius: var(--radius); }
.menu-btn {
  display: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.14);
  color: inherit;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile overlay menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .sheet {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 24px;
  z-index: 49;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero carousel ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: clip;
  background: #101510;
  color: #fff;
  isolation: isolate;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s ease; }
.slide-bg { position: absolute; inset: 0; transform: scale(1.04); transition: transform 6.5s linear; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide-bg.bg-harvest {
  background:
    radial-gradient(1100px 480px at 50% 18%, rgba(245, 185, 66, 0.85), rgba(245, 185, 66, 0) 60%),
    linear-gradient(180deg, #0d1b2a 0%, #274d2d 46%, #7a8c3a 72%, #c99a3c 100%);
}
.slide-bg.bg-harvest::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.28) 0 2px, transparent 2px 72px),
    linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, #3d5a24, #223818);
  clip-path: polygon(0 38%, 12% 30%, 24% 36%, 38% 26%, 52% 34%, 66% 24%, 80% 32%, 100% 26%, 100% 100%, 0 100%);
}
.slide-bg.bg-fields {
  background:
    radial-gradient(900px 420px at 78% 20%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(180deg, #0c1a12 0%, #16351f 45%, #24491f 70%, #314f22 100%);
}
.slide-bg.bg-fields::after {
  content: "";
  position: absolute; inset: 12% 6% 8% 6%;
  background:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000 70%, transparent 100%);
  opacity: 0.5;
}
.slide-bg.bg-bins {
  background:
    radial-gradient(1000px 500px at 50% 12%, rgba(255, 214, 130, 0.9), rgba(255,214,130,0) 62%),
    linear-gradient(180deg, #241a08 0%, #5c4212 48%, #a97c22 78%, #d9a83f 100%);
}
.slide-bg.bg-bins::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.4) 100%), linear-gradient(180deg, #6b5316, #3f3008);
  clip-path: polygon(0 45%, 100% 20%, 100% 100%, 0 100%);
  opacity: 0.9;
}
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.42) 0, rgba(0,0,0,0.08) 32%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45) 100%); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 190px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
  min-height: inherit;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 12px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero .sub {
  margin: 0 0 8px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  max-width: 34em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero .sub strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-global-ctas {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: min(1200px, 100% - 48px);
}
.hero-note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,0.78); }

/* Phone mockups (pure CSS placeholders — swap for screenshots later) */
.hero-visual { display: flex; justify-content: center; }
.device-shot {
  width: min(300px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.phone-mockup {
  width: min(270px, 64vw);
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2e35, #0e1116);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.22);
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  color: #1c1e21;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.phone-screen .screen-shot {
  width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: top center;
  display: block;
  flex: 1;
  background: #000;
}
.screen-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; font-size: 12px; font-weight: 700; color: #2b2e33; }
.screen-bar .dot { width: 64px; height: 18px; border-radius: 999px; background: #14161a; }
.screen-app { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.app-head { display: flex; align-items: center; gap: 10px; }
.app-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #2e7d46, #f5b942); display: grid; place-items: center; color: #fff; font-weight: 800; }
.app-head b { font-size: 15px; display: block; }
.app-head span { font-size: 12px; color: #6b7078; }
.app-card { background: #fff; border: 1px solid #e7e3d8; border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.app-card h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7078; }
.big-reading { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 8px; }
.pill.safe { background: #e6f4ea; color: #1e7e34; border: 1px solid #bfe3c9; }
.pill.warn { background: #fff4d6; color: #8a5a00; border: 1px solid #f0d48a; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.keypad i { font-style: normal; text-align: center; background: #f1efe7; border-radius: 10px; padding: 8px 0; font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { font-size: 11px; font-weight: 700; background: #eef2ff; border: 1px solid #d6defc; padding: 4px 8px; border-radius: 999px; }
.map-fake { height: 170px; border-radius: 12px; background: linear-gradient(180deg, #274d2d, #4c7a35), repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,0.25) 0 1px, transparent 1px 22px); position: relative; overflow: hidden; }
.map-fake::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at 30% 40%, rgba(245,185,66,0.7), transparent 70%), radial-gradient(90px 50px at 70% 65%, rgba(255,255,255,0.5), transparent 70%); }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #ffd23e; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.bin-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 8px 0; border-top: 1px dashed #e2ded2; }
.bin-row:first-of-type { border-top: 0; }
.meter { height: 10px; border-radius: 999px; background: #ece9df; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2e7d46, #f5b942); }
.tabbar { margin-top: auto; display: flex; background: #fff; border-top: 1px solid #e7e3d8; }
.tabbar span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 10px 0 14px; color: #8a8f98; }
.tabbar span.on { color: #171a20; }

/* Carousel chrome */
.hero-chrome {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 0 0 22px;
}
.hero-chrome .row {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dots { display: flex; gap: 8px; }
.dots button { width: 28px; height: 4px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; }
.dots button[aria-selected="true"] { background: #fff; }
.hero-arrows { margin-left: auto; display: flex; gap: 8px; }
.hero-arrows button {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
}
.hero-arrows button:hover { background: none; color: #fff; opacity: 0.75; }
.scroll-hint { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; display: none; }

/* ---------- Tesla-style stacked sections ---------- */
.stack section { min-height: 92svh; display: flex; align-items: center; position: relative; overflow: clip; }
.band { width: min(var(--max), 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 96px 0; }
.band .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.band h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.band p { font-size: 17px; line-height: 1.6; color: #393c41; margin: 0 0 18px; }
.band .links { display: flex; gap: 12px; flex-wrap: wrap; }
.link-more { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.visual-card {
  border-radius: 24px;
  min-height: 420px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.visual-card.v-harvest { background: linear-gradient(180deg, #eef5e9, #fbf3dd); }
.visual-card.v-green { background: linear-gradient(180deg, #e9f1f4, #e7f0e4); }
.visual-card.v-about { background: linear-gradient(180deg, #f3f0ff, #fdf3e3); }
.visual-card .mini { width: min(260px, 80%); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.badge-row span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #171a20; color: #fff; padding: 6px 10px; border-radius: 999px; }
.badge-row span.alt { background: #fff; color: #171a20; border: 1px solid var(--line); }

/* Subpage hero */
.page-hero { padding: calc(var(--header-h) + 64px) 0 48px; background: #0f1410; color: #fff; position: relative; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 380px at 50% 0%, rgba(245,185,66,0.5), transparent 65%), linear-gradient(180deg, rgba(255,255,255,0.08), transparent); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.02em; margin: 12px 0; }
.page-hero p.lede { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 46em; }
.page-hero.green { background: #0e1a16; }
.page-hero.plain { background: #171a20; }
.content { padding: 56px 0 80px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: #393c41; line-height: 1.6; font-size: 15px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.specs li { line-height: 1.6; color: #393c41; }

/* Policy article (privacy, terms) */
.policy { max-width: 880px; }
.policy .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.policy .meta span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; color: #393c41; }
.policy h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.policy h2:first-of-type { border-top: 0; margin-top: 28px; }
.policy h3 { font-size: 17px; margin: 22px 0 8px; }
.policy p, .policy li { font-size: 16px; line-height: 1.65; color: #23262b; }
.policy ul, .policy ol { padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy blockquote { margin: 20px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; }
.policy blockquote p { margin: 6px 0; font-size: 14.5px; }
.policy table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px; line-height: 1.55; background: #fff; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.policy th { background: var(--panel); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.policy code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.policy a { text-underline-offset: 3px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0 0 4px; }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Focus */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 210px; text-align: left; gap: 24px; }
  .hero-visual { order: 2; }
  .phone-screen { min-height: 520px; }
  .phone-screen .screen-shot { height: 520px; }
  .band { grid-template-columns: 1fr; padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-global-ctas { bottom: 72px; width: calc(100% - 32px); }
  .hero-global-ctas .btn { flex: 1 1 auto; text-align: center; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide-bg { transition: none; }
}
