/* ============================================================
   kandz — CSS Design System & Styles
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #10101e;
  --bg-card: #13132a;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-green: #22d3a0;
  --cta-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --border-color: rgba(124, 58, 237, 0.2);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --container: 1200px;
  --transition: 0.3s ease;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-header__helper {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 600px;
  margin: 12px auto 0;
  opacity: 0.75;
  line-height: 1.6;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-weight: 500;
  transition: color var(--transition);
}

.link-arrow:hover {
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--cta-gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn--light {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.btn--light:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.navbar--scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border-color);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.navbar__logo-icon {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links {
  display: flex;
  gap: 28px;
}

.navbar__links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: #fff;
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger span:nth-child(1) { top: 0; }
.navbar__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar__hamburger span:nth-child(3) { bottom: 0; }

.navbar__hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__trust-sep {
  opacity: 0.3;
}

/* Hero visual — illustration */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(34, 211, 160, 0.1) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero__illustration {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  height: auto;
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.3));
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* Hero particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particles i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

.hero__particles i:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s; }
.hero__particles i:nth-child(2)  { left: 25%; top: 70%; animation-delay: 0.8s; }
.hero__particles i:nth-child(3)  { left: 50%; top: 10%; animation-delay: 1.6s; }
.hero__particles i:nth-child(4)  { left: 70%; top: 80%; animation-delay: 2.4s; }
.hero__particles i:nth-child(5)  { left: 85%; top: 30%; animation-delay: 3.2s; }
.hero__particles i:nth-child(6)  { left: 40%; top: 50%; animation-delay: 4s; }
.hero__particles i:nth-child(7)  { left: 15%; top: 85%; animation-delay: 0.4s; }
.hero__particles i:nth-child(8)  { left: 60%; top: 40%; animation-delay: 1.2s; }
.hero__particles i:nth-child(9)  { left: 90%; top: 60%; animation-delay: 2s; }
.hero__particles i:nth-child(10) { left: 35%; top: 25%; animation-delay: 2.8s; }
.hero__particles i:nth-child(11) { left: 75%; top: 15%; animation-delay: 3.6s; }
.hero__particles i:nth-child(12) { left: 55%; top: 90%; animation-delay: 4.4s; }

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-60px); }
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
  transition: filter var(--transition), border-color var(--transition);
}

.benefit-card:hover .benefit-card__icon {
  filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.6)) drop-shadow(0 0 32px rgba(124, 58, 237, 0.3));
  border-color: rgba(124, 58, 237, 0.5);
}

.benefit-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.benefit-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   SUSTAINABILITY
   ============================================================ */
.sustainability {
  padding: 100px 0;
}

.sustainability__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sustainability__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.sustainability__text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.sustainability__text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================================
   TECH SPECS
   ============================================================ */
.specs {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.specs__hero-img {
  text-align: center;
  margin-bottom: 48px;
}

.specs__illustration {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 16px 40px rgba(124, 58, 237, 0.25));
  animation: specFloat 8s ease-in-out infinite;
}

@keyframes specFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

.specs__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.spec-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.spec-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
  transition: filter var(--transition), border-color var(--transition);
}

.spec-card:hover .spec-card__icon {
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.25));
  border-color: rgba(124, 58, 237, 0.4);
}

.spec-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.spec-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Specs table */
.specs__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.specs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs__table th,
.specs__table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs__table th {
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specs__table tbody tr:nth-child(odd) {
  background: rgba(19, 19, 42, 0.5);
}

.specs__table tbody tr:nth-child(even) {
  background: rgba(16, 16, 30, 0.5);
}

.specs__table td:last-child {
  font-family: 'Space Grotesk', monospace;
  color: var(--text-primary);
  font-weight: 500;
}

.specs__table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #1e0a3c, #0d1f3c);
  overflow: hidden;
  text-align: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
}

.cta-banner__icon {
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner__img {
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  max-width: 700px;
  margin: 0 auto 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ============================================================
   USE CASES
   ============================================================ */
.use-cases {
  padding: 100px 0;
}

.use-cases__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.accordion-item__header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-item__chevron {
  flex-shrink: 0;
  color: var(--accent-light);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
  transition: transform var(--transition), filter var(--transition);
}

.accordion-item--active .accordion-item__chevron {
  transform: rotate(180deg);
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}

.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item--active .accordion-item__body {
  max-height: 500px;
}

.accordion-item__body p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Use cases illustration */
.use-cases__img {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(34, 211, 160, 0.2));
  animation: useCaseFloat 7s ease-in-out infinite;
}

@keyframes useCaseFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.02); }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.pricing-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--cta-gradient);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-card__title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card__monthly {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

/* ============================================================
   PRICE SIMULATOR
   ============================================================ */
.simulator {
  padding: 100px 0;
  overflow: hidden;
}

.simulator__card {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-sizing: border-box;
}

/* Controls (left side) */
.simulator__controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.simulator__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.simulator__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.simulator__value {
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Tier toggle buttons */
.simulator__tier-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.simulator__tier-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition),
              color var(--transition), background var(--transition);
}

.simulator__tier-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.simulator__tier-btn--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.08);
}

.simulator__tier-name {
  font-family: var(--font-heading);
  font-weight: 600;
}

.simulator__tier-rate {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* Range slider */
.simulator__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  outline: none;
  transition: border-color var(--transition);
}

.simulator__range:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.simulator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta-gradient);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.simulator__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.simulator__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta-gradient);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.simulator__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Slide animation for hours group */
.simulator__group--hours {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.simulator__group--hours.is-visible {
  max-height: 200px;
  opacity: 1;
}

/* Output wrapper (right side) */
.simulator__output {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.simulator__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
}

.simulator__result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.simulator__total {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.1;
  white-space: nowrap;
}

.simulator__currency {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--accent-green);
  vertical-align: top;
}

.simulator__amount {
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.simulator__amount--updating {
  color: var(--accent-green);
}

.simulator__breakdown {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.simulator__cta {
  width: 100%;
}

/* Simulator responsive */
@media (max-width: 768px) {
  .simulator {
    padding: 72px 0;
  }

  .simulator .section-header {
    margin-bottom: 32px;
  }

  .simulator__card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 20px;
  }

  .simulator__controls {
    gap: 20px;
  }

  .simulator__result {
    padding: 20px 16px;
  }

  .simulator__output {
    gap: 16px;
  }

  .simulator__amount {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .simulator__currency {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.hiw__timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.hiw__timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.hiw__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.hiw__step:last-child {
  margin-bottom: 0;
}

.hiw__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cta-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-left: -48px;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
}

.hiw__content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hiw__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hiw__visual {
  text-align: center;
  margin-top: 56px;
}

.hiw__illustration {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(124, 58, 237, 0.2));
  animation: hiwFloat 7s ease-in-out infinite;
}

@keyframes hiwFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hiw__note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.8;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: 100px 0;
}

.contact__form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__trust {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Form success */
.contact__success {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.contact__success svg {
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 160, 0.5)) drop-shadow(0 0 24px rgba(34, 211, 160, 0.25));
}

.contact__success h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-green);
}

.contact__success p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(6, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__socials a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__socials a:hover {
  color: var(--accent-light);
}

.footer__col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer__bottom a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: #fff;
}

.footer__entity {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 8px;
}

.form-group--checkbox {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    min-height: 280px;
  }

  .hero__illustration {
    max-width: 320px;
  }

  .benefits__grid,
  .specs__cards,
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .sustainability__inner,
  .use-cases__inner {
    grid-template-columns: 1fr;
  }

  .sustainability__image {
    order: -1;
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .navbar__hamburger {
    display: block;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
  }

  .navbar__links {
    flex-direction: column;
    gap: 20px;
  }

  .navbar__links a {
    font-size: 1.1rem;
  }

  .navbar__cta {
    margin-top: 8px;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__visual {
    min-height: 200px;
  }

  .hero__illustration {
    max-width: 260px;
  }

  .specs__illustration {
    max-width: 200px;
  }

  .use-cases__img {
    max-width: 240px;
  }

  .hiw__illustration {
    max-width: 280px;
  }

  .simulator {
    padding: 56px 0;
  }

  .simulator .section-header {
    margin-bottom: 24px;
  }

  .simulator .section-header p {
    font-size: 0.92rem;
  }

  .simulator__card {
    padding: 20px 14px;
    gap: 16px;
  }

  .simulator__controls {
    gap: 14px;
  }

  .simulator__tier-buttons {
    gap: 5px;
  }

  .simulator__tier-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .simulator__tier-rate {
    font-size: 0.75rem;
  }

  .simulator__label {
    font-size: 0.82rem;
  }

  .simulator__output {
    gap: 12px;
  }

  .simulator__result {
    padding: 16px 12px;
  }

  .simulator__result-label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .simulator__amount {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .simulator__currency {
    font-size: 0.9rem;
  }

  .simulator__breakdown {
    font-size: 0.78rem;
  }

  .simulator__range-labels {
    font-size: 0.72rem;
  }

  .simulator__cta {
    font-size: 0.9rem;
    padding: 14px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .cta-banner h2 {
    font-size: 1.4rem;
  }
}
