/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f7f9fc;
  --bg2:       #ffffff;
  --bg3:       #eef2f8;
  --card:      #ffffff;
  --border:    rgba(15,23,42,0.12);
  --text:      #0f172a;
  --muted:     #475569;
  --accent:    #f59e0b;
  --accent2:   #3b82f6;
  --solar:     #fbbf24;
  --battery:   #10b981;
  --grid:      #6366f1;
  --house:     #38bdf8;
  --radius:    1rem;
  --shadow:    0 10px 30px rgba(15,23,42,0.08);
  --nav-bg:    rgba(255,255,255,0.82);
  --scroll-thumb: rgba(100,116,139,0.5);
  --btn-primary-text: #0f172a;
  --btn-outline-hover-border: rgba(15,23,42,0.3);
  --btn-outline-hover-bg: rgba(15,23,42,0.04);
  --status-bg: linear-gradient(135deg, #e8eef8 0%, #f5f8fd 100%);
  --input-bg: rgba(15,23,42,0.03);
  --progress-bg: rgba(15,23,42,0.12);
  --grid-line: rgba(15,23,42,0.06);
}

html[data-theme="dark"] {
  --bg:        #0a0e1a;
  --bg2:       #0f1423;
  --bg3:       #131929;
  --card:      #161d30;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8eaf0;
  --muted:     #8892a4;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --nav-bg:    rgba(10,14,26,0.85);
  --scroll-thumb: #2a3550;
  --btn-primary-text: #0a0e1a;
  --btn-outline-hover-border: rgba(255,255,255,0.25);
  --btn-outline-hover-bg: rgba(255,255,255,0.04);
  --status-bg: linear-gradient(135deg, #0d1423 0%, #0f1726 100%);
  --input-bg: rgba(255,255,255,0.05);
  --progress-bg: rgba(255,255,255,0.07);
  --grid-line: rgba(255,255,255,0.025);
}

html { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); }

body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 3px; }

/* ─── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-feature-settings: 'ss01'; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1rem; line-height: 1.75; color: var(--muted); }

/* ─── Layout helpers ───────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 6.5rem 0; }

/* ─── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none;
}
.nav-logo svg { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.lang-switcher {
  display: flex; gap: 0.4rem; align-items: center;
}
.theme-switcher {
  display: flex; gap: 0.4rem; align-items: center;
}
.lang-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 0.25rem 0.6rem; border-radius: 0.4rem; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.theme-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  width: 2rem; height: 2rem; border-radius: 0.4rem; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,0.08);
}
.theme-btn.active, .theme-btn:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,0.08);
}

/* hamburger for mobile */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.ham span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .ham { display: flex; }
  .nav-links {
    position: absolute; top: 4rem; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 1rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; width: 100%; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 7rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 70% 55% at 15% 40%, rgba(245,158,11,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(59,130,246,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% -5%, rgba(245,158,11,0.07) 0%, transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5rem;
  row-gap: 0;
  align-items: center;
  max-width: 1140px;
  width: 100%;
}

.hero-text {
  display: flex; flex-direction: column; align-items: flex-start;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent); padding: 0.35rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.75rem; animation: pulse-border 2.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.hero-text h1 { max-width: 600px; margin-bottom: 1.5rem; text-align: left; }
.accent-text  { color: var(--accent); }
.hero-text .sub {
  max-width: 500px; font-size: 1.1rem; margin-bottom: 2.75rem;
  text-align: left; line-height: 1.8;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; margin-top: auto; }

/* ── Hero product visual ── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  isolation: isolate;
}

.hero-device-frame {
  position: relative; z-index: 1;
  background: linear-gradient(145deg, #1c2640, #0e1628);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 1.75rem;
  padding: 1rem;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    0 32px 80px rgba(0,0,0,0.35),
    0 0 60px rgba(245,158,11,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: float 5s ease-in-out infinite;
  max-width: 420px; width: 100%;
}
.hero-device-frame::before {
  content: '';
  position: absolute; top: -1px; left: 20%; right: 20%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  border-radius: 0 0 4px 4px; opacity: 0.85;
}
.hero-device-frame img {
  width: 100%; border-radius: 1.2rem;
  display: block;
}

.hero-glow {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes float {
  0%,100% { transform: translateY(0) rotateY(-2deg); }
  50%      { transform: translateY(-14px) rotateY(2deg); }
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.75rem; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: var(--btn-primary-text); font-weight: 700;
  padding: 0.9rem 2.25rem; border-radius: 0.75rem; text-decoration: none;
  font-size: 0.95rem; transition: all 0.22s; border: none; cursor: pointer;
  font-family: inherit; letter-spacing: -0.01em;
}
.btn-primary:hover { background: #fbbf24; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,158,11,0.38); }

.btn-outline {
  background: transparent; color: var(--text); font-weight: 600;
  padding: 0.9rem 2.25rem; border-radius: 0.75rem; text-decoration: none;
  font-size: 0.95rem; border: 1px solid var(--border); transition: all 0.22s;
  letter-spacing: -0.01em;
}
.btn-outline:hover { border-color: var(--btn-outline-hover-border); background: var(--btn-outline-hover-bg); transform: translateY(-2px); }

/* ─── Flow / Product visuals ────────────────────────────────── */
.flow-section {
  background: var(--bg2);
  padding: 6.5rem 0;
}
.flow-section h2 { text-align: center; margin-bottom: 0.75rem; }
.flow-section .sub { text-align: center; max-width: 560px; margin: 0 auto 3rem; }

/* gallery showing multiple product photos side by side */
.product-gallery {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
  align-items: center;
}
.product-gallery .photo-panel {
  flex: 1 1 320px;
  max-width: 480px;
}
.product-gallery .photo-frame {
  padding: 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-gallery img {
  width: 100%;
  border-radius: 0.8rem;
  object-fit: cover;
}

.flow-wrapper {
  display: flex; gap: 3rem; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
}

.device-mockup {
  background: linear-gradient(145deg, #1a2235, #0f1726);
  border: 2px solid #2a3550;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: var(--shadow), 0 0 60px rgba(245,158,11,0.08);
  width: 320px; flex-shrink: 0;
  position: relative;
}
.device-mockup::before {
  content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 0 0 4px 4px;
}
.device-screen {
  background: #060a14; border-radius: 0.75rem; overflow: hidden;
  border: 1px solid #1a2235;
}
.device-screen img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef3fb;
}
.device-topbar {
  background: #0d1220; padding: 0.5rem 0.75rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #1a2235;
}
.device-topbar span { font-size: 0.65rem; color: var(--muted); }
.device-topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.device-caption {
  text-align:center; font-size:0.72rem; color:var(--muted); margin-top:0.75rem;
}

.photo-panel {
  flex: 1 1 420px;
  min-width: 280px;
  background: linear-gradient(135deg, var(--card), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame {
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.photo-frame img {
  width: 100%;
  border-radius: 1rem;
  background: #dbe4f0;
}
.visual-caption {
  padding: 1rem 1.25rem 1.25rem;
}
.visual-caption strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.visual-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.28s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.12);
  border-color: rgba(245,158,11,0.25);
}
html[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.feature-card:hover::after { opacity: 1; }

/* stagger reveal for feature cards */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.10s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.20s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.30s; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.6rem; }

/* Fronius compatibility card – visual highlight */
.feature-card--compat {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 1.25rem;
  align-items: start;
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(59,130,246,0.04) 100%);
  border-color: rgba(99,102,241,0.25);
}
.feature-card--compat::after {
  background: linear-gradient(90deg, var(--accent2), #818cf8);
  opacity: 1;
}
.feature-card--compat .feature-icon {
  grid-row: span 2;
  align-self: center;
  margin-bottom: 0;
  width: 56px; height: 56px; font-size: 1.7rem;
}
.feature-card--compat h3 { grid-column: 2; margin-bottom: 0.4rem; }
.feature-card--compat p  { grid-column: 2; }


/* ─── How it works ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 3rem; position: relative;
}
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(15,23,42,0.10);
  border-color: rgba(245,158,11,0.22);
}
html[data-theme="dark"] .step-card:hover { box-shadow: 0 16px 44px rgba(0,0,0,0.40); }
.step-num {
  font-size: 4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
  position: absolute; top: 0.25rem; right: 1rem; line-height: 1; user-select: none;
}
.step-icon { font-size: 2rem; margin-bottom: 0.85rem; }
.step-card h3 { margin-bottom: 0.6rem; }

/* stagger step cards */
.step-card:nth-child(1) { transition-delay: 0.05s; }
.step-card:nth-child(2) { transition-delay: 0.12s; }
.step-card:nth-child(3) { transition-delay: 0.19s; }
.step-card:nth-child(4) { transition-delay: 0.26s; }


/* ─── Use Cases ────────────────────────────────────────────── */
.use-cases { background: var(--bg2); }
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.use-card {
  background: linear-gradient(135deg, var(--card), var(--bg3));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.28s, transform 0.28s, box-shadow 0.28s;
}
.use-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(15,23,42,0.09);
}
html[data-theme="dark"] .use-card:hover { box-shadow: 0 16px 44px rgba(0,0,0,0.4); }
.use-card-icon { font-size: 2.2rem; }
.use-card h3 { color: var(--text); }

/* stagger use-cards */
.use-card:nth-child(1) { transition-delay: 0.05s; }
.use-card:nth-child(2) { transition-delay: 0.10s; }
.use-card:nth-child(3) { transition-delay: 0.15s; }
.use-card:nth-child(4) { transition-delay: 0.20s; }
.use-card:nth-child(5) { transition-delay: 0.25s; }
.use-card:nth-child(6) { transition-delay: 0.30s; }


/* ─── Specs ────────────────────────────────────────────────── */
.specs-table {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.specs-table th, .specs-table td {
  padding: 1.1rem 1.5rem; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.specs-table th { color: var(--muted); font-weight: 500; width: 38%; }
.specs-table td { color: var(--text); font-weight: 500; }
.specs-table tr { transition: background 0.2s; }
.specs-table tr:hover td, .specs-table tr:hover th { background: rgba(245,158,11,0.04); }
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }


/* ─── Signup / Status ──────────────────────────────────────── */
.status-section {
  background: var(--status-bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.status-section::before {
  content: '';
  position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.status-card {
  max-width: 640px; margin: 0 auto; text-align: center; position: relative;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35);
  color: #818cf8; padding: 0.35rem 1rem; border-radius: 9999px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}
.status-card h2 { margin-bottom: 1rem; }
.status-card p  { margin-bottom: 2rem; }


.signup-form {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}
.signup-form input[type="email"] {
  flex: 1 1 260px; padding: 0.85rem 1.25rem; border-radius: 0.65rem;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.signup-form input[type="email"]::placeholder { color: var(--muted); }
.signup-form input[type="email"]:focus { border-color: var(--accent); }

.consent-wrap {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-wrap input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.consent-wrap label a {
  color: var(--accent2);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: none; color: var(--battery); font-size: 0.9rem; margin-top: 1rem;
  align-items: center; gap: 0.5rem; justify-content: center;
}
.form-success.show { display: flex; }

.form-error {
  display: none; color: #dc2626; font-size: 0.9rem; margin-top: 1rem;
  align-items: center; gap: 0.5rem; justify-content: center;
}

html[data-theme="dark"] .form-error {
  color: #fca5a5;
}

.form-error.show { display: flex; }

/* ─── Progress bar ─────────────────────────────────────────── */
.progress-wrap { margin-top: 3rem; text-align: center; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem;
}
.progress-bar {
  height: 6px; background: var(--progress-bg); border-radius: 9999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 65%;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  border-radius: 9999px; animation: grow 1.5s ease-out forwards;
}
@keyframes grow { from { width: 0; } to { width: 65%; } }

/* ─── About ────────────────────────────────────────────────── */
.about-inner {
  display: flex; gap: 3.5rem; align-items: center; flex-wrap: wrap;
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(245,158,11,0.08), 0 0 0 16px rgba(245,158,11,0.04);
}
.about-text { flex: 1; min-width: 260px; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; }
.github-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent2); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}
.github-link:hover { color: #93c5fd; gap: 0.75rem; }


/* ─── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-meta { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ─── Section headings ─────────────────────────────────────── */
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-head { margin-bottom: 0.85rem; }
.section-sub  { max-width: 560px; }

/* ─── Subtle grid bg ───────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.accent-text  { color: var(--accent); }
[data-lang] { display: none; }
[data-lang].active { display: initial; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* inline elements that need block display when active */
p[data-lang].active,
div[data-lang].active,
li[data-lang].active,
span[data-lang].active { display: block; }
a[data-lang].active { display: inline; }

/* ─── Animate on scroll (simple) ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .flow-wrapper {
    gap: 1.5rem;
  }

  .device-mockup,
  .photo-panel {
    width: 100%;
    max-width: 520px;
  }

  /* hero: stack to single column */
  .hero-content {
    grid-template-columns: 1fr;
    row-gap: 3.5rem;
    column-gap: 0;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-text h1 { text-align: center; }
  .hero-text .sub { text-align: center; max-width: 520px; }
  .hero-ctas { justify-content: center; }
  .hero-visual {
    order: -1;
    margin-bottom: 0; /* row-gap handles spacing */
  }
  .hero-device-frame { max-width: 320px; }
}

@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }
  .flow-section { padding: 4.5rem 0; }
  .hero { padding-top: 6.5rem; }
  .hero-ctas,
  .signup-form,
  .footer-links,
  .footer-inner {
    align-items: stretch;
  }
  .btn-primary,
  .btn-outline,
  .signup-form input[type="email"] {
    width: 100%;
  }
  .progress-label {
    gap: 0.5rem;
  }
  .feature-card--compat {
    grid-template-columns: 1fr;
  }
  .feature-card--compat .feature-icon {
    grid-row: auto;
  }
  .feature-card--compat h3 { grid-column: 1; }
  .feature-card--compat p  { grid-column: 1; }
  .hero-device-frame { max-width: 260px; }
}

