/* ============================================
   Smart Spaces — Stylesheet
   ============================================ */

:root {
  --navy-950: #0a0f1c;
  --navy-900: #0f172a;
  --navy-800: #17213a;
  --navy-700: #1f2c4d;
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #ffffff;
  --paper-soft: #f6f8fc;
  --border: #e5e9f2;

  --cyan: #22d3ee;
  --indigo: #818cf8;
  --emerald: #34d399;
  --gradient: linear-gradient(135deg, var(--cyan), var(--indigo));

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.18);

  --container: 1180px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 10px 16px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #061018;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-900);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
.logo em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color .18s ease; position: relative; }
.main-nav a:hover { color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; margin: 0 auto; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, #101c36 0%, var(--navy-950) 60%);
  padding: 90px 0 110px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.glow-1 { width: 420px; height: 420px; background: var(--cyan); top: -120px; right: -60px; }
.glow-2 { width: 360px; height: 360px; background: var(--indigo); bottom: -140px; left: -80px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: #fff; margin-bottom: 18px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #b9c3da; font-size: 1.08rem; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Hero device mockup ---------- */
.hero-visual { position: relative; }
.device-frame {
  background: linear-gradient(160deg, #1c2740, #0e1526);
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.tablet-frame { max-width: 460px; margin: 0 auto; }
.device-notch { width: 60px; height: 5px; background: rgba(255,255,255,0.15); border-radius: 3px; margin: 0 auto 10px; }
.device-notch.small { width: 40px; }

.app-screen {
  background: var(--navy-900);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
}
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.app-greeting { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.app-status { font-size: 0.78rem; color: #93a3c2; background: rgba(255,255,255,0.06); padding: 5px 10px; border-radius: 999px; }

.app-scene-row { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.scene-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #c3cee6; white-space: nowrap;
}
.scene-chip.active { background: var(--gradient); color: #061018; font-weight: 600; }
.scene-chip svg { width: 14px; height: 14px; flex: none; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-grid.single-col { grid-template-columns: 1fr; }

.room-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px; }
.room-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #d5deef; margin-bottom: 10px; }
.room-icon { margin-bottom: 6px; }
.room-icon svg { width: 22px; height: 22px; }
.room-icon.icon-amber { color: #fbbf24; }
.room-icon.icon-emerald { color: var(--emerald); }
.room-meta { font-size: 0.72rem; color: #8b97b3; margin-top: 6px; }

.calendar-card { grid-column: 1 / -1; background: rgba(129,140,248,0.1); border-color: rgba(129,140,248,0.25); }
.calendar-synced { font-size: 0.68rem; color: var(--indigo); background: rgba(129,140,248,0.15); padding: 3px 9px; border-radius: 999px; }
.calendar-event { font-size: 0.85rem; font-weight: 600; color: #fff; }

.toggle { width: 30px; height: 16px; border-radius: 999px; background: rgba(255,255,255,0.15); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .2s ease; }
.toggle.on { background: var(--gradient); }
.toggle.on::after { left: 16px; background: #061018; }

.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin: 6px 0; }
.mini-bars span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--indigo)); border-radius: 3px; opacity: .85; }

.slider-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); margin: 8px 0 4px; overflow: hidden; }
.slider-fill { height: 100%; background: var(--gradient); }

.floating-card {
  position: absolute;
  background: #fff;
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.floating-card svg { width: 18px; height: 18px; flex: none; color: var(--indigo); }
.card-1 { top: 8%; left: -6%; animation-delay: 0s; }
.card-2 { bottom: 6%; right: -8%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--paper-soft); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-strip-inner p { text-align: center; margin: 0; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { font-size: 1.02rem; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); margin-bottom: 18px; color: #061018;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { font-size: 0.94rem; margin: 0; }

.feature-card-more {
  background: var(--paper-soft);
  border-style: dashed;
  border-color: var(--indigo);
}
.feature-card-more .feature-icon { background: rgba(129,140,248,0.12); color: var(--indigo); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding: 30px 24px; background: var(--paper); border-radius: var(--radius-md); border: 1px solid var(--border); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); color: #061018;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- App section ---------- */
.app-section-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.checklist { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 0.96rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient); color: #061018; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.phone-frame { max-width: 300px; margin: 0 auto; }
.phone-screen { padding: 16px; }

/* ---------- Unify existing devices ---------- */
.unify-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.unify-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.unify-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 380px; }
.unify-chip {
  padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.unify-arrow { font-size: 1.6rem; color: var(--indigo); }
.unify-hub {
  width: 180px; height: 180px; border-radius: 50%; background: var(--gradient);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #061018; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-align: center;
  box-shadow: var(--shadow-lg); line-height: 1.3;
}
.unify-hub-icon { font-size: 2rem; }

/* ---------- Mini cards ---------- */
.mini-card { text-align: center; padding: 30px 20px; }
.mini-icon {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(129,140,248,0.12); color: var(--indigo);
}
.mini-icon svg { width: 22px; height: 22px; }
.mini-card h4 { font-size: 1rem; }
.mini-card p { font-size: 0.9rem; margin: 0; }

/* ---------- About ---------- */
.about-approach { max-width: 640px; margin: 0 auto; }
.about-approach .checklist { margin-bottom: 24px; }
.about-note { font-size: 0.94rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }

/* ---------- Testimonials ---------- */
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 160px; }
.testimonial-slide {
  margin: 0; display: none; animation: fadeIn .4s ease;
}
.testimonial-slide.active { display: block; }
.testimonial-slide p { font-size: 1.2rem; color: var(--navy-900); font-family: var(--font-head); font-weight: 600; line-height: 1.5; }
.testimonial-slide footer { margin-top: 16px; color: var(--ink-soft); font-size: 0.88rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.testimonial-controls button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper);
  font-size: 1.1rem; color: var(--navy-900);
}
.testimonial-controls button:hover { border-color: var(--indigo); color: var(--indigo); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; background: var(--border); }
.testimonial-dots button.active { background: var(--gradient); width: 22px; border-radius: 4px; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: transparent; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card.featured h3, .price-card.featured .price-tag { color: #fff; }
.price-card.featured p, .price-card.featured li { color: #b9c3da; }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #061018; font-size: 0.72rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.price-tag { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--indigo); margin: 6px 0; }
.price-card.featured .price-tag { color: var(--cyan); }

.pricing-factors { margin-top: 70px; }
.pricing-factors-title { text-align: center; font-size: 1.2rem; margin-bottom: 30px; }
.factors-grid .mini-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); }
.price-desc { font-size: 0.9rem; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 28px; flex: 1; }
.price-card li { font-size: 0.9rem; padding-left: 22px; position: relative; }
.price-card li::before { content: "•"; position: absolute; left: 4px; color: var(--indigo); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card {
  aspect-ratio: 4/3; border-radius: var(--radius-md); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-card span { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; position: relative; z-index: 1; }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55)); }
.g-1 { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.g-2 { background: linear-gradient(135deg, #818cf8, #4338ca); }
.g-3 { background: linear-gradient(135deg, #34d399, #047857); }
.g-4 { background: linear-gradient(135deg, #f472b6, #9d174d); }
.g-5 { background: linear-gradient(135deg, #fbbf24, #b45309); }
.g-6 { background: linear-gradient(135deg, #38bdf8, #1e3a8a); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: start; }
.faq-head { text-align: left; margin: 0; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy-900);
}
.accordion-icon { font-size: 1.3rem; color: var(--indigo); transition: transform .25s ease; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-panel p { padding: 0 0 20px; margin: 0; font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-simple { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-email-btn { margin: 10px 0 30px; }
.contact-info { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 26px; }
.contact-info-item { display: flex; flex-direction: column; align-items: center; }
.contact-info-item strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.contact-info-item span { font-size: 1.02rem; color: var(--navy-900); font-weight: 600; }
.social-row { display: flex; gap: 10px; justify-content: center; }
.social-row .coming-soon {
  width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
  color: var(--ink-soft); opacity: 0.5; cursor: default; user-select: none;
}
.social-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--paper-soft); padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.legal-hero .container { max-width: 760px; }
.legal-hero .back-link { font-size: 0.88rem; font-weight: 600; color: var(--indigo); display: inline-block; margin-bottom: 18px; }
.legal-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.legal-updated { font-size: 0.85rem; color: var(--ink-soft); }
.draft-notice {
  background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.25);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.88rem; color: var(--navy-900); margin-top: 20px;
}
.legal-body { max-width: 760px; margin: 0 auto; padding: 50px 0 90px; }
.legal-body h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.96rem; }
.legal-body ul { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; padding-left: 22px; list-style: disc; }
.legal-body a { color: var(--indigo); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b9c3da; padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { color: #8b97b3; font-size: 0.9rem; margin-top: 14px; max-width: 260px; }
.site-footer .logo { color: #fff; }
.footer-col h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; color: #8b97b3; margin-bottom: 10px; }
.footer-col a:hover { color: var(--cyan); }
.newsletter p { font-size: 0.85rem; color: #8b97b3; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: #fff; font-size: 0.85rem; min-width: 0;
}
.newsletter-form input::placeholder { color: #6b7690; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 0.82rem; color: #6b7690; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--cyan); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #061018; border: none; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease; z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .app-section-inner, .unify-inner { grid-template-columns: 1fr; }
  .phone-frame { margin-top: 40px; }
  .unify-visual { margin-top: 20px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-head { text-align: center; margin: 0 auto 20px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto 20px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 20px 24px 26px; border-bottom: 1px solid var(--border); gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .card-1, .card-2 { display: none; }
  .header-actions .btn-sm { display: none; }
}
