@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --bg: #040A05;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(16, 185, 129, 0.45);
  --orange: #10B981;
  --red: #047857;
  --text-1: #FFFFFF;
  --text-2: #9CA3AF;
  --text-3: #6B7280;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('./jungle-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  /* Subtle blend so it doesn't overpower text */
  /*mix-blend-mode: soft-light;*/
  /* Blends beautifully with the dark mossy background */
  z-index: -2;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ===========================
   BACKGROUND ORBS
=========================== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #10B98133, transparent 70%);
  top: -200px;
  left: -200px;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #EAB30815, transparent 70%);
  /* Sunlight yellow */
  bottom: 10%;
  right: -100px;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #04785740, transparent 70%);
  top: 50%;
  left: 50%;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}

/* ===========================
   UTILITY
=========================== */
.gradient-text {
  background: linear-gradient(120deg, #34D399, #FACC15);
  /* Vibrant green to sunlight gold */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-subtitle strong {
  color: var(--text-1);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

/* ===========================
   NAVBAR
=========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 16, 0.442);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-1);
}

.nav-cta {
  white-space: nowrap;
}

.mobile-menu-cta {
  display: none;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 90vh;
}

.hero-content {
  flex: 1.2;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-sub strong {
  color: var(--text-1);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  white-space: nowrap;
  position: relative;
  margin-bottom: 2.5rem;
  z-index: 10;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 1.25rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  padding-right: 0;
  border-right: none;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
  min-width: 400px;
  flex-shrink: 0;
}

/* Spotlight to brighten the thermostat in the center without affecting the outer leaves */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 40%, transparent 70%);
  mix-blend-mode: overlay;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

/* Sunlight rays filtering down */
.hero-image-wrap::before {
  display: none;
}

.hero-glow-ring {
  display: none;
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.hero-product-img {
  position: relative;
  z-index: 2;
  width: 130%;
  max-width: 900px;
  margin-right: -15%;
  border-radius: 24px;
  animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

/* ===========================
   AI SECTION — THE STAR
=========================== */
.ai-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ai-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.1), transparent 60%);
  pointer-events: none;
}

.ai-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
}

.ai-step {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(7.5px);
  border: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ai-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-step:hover {
  border-color: var(--border-glow);
  background: rgba(16, 185, 129, 0.04);
}

.ai-step-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.ai-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.ai-step p {
  font-size: 0.88rem;
  color: var(--text-2);
}

.ai-step strong {
  color: var(--text-1);
}

.ai-cta-box {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-align: left;
  flex-wrap: wrap;
}

.ai-cta-box p {
  font-size: 0.88rem;
  color: var(--text-2);
  flex: 1;
  min-width: 250px;
}

/* ===========================
   CONTROL / ANYWHERE + LOCAL
=========================== */
.control-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.dual-access {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.access-card {
  flex: 1;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(7.5px);
  transition: all 0.4s ease;
}

.cloud-card {
  border-color: rgba(16, 185, 129, 0.25);
}

.local-card {
  border-color: rgba(16, 185, 129, 0.25);
}

.access-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.12);
}

.access-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.access-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.access-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.access-list li {
  font-size: 0.95rem;
  color: var(--text-2);
}

.access-vs {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-3);
  padding: 0 0.5rem;
  white-space: nowrap;
}

.resilience-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.06);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.95rem;
  color: var(--text-2);
}

.resilience-banner span {
  font-size: 2rem;
}

.resilience-banner strong {
  color: var(--text-1);
}





/* ===========================
   FEATURES GRID — REDESIGNED
=========================== */
.features-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* The feature grid items perfectly fill the columns now (21 items = 7 rows of 3).
   If you add more features in the future and have an odd number, you can re-enable centering rules. */

/* === Feature Card === */
.fcard {
  position: relative;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, rgba(25, 25, 40, 0.5) 0%, rgba(12, 12, 18, 0.7) 100%);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
  transform: translateY(24px);
}

.fcard.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inner radial glow */
.fcard-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.4s;
}

.fcard:hover .fcard-glow {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
}

.fcard:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(16, 185, 129, 0.04);
}

/* Centered glowing icon ring */
.fcard-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), 0 0 50px rgba(16, 185, 129, 0.04);
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.fcard:hover .fcard-icon-ring {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25), 0 0 70px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.fcard-icon-ring span {
  font-size: 1.5rem;
}

.fcard h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.fcard p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---- Integrated Preview Panel ---- */
.fcard-preview {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.fcard-preview::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
}

/* --- Preview: Temperature Gauge Rings --- */
.fp-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.fp-gauge svg {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.15));
}

.fp-gauge-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  white-space: nowrap;
}

/* --- Preview: Day/Night Segment --- */
.fp-daynight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.fp-dn-segment {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-2);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-dn-segment span {
  font-size: 0.85rem;
}

.fp-dn-segment em {
  font-style: normal;
  color: var(--orange);
  margin-left: 0.15rem;
}

.fp-dn-arrow {
  color: rgba(16, 185, 129, 0.4);
  font-size: 0.8rem;
}

/* --- Preview: Sparkline Chart --- */
.fp-sparkline {
  width: 100%;
  height: auto;
  max-height: 50px;
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.1));
}

/* --- Preview: Humidity Bars --- */
.fp-bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  width: 100%;
  justify-content: center;
}

.fp-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.fp-bar {
  width: 8px;
  height: var(--h, 50%);
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.25);
  transition: all 0.3s;
}

.fp-bar-active {
  background: linear-gradient(to top, var(--orange), var(--red)) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.fcard:hover .fp-bar {
  background: rgba(16, 185, 129, 0.35);
}

.fp-bars-label {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.fp-bars-label span {
  font-size: 0.55rem;
  font-weight: 700;
  opacity: 0.6;
  vertical-align: super;
}

/* --- Preview: Light Schedule --- */
.fp-schedule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  justify-content: center;
}

.fp-sch-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fp-sch-label {
  font-size: 0.55rem;
  font-weight: 800;
  color: #4ade80;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.1);
  letter-spacing: 0.05em;
}

.fp-sch-off {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.1) !important;
}

.fp-sch-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.fp-sch-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.fp-sch-badge {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--orange);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.08em;
}

/* --- Preview: Fan Widget --- */
.fp-fan-widget {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.fp-fan-spinner {
  font-size: 1.8rem;
  animation: spin-fan 2.5s linear infinite;
}

@keyframes spin-fan {
  to {
    transform: rotate(360deg);
  }
}

.fp-fan-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.fp-fan-status {
  font-size: 0.55rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.1em;
}

.fp-fan-temp {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
}

/* --- Preview: Mode Selector --- */
.fp-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-mode {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.fp-mode-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--orange);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* --- Preview: Name Tags --- */
.fp-name-demo {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.fp-name-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

/* --- Preview: Toggle Switches --- */
.fp-toggles {
  display: flex;
  gap: 1rem;
}

.fp-tog {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fp-tog span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-3);
}

.fp-tog-track {
  width: 32px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s;
}

.fp-tog-on {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.fp-tog-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-3);
  position: absolute;
  left: 2px;
  top: 1px;
  transition: all 0.3s;
}

.fp-tog-on .fp-tog-thumb {
  left: auto;
  right: 2px;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* --- Preview: Temperature Status Bar --- */
.fp-temp-bar {
  width: 100%;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.fp-temp-fill {
  width: var(--w, 50%);
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.08));
}

.fp-temp-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.03em;
}

/* --- Preview: Color Swatches --- */
.fp-swatches {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.fp-sw {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  cursor: default;
}

.fp-sw-active {
  border-color: var(--orange) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ===========================
   SAFETY SECTION
=========================== */
.safety-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.safety-bg-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.08), transparent 70%);
  pointer-events: none;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.safety-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(7.5px);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
  position: relative;
}

.safety-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.safety-card:hover {
  border-color: var(--border-glow);
  background: rgba(16, 185, 129, 0.04);
}

.safety-layer-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  margin-bottom: 1.2rem;
}

.safety-icon-wrap {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.safety-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.safety-card p {
  font-size: 0.9rem;
  color: var(--text-2);
}

.safety-card strong {
  color: var(--text-1);
}

.alert-text {
  color: #ef4444; /* danger red */
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.2);
}

.danger-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15);
}

.icon-danger {
  font-size: 2rem;
  color: #ef4444;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.danger-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.danger-card-small {
  padding: 1.5rem !important;
}

.danger-card-small .icon-danger {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.danger-card-small h4 {
  font-size: 1.1rem !important;
  margin-bottom: 0.4rem !important;
}

.danger-card-small p {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

@media (max-width: 768px) {
  .danger-inline-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }
  .danger-card-small {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}


.alarm-feature {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(4, 120, 87, 0.04));
  backdrop-filter: blur(7.5px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

.alarm-feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.alarm-icon {
  font-size: 3rem;
}

.alarm-body {
  flex: 1;
  min-width: 250px;
}

.alarm-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.alarm-body p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ===========================
   HUSBANDRY
=========================== */
.husbandry-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.husbandry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.husb-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(7.5px);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
}

.husb-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.husb-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  background: rgba(16, 185, 129, 0.04);
}

.husb-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.husb-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.husb-card p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ===========================
   PHYSICAL BUTTONS
=========================== */
.buttons-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.btn-feat {
  flex: 1;
  min-width: 200px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(7.5px);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
}

.btn-feat.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-feat:hover {
  border-color: var(--border-glow);
  background: rgba(16, 185, 129, 0.04);
  transform: translateY(-4px);
}

.btn-feat-key {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--orange);
  margin-bottom: 1rem;
}

.combo-key span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
}

.btn-feat p {
  font-size: 0.88rem;
  color: var(--text-2);
}

.btn-feat.combo {
  border-color: rgba(4, 120, 87, 0.25);
}

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
}

/* ===========================
   LIFESTYLE SHOWCASE
=========================== */
.lifestyle-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.lifestyle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 4rem;
  overflow: hidden;
}

.lifestyle-text {
  flex: 1;
  min-width: 300px;
}

.lifestyle-image-wrap {
  flex: 2;
  display: flex;
  justify-content: flex-end;
}

.lifestyle-img {
  width: 100%;
  max-width: 1200px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .lifestyle-container {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }

  .lifestyle-text p {
    text-align: center !important;
    margin: 0 auto !important;
  }

  .lifestyle-image-wrap {
    justify-content: center;
    margin-top: 2rem;
  }
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-logo span {
  color: var(--orange);
}

.footer-model {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ===========================
   RESPONSIVE
=========================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

@media (max-width: 1280px) {
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fix overlapping hero text on medium screens */
  .hero {
    flex-direction: column;
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
    text-align: center;
    gap: 2rem;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat {
    padding-right: 0;
    border-right: none;
  }

  .hero-image-wrap {
    width: 100%;
    max-width: 460px;
    min-width: 0;
    margin: 4rem auto 0;
    transform: translateY(0);
  }

  .hero-image-wrap picture {
    display: block;
    width: 100%;
  }

  .hero-product-img {
    width: 100%;
    margin-right: 0;
  }

  .hero-image-wrap::before {
    top: -100px;
  }

  /* Navbar mobile menu */
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .mobile-menu-cta {
    display: inline-flex !important;
    align-self: center;
    margin-top: 1rem;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .hero-image-wrap {
    max-width: 380px;
  }

  .dual-access {
    flex-direction: column;
  }

  .access-vs {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .husbandry-grid {
    grid-template-columns: 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .alarm-feature {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* ===========================
   LARGE SCREEN ADJUSTMENTS
=========================== */
@media (min-width: 1200px) {
  .hero-product-img {
    width: 160%;
    max-width: 1200px;
    margin-left: -25%;
  }
}

@media (min-width: 1600px) {
  .hero-product-img {
    width: 200%;
    max-width: 1600px;
    margin-right: -50%;
  }
}

/* =====================================================================
   DASHBOARD SHOWCASE BLOCKS (3D Tilted UI)
   ===================================================================== */
.showcase-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(25, 25, 40, 0.3), rgba(12, 12, 18, 0.6));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.showcase-block.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
  text-align: left;
}

.showcase-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.showcase-text p {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 1.1rem;
}

.showcase-visual {
  flex: 1.4;
  perspective: 1200px;
  position: relative;
}

.showcase-visual img,
.showcase-visual video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
  transform-style: preserve-3d;
}

/* 3D Tilt Left */
.showcase-visual.tilt-left img,
.showcase-visual.tilt-left video {
  transform: rotateY(-15deg) rotateX(5deg) scale(0.95);
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.6), -5px 10px 20px rgba(16, 185, 129, 0.15);
}

.showcase-visual.tilt-left:hover img,
.showcase-visual.tilt-left:hover video {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
  box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.3);
}

/* 3D Tilt Right */
.showcase-visual.tilt-right img,
.showcase-visual.tilt-right video {
  transform: rotateY(15deg) rotateX(5deg) scale(0.95);
  box-shadow: 20px 30px 60px rgba(0, 0, 0, 0.6), 5px 10px 20px rgba(255, 90, 0, 0.15);
}

.showcase-visual.tilt-right:hover img,
.showcase-visual.tilt-right:hover video {
  transform: rotateY(5deg) rotateX(2deg) scale(1.02);
  box-shadow: 10px 15px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 90, 0, 0.3);
}

/* 3D Tilt Up (Floating) */
.showcase-visual.tilt-up img,
.showcase-visual.tilt-up video {
  transform: rotateX(10deg) translateY(20px) scale(0.95);
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.6), 0 20px 40px rgba(0, 180, 255, 0.15);
}

.showcase-visual.tilt-up:hover img,
.showcase-visual.tilt-up:hover video {
  transform: rotateX(0deg) translateY(0) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 180, 255, 0.3);
}

@media (max-width: 992px) {

  .showcase-block,
  .showcase-block.reverse {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .showcase-text {
    text-align: center;
  }

  .showcase-visual.tilt-left img,
  .showcase-visual.tilt-left video,
  .showcase-visual.tilt-right img,
  .showcase-visual.tilt-right video,
  .showcase-visual.tilt-up img,
  .showcase-visual.tilt-up video {
    transform: scale(0.98);
    /* Disable extreme tilts on mobile to prevent overflow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .showcase-visual:hover img,
  .showcase-visual:hover video {
    transform: scale(1) !important;
  }
}

/* =====================================================================
   PREORDER / MAILLIST PAGE
   ===================================================================== */
.maillist-main {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.preorder-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.preorder-img-col {
  flex: 1;
  min-width: 300px;
  width: 100%;
  max-width: 500px;
}

.preorder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.2));
  border-radius: 16px;
}

.preorder-text-col {
  flex: 1;
  min-width: 350px;
  width: 100%;
}

.preorder-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1;
}

@media (max-width: 768px) {
  .maillist-main {
    padding: 2rem 1rem;
    /* Less padding on mobile */
    align-items: flex-start;
  }

  .preorder-card {
    padding: 1.5rem;
    /* Stop inner padding from squishing content */
    gap: 2rem;
    border-radius: 16px;
    margin-top: 1rem;
  }

  .preorder-img-col,
  .preorder-text-col {
    min-width: 100%;
    /* Force stacking */
  }

  .preorder-title {
    font-size: 2rem;
    /* Make heading fit better */
  }

  /* --- Mobile Expandable Sections --- */
  .mobile-expandable {
    position: relative;
    max-height: 800px; /* Adjust based on how much content to show initially */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }
  
  .mobile-expandable::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .mobile-expandable.expanded {
    max-height: 15000px; /* Increased to accommodate the very long Features grid on mobile */
  }
  
  .mobile-expandable.expanded::after {
    opacity: 0;
  }
  
  .read-more-btn {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 3rem auto;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .read-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
  }
}

/* Hide the read-more button on desktop */
@media (min-width: 769px) {
  .read-more-btn {
    display: none !important;
  }
}