/* Smart Era Home — site styles
   Layout: light pages with navy brand bands; 1240px container; cards only where an item is a separate object. */
:root {
  --navy: #0A1B3D;
  --navy-2: #12224A;
  --navy-3: #1A2B58;
  --teal: #00D1C1;
  --blue: #007BFF;
  --link: #0059C7;
  --ink: #0A1B3D;
  --slate: #475569;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --mist: #F3F6FA;
  --white: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D2E3;
  --amber: #F5B700;
  --orange: #C25E0C;
  --ok: #046C4E;
  --ok-bg: #E3F6EF;
  --warn: #8A4B00;
  --warn-bg: #FFF2DB;
  --bad: #A61B1B;
  --font-display: 'Sora', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --radius: 20px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
html[lang="ar"] {
  --font-display: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
html[lang="ar"] body { line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0; }
.num, table { font-variant-numeric: tabular-nums; }

/* Language switching: elements carry data-l="en" or data-l="ar" */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }

/* Layout */
.band { width: 100%; }
.band.dark { background: var(--navy); color: var(--on-dark); }
.band.mist { background: var(--mist); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: 96px; }
.wrap.tight { padding-block: 40px; }
.wrap.slim { padding-block: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.lg { gap: 28px; }
.stack.xl { gap: 48px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.min0 { min-width: 0; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.dark .eyebrow { color: var(--teal); }
.h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 700; }
.h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
html[lang="ar"] .h1 { line-height: 1.3; }
html[lang="ar"] .h2 { line-height: 1.35; }
.lead { font-size: 18px; color: var(--slate); max-width: 62ch; }
.dark .lead, .dark .muted { color: var(--on-dark-2); }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; color: inherit; line-height: 1.2; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-3); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-teal:hover { background: #2fe0d2; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--mist); color: var(--navy); }
.dark .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.dark .btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-ghost { color: var(--link); padding-inline: 6px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); cursor: pointer; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,0.08); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header .bar { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter-r) 12px var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--on-dark); }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--teal); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; }
.brand .word { display: flex; flex-direction: column; line-height: 1.1; }
.brand .word b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.brand .word span { font-size: 12px; color: var(--on-dark-2); }
.main-nav { display: flex; gap: 4px; flex: 1 1 auto; }
.main-nav a { color: var(--on-dark); text-decoration: none; padding: 10px 10px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--on-dark); }
.main-nav a[aria-current="page"] { background: rgba(0,209,193,0.16); color: var(--teal); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--on-dark); font: inherit; font-size: 15px; cursor: pointer; }
.lang-btn:hover { background: rgba(255,255,255,0.08); }
.signin-link { color: var(--on-dark); text-decoration: none; font-size: 15px; padding: 10px 8px; white-space: nowrap; }
.signin-link:hover { color: var(--teal); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--navy-2); color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }
@media (max-width: 1360px) {
  .main-nav, .signin-link, .head-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .head-actions { margin-inline-start: auto; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 2px; padding: 8px var(--gutter-r) 16px var(--gutter); border-top: 1px solid rgba(255,255,255,0.08); }
  .mobile-nav a { color: var(--on-dark); text-decoration: none; padding: 12px 6px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mobile-nav .btn { margin-top: 10px; }
}

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-2); }
.site-footer .cols { max-width: 1240px; margin: 0 auto; padding: 64px var(--gutter-r) 32px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px; font-size: 15px; }
.site-footer h4 { color: var(--on-dark); font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer .legal { max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter-r) 32px var(--gutter); border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Cards and chips */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.fill { background: var(--mist); border-color: transparent; }
.card.navy { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.card.navy .muted { color: var(--on-dark-2); }
.dark .card.glass { background: var(--navy-2); border-color: rgba(255,255,255,0.1); color: var(--on-dark); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.dark .chip { background: var(--navy-2); border-color: rgba(255,255,255,0.1); color: var(--on-dark); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: #E6F0FF; color: #0047A3; }
.pill.mute { background: var(--mist); color: var(--slate); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: #E6F0FF; color: var(--link); display: flex; align-items: center; justify-content: center; }
.dark .feature-icon { background: rgba(0,209,193,0.14); color: var(--teal); }
.step-no { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--link); }
.dark .step-no, .card.navy .step-no { color: var(--teal); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input, select.input, textarea.input { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #94A3B8; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: 3px solid rgba(0,123,255,0.35); border-color: var(--blue); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
.dropzone { border: 2px dashed #94A3B8; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; background: var(--mist); cursor: pointer; }
.dropzone.drag { border-color: var(--blue); background: #E6F0FF; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tables */
.table-box { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th { text-align: start; font-size: 13px; color: var(--slate); font-weight: 600; padding: 12px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .r { text-align: end; }
table.data input.input { min-height: 40px; padding: 6px 8px; width: 72px; text-align: center; }
table.data select.input { min-height: 40px; padding: 6px 8px; width: auto; }
table.data input.input.name { width: 100%; min-width: 140px; text-align: start; }

/* Phone mockup used in hero */
.phone { width: 300px; max-width: 100%; height: 610px; border-radius: 46px; background: #050D1F; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,0.45); flex: 0 0 auto; }
.phone .screen { width: 100%; height: 100%; border-radius: 37px; background: #0B1220; padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; color: var(--on-dark); }
.tile { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 14px; background: #1A2438; color: var(--on-dark); font-size: 13px; }
.tile .k { font-size: 11px; opacity: 0.85; }
.tile b { font-weight: 600; }
.tile.blue { background: var(--blue); }
.tile.orange { background: var(--orange); }
.tile.amber { background: var(--amber); color: var(--navy); }
.tile.teal { background: #00897F; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 610px; }
.float-card { position: absolute; border-radius: 16px; padding: 14px 16px; width: 230px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.float-card.light { background: var(--white); color: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,0.3); top: 70px; inset-inline-start: 0; }
.float-card.dark2 { background: var(--navy-2); color: var(--on-dark); border: 1px solid rgba(255,255,255,0.12); bottom: 60px; inset-inline-end: 0; }
@media (max-width: 560px) { .float-card { position: static; width: 100%; } .hero-visual { flex-direction: column; align-items: center; gap: 12px; min-height: 0; } }

/* Flow cards */
.flow-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; color: var(--on-dark); }
.flow-card .w { font-size: 13px; font-weight: 700; }
.flow-card .w.when { color: var(--teal); }
.flow-card .w.and { color: var(--amber); }
.flow-card .w.then { color: #6CB4FF; }
.flow-card .d { font-size: 13px; color: var(--on-dark-2); }
.flow-card .t { font-size: 17px; font-weight: 600; }
.indent-1 { margin-inline-start: 28px; }
.indent-2 { margin-inline-start: 56px; }
@media (max-width: 560px) { .indent-1 { margin-inline-start: 14px; } .indent-2 { margin-inline-start: 28px; } }

/* Packages */
.pkg { display: flex; flex-direction: column; gap: 18px; position: relative; }
.pkg.featured { border: 2px solid var(--navy); }
.pkg .badge { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.pkg ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--slate); }
.pkg .price { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.pkg .btn { margin-top: auto; }

/* Totals (quotes, cart) */
.totals { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.totals div { display: flex; gap: 24px; }
.totals span:last-child { min-width: 130px; text-align: end; }
.totals .grand { font-family: var(--font-display); font-size: 22px; font-weight: 700; }

/* Toast */
.toast-host { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: var(--white); padding: 14px 16px; border-radius: 14px; box-shadow: 0 16px 32px rgba(10,27,61,0.3); font-size: 15px; animation: toast-in 0.25s ease-out; }
.toast small { display: block; color: var(--on-dark-2); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Dialog */
dialog.sheet { border: 0; border-radius: 24px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); background: var(--white); }
dialog.sheet::backdrop { background: rgba(10,27,61,0.55); }
dialog.sheet .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 12px; position: sticky; top: 0; background: var(--white); z-index: 1; }
dialog.sheet .sheet-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }

.notice { border-radius: 14px; padding: 12px 16px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.notice.info { background: #E6F0FF; color: #0047A3; }

/* Print: only the quote */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  .site-header, .site-footer, body::before { display: none !important; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block !important; position: absolute; inset: 0 0 auto 0; padding: 0 8mm; color: #000; }
  #print-area table.data { min-width: 0; font-size: 11pt; }
  @page { size: A4; margin: 14mm; }
}

/* =====================================================================
   v2 redesign: feature pages, app store, motion
   ===================================================================== */
:root {
  --night: #060A17;
  --night-2: #0C1226;
  --night-card: #121A33;
  --night-line: rgba(255,255,255,0.09);
  --c-devices: #3B82F6; --c-apps: #A855F7; --c-flow: #F59E0B; --c-advflow: #EC4899;
  --c-energy: #22C55E; --c-insights: #06B6D4; --c-dashboards: #F97316; --c-moods: #E879F9;
  --when: #00D1C1; --and: #F5B700; --then: #6CB4FF;
}

/* Brand logo image (set in config.js) */
.brand img.logo { height: 40px; width: auto; display: block; }

/* Header: Features mega menu */
.main-nav .nav-btn { font: inherit; font-size: 15px; color: var(--on-dark); background: none; border: 0; padding: 10px 10px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.main-nav .nav-btn:hover, .main-nav .nav-btn[aria-expanded="true"] { background: rgba(255,255,255,0.08); }
.main-nav .nav-btn .ico { transition: transform .2s; }
.main-nav .nav-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(6,10,23,0.25); }
.mega .in-wrap { max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter-r) 28px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 6px 16px; }
.mega a.mi { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.mega a.mi:hover { background: var(--mist); color: var(--ink); }
.mega .mi .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--fc) 12%, white); color: var(--fc); }
.mega .mi b { display: block; font-size: 15px; }
.mega .mi span.d { display: block; font-size: 13px; color: var(--slate); line-height: 1.4; }
.mega .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 12px 0; border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px; }
.mega .foot a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.mobile-nav .mn-group { color: var(--on-dark-2); font-size: 13px; padding: 14px 6px 4px; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .mobile-nav .mn-group { letter-spacing: 0; text-transform: none; }
.mobile-nav .mn-feat { display: flex; align-items: center; gap: 10px; }

/* Feature sub-navigation (like Homey's) */
.feature-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 40; background: rgba(247,248,250,0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.feature-nav .fn { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.feature-nav .fn::-webkit-scrollbar { display: none; }
.feature-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 12px; color: #6B7280; text-decoration: none; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.feature-nav a + a { border-inline-start: 0; }
.feature-nav a:hover { color: var(--ink); }
.feature-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.feature-nav a[aria-current="page"] .ico { color: var(--ink); }
.feature-nav .sep { width: 1px; background: var(--line-2); margin: 16px 4px; flex: 0 0 1px; }
@media (max-width: 900px) { .feature-nav .fn { justify-content: flex-start; } }

/* Night bands */
.band.night { background: radial-gradient(1200px 500px at 50% -10%, rgba(0,209,193,0.10), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(108,180,255,0.08), transparent 60%), var(--night); color: var(--on-dark); }
.band.night .lead, .band.night .muted { color: #AAB4CC; }
.band.night .eyebrow { color: var(--teal); }
.band.night .card { background: var(--night-card); border-color: var(--night-line); color: var(--on-dark); }
.band.night .card .muted { color: #AAB4CC; }
.band.night a:not(.btn) { color: var(--teal); }
.band.night .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.band.night .btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.glow-text { color: var(--teal); text-shadow: 0 0 28px rgba(0,209,193,0.45); }
.hero-center { text-align: center; align-items: center; }
.hero-center .lead { margin-inline: auto; }
.display { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; }
html[lang="ar"] .display { line-height: 1.25; letter-spacing: 0; }

/* Reveal on scroll (only when JS + IntersectionObserver are available) */
html.fx [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
html.fx [data-rv="zoom"] { transform: scale(.94); }
html.fx [data-rv="left"] { transform: translateX(-30px); }
html.fx [data-rv="right"] { transform: translateX(30px); }
html.fx [data-rv].in { opacity: 1; transform: none; }

/* Marquee */
.marquee { display: flex; overflow: hidden; gap: var(--mq-gap, 14px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: var(--mq-gap, 14px); flex: 0 0 auto; min-width: 100%; justify-content: space-around; animation: mq var(--mq-dur, 40s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--mq-gap, 14px))); } }
html[dir="rtl"] .marquee .track { animation-name: mq-rtl; }
@keyframes mq-rtl { from { transform: translateX(0); } to { transform: translateX(calc(100% + var(--mq-gap, 14px))); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .marquee { overflow-x: auto; } }

/* Sequenced cards */
[data-seq] [data-step] { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
html.fx [data-seq] [data-step]:not(.on) { opacity: 0; transform: translateY(14px) scale(.98); }
.replay { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: inherit; background: rgba(127,127,127,0.14); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 36px; }
.replay:hover { background: rgba(127,127,127,0.24); }

/* Phone frames */
.phone.light .screen { background: #F3F5F9; color: var(--ink); }
.phone.sm { width: 250px; height: 510px; border-radius: 40px; }
.phone.sm .screen { border-radius: 31px; padding: 22px 12px 12px; gap: 10px; }
.device-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Flow cards v2 (on light and dark) */
.fc { border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 10px 30px rgba(10,27,61,0.12); overflow: hidden; border: 1px solid var(--line); }
.fc .fh { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #fff; }
.fc.when .fh { background: #00897F; } .fc.and .fh { background: #B07900; } .fc.then .fh { background: #2563EB; }
.fc .fb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.fc .fb .src { font-size: 12px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.fc .fb b { font-size: 15px; }
.fc .arg { display: inline-block; background: #EEF2FF; color: #1E3A8A; padding: 0 8px; border-radius: 6px; font-weight: 700; }
.fc-stack { display: flex; flex-direction: column; gap: 10px; }
.fc-stack .fc + .fc { position: relative; }

/* Bulb that lights up when a sequence finishes */
.bulb { width: 92px; height: 92px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #1A2438; color: #5B6785; transition: background .5s, color .5s, box-shadow .5s; }
.done .bulb, .bulb.on { background: #FFE9A8; color: #B07900; box-shadow: 0 0 60px 20px rgba(245,183,0,0.45); }

/* Icon grids (sensors) */
.sensor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 28px 12px; }
.sensor { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 15px; color: #DDE3F0; transition: transform .3s; }
.sensor .ico { filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 55%, transparent)); }
.sensor:hover { transform: translateY(-4px); }
.sensor.dimmed { opacity: .38; }

/* Charts */
.chart-box { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ch-grid { stroke: rgba(148,163,184,0.25); stroke-dasharray: 4 4; }
.chart .ch-axis { stroke: rgba(148,163,184,0.5); }
.chart .ch-lbl { fill: #94A3B8; font-size: 12px; font-family: var(--font-body); }
.chart .ch-cursor { stroke: rgba(148,163,184,0.6); }
.chart-box .ch-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease; }
.chart-box.drawn .ch-line { stroke-dashoffset: 0; }
.chart-box .ch-area, .chart-box .ch-dot { opacity: 0; transition: opacity .8s ease .9s; }
.chart-box.drawn .ch-area, .chart-box.drawn .ch-dot { opacity: 1; }
.band:not(.night) .chart .ch-dot { fill: var(--white); }
.chart-card { background: var(--night-card); border: 1px solid var(--night-line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--on-dark); }
.chart-card .sel { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.chart-card select { font: inherit; font-weight: 600; color: inherit; background: transparent; border: 0; flex: 1; min-width: 0; cursor: pointer; }
.chart-card select option { color: var(--ink); }

/* Widgets (dashboards) */
.widget { border-radius: 18px; background: var(--night-card); border: 1px solid var(--night-line); color: var(--on-dark); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; overflow: hidden; break-inside: avoid; margin-bottom: 12px; }
.widget .wl { font-size: 12px; color: #AAB4CC; }
.widget .wv { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 600; }
.masonry { columns: 5 200px; column-gap: 12px; }
.w-weather { background: linear-gradient(160deg, #1E64C8, #2F8FEA); border: 0; }
.w-pink { background: linear-gradient(120deg, #D6246E, #B5179E); border: 0; }
.w-amber { background: linear-gradient(120deg, #C98A00, #E0A400); border: 0; color: #fff; }
.w-orange { background: linear-gradient(120deg, #E8590C, #F76707); border: 0; }
.w-teal { background: linear-gradient(120deg, #00897F, #00A99B); border: 0; }
.w-green { background: linear-gradient(120deg, #0F7B4A, #16A34A); border: 0; }
.flow-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.07); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 13px; font-weight: 600; }
.flow-chip i { width: 22px; height: 22px; border-radius: 999px; background: #22C55E; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; }
.mini-toggle { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,0.35); position: relative; flex: 0 0 auto; }
.mini-toggle::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; }
.mini-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.mini-bar > span { position: absolute; inset-block: 0; inset-inline-start: 0; background: #fff; border-radius: 999px; }
.tablet-frame { border-radius: 34px; background: #2B3245; padding: 14px; box-shadow: 0 40px 80px rgba(6,10,23,0.35); max-width: 100%; }
.tablet-frame .tscreen { border-radius: 22px; background: #0D1324; padding: 16px; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .tablet-frame .tscreen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pill tabs */
.pill-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--mist); padding: 5px; border-radius: 999px; }
.band.night .pill-tabs { background: rgba(255,255,255,0.07); }
.pill-tabs [data-tab] { font: inherit; font-size: 15px; font-weight: 600; color: var(--slate); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; min-height: 42px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.band.night .pill-tabs [data-tab] { color: #AAB4CC; }
.pill-tabs [data-tab][aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(10,27,61,0.12); }

/* Feature tiles ("discover more features") */
.feat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.feat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--night-card); border: 1px solid var(--night-line); color: var(--on-dark); text-decoration: none; font-weight: 600; transition: transform .25s, border-color .25s, box-shadow .25s; }
.band:not(.night) .feat-tile { background: var(--white); border-color: var(--line); color: var(--ink); }
.feat-tile .ico { color: var(--fc); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--fc) 45%, transparent)); }
.feat-tile:hover { transform: translateY(-4px); border-color: var(--fc); box-shadow: 0 16px 40px color-mix(in srgb, var(--fc) 25%, transparent); color: inherit; }

/* App store */
.app-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; flex: 0 0 auto; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.app-icon.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.app-icon.lg { width: 96px; height: 96px; border-radius: 26px; font-size: 32px; }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; transition: transform .2s, box-shadow .2s; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,27,61,0.10); color: var(--ink); }
.app-card .banner { height: 96px; border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; }
.app-card .banner .app-icon { box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.app-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.app-card p { font-size: 14px; color: var(--slate); line-height: 1.45; }
.app-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); margin-top: auto; }
.badge-off { background: #E6F7F5; color: #046C4E; } .badge-com { background: #F1ECFE; color: #5B21B6; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 600px) { .rail { grid-auto-columns: 78%; } }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.top5 li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.top5 li a { text-decoration: none; color: inherit; display: flex; gap: 12px; align-items: center; min-width: 0; }
.top5 li span.n { width: 18px; color: var(--slate); font-weight: 600; font-variant-numeric: tabular-nums; }
.store-hero { position: relative; overflow: hidden; }
.store-hero .shape { position: absolute; opacity: .9; }
.platform-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-tabs a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--slate); background: var(--mist); }
.platform-tabs a[aria-current="page"] { background: var(--navy); color: var(--white); }
.facets fieldset { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.facets legend { font-weight: 700; padding: 0 0 6px; display: flex; justify-content: space-between; width: 100%; }
.facets .check { min-height: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: 13px; font-weight: 600; background: var(--mist); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cards-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }

/* Platform buttons (own hardware page) */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.plat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 10px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.02); color: var(--white); font-weight: 600; transition: border-color .25s, box-shadow .25s, transform .25s; }
.plat:hover { border-color: var(--teal); box-shadow: 0 0 30px rgba(0,209,193,0.25); transform: translateY(-3px); }
.conn { display: flex; gap: 14px; align-items: flex-start; }
.conn .ico { color: var(--teal); filter: drop-shadow(0 0 10px rgba(0,209,193,0.6)); flex: 0 0 auto; }

/* House energy illustration */
.house-energy { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #1E78F0 0%, #8EC5FF 60%, #EEF3FA 60.2%, #F7F9FC 100%); }
.house-energy svg { display: block; width: 100%; height: auto; }
.house-energy .flowline { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .house-energy .flowline { animation: none; } }
.energy-tag { position: absolute; color: var(--white); display: flex; flex-direction: column; font-size: 14px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,0.7); }
.energy-tag b { font-family: 'Sora', sans-serif; font-size: 24px; }

/* Mood rooms */
.mood-room { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: #111; transition: background .8s; }
.mood-room .glow1, .mood-room .glow2 { position: absolute; border-radius: 999px; filter: blur(60px); transition: background .8s, opacity .8s; }
.mood-room .glow1 { width: 60%; height: 70%; top: -10%; left: -10%; }
.mood-room .glow2 { width: 60%; height: 70%; bottom: -15%; right: -10%; }
.mood-room .room-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mood-swatch { height: 64px; border-radius: 16px; display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; font-weight: 600; font-size: 14px; min-width: 150px; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }

/* Floor plan zones */
.floorplan { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, 80px); gap: 6px; background: var(--night-card); padding: 6px; border-radius: 20px; }
.floorplan .zone { border-radius: 12px; background: #1A2440; color: #AAB4CC; padding: 10px; font-size: 13px; font-weight: 600; position: relative; transition: background .5s, color .5s, box-shadow .5s; }
.floorplan .zone.active { background: #FFE9A8; color: #6B4A00; box-shadow: 0 0 40px rgba(245,183,0,0.4); }
.floorplan .zone .pulse { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 10px; height: 10px; border-radius: 999px; background: #22C55E; }
.floorplan .zone.active .pulse { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); } 100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } }
.zone-tree { font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.zone-tree .lvl1 { padding-inline-start: 22px; color: var(--slate); }
.band.night .zone-tree .lvl1 { color: #AAB4CC; }

/* Code block */
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; background: #0B1020; color: #D7E0F5; border-radius: 16px; padding: 16px; overflow-x: auto; direction: ltr; text-align: left; }
.code .k { color: #F472B6; } .code .s { color: #86EFAC; } .code .c { color: #64748B; } .code .n { color: #FBBF24; }

/* Keep "6.6 kWh", "4,820 W", "SAR 1,397" in reading order on Arabic pages */
html[dir="rtl"] .num, html[dir="rtl"] .wv, html[dir="rtl"] .energy-tag b { unicode-bidi: plaintext; }


/* ==========================================================================
   Skywork motion — spring physics shared with the Smart Era store
   (apps/client/src/lib/motion.ts: snappy · gentle · bouncy · smooth · inertia).
   Curves are the same stiffness/damping/mass springs sampled into linear().
   ========================================================================== */
:root {
  --spring-snappy: linear(0.000, 0.037, 0.123, 0.235, 0.349, 0.471, 0.585, 0.686, 0.766, 0.838, 0.895, 0.937, 0.970, 0.994, 1.010, 1.019, 1.025, 1.027, 1.026, 1.024, 1.022, 1.018, 1.015, 1.012, 1.009, 1.007, 1.005, 1.003, 1.000);
  --spring-snappy-ms: 384ms;
  --spring-gentle: linear(0.000, 0.046, 0.139, 0.251, 0.364, 0.469, 0.568, 0.649, 0.717, 0.773, 0.819, 0.856, 0.888, 0.912, 0.931, 0.946, 0.957, 0.967, 0.974, 0.980, 0.984, 0.988, 0.991, 0.993, 0.994, 0.996, 0.997, 0.997, 1.000);
  --spring-gentle-ms: 509ms;
  --spring-bouncy: linear(0.000, 0.057, 0.187, 0.352, 0.521, 0.678, 0.810, 0.914, 0.989, 1.038, 1.066, 1.077, 1.077, 1.069, 1.057, 1.045, 1.032, 1.020, 1.011, 1.004, 0.999, 0.996, 0.994, 0.994, 0.994, 0.995, 0.996, 0.997, 1.000);
  --spring-bouncy-ms: 390ms;
  --spring-smooth: linear(0.000, 0.083, 0.230, 0.374, 0.499, 0.600, 0.680, 0.746, 0.799, 0.840, 0.873, 0.900, 0.920, 0.936, 0.950, 0.960, 0.968, 0.975, 0.980, 0.984, 0.987, 0.990, 0.992, 0.994, 0.995, 0.996, 0.997, 0.997, 1.000);
  --spring-smooth-ms: 1059ms;
  --spring-inertia: linear(0.000, 0.067, 0.195, 0.332, 0.458, 0.561, 0.650, 0.723, 0.780, 0.826, 0.862, 0.891, 0.914, 0.932, 0.946, 0.957, 0.966, 0.973, 0.979, 0.983, 0.987, 0.990, 0.992, 0.994, 0.995, 0.996, 0.997, 0.997, 1.000);
  --spring-inertia-ms: 666ms;
  --spring-reveal: linear(0.000, 0.039, 0.122, 0.226, 0.338, 0.447, 0.548, 0.638, 0.715, 0.780, 0.834, 0.877, 0.911, 0.937, 0.958, 0.973, 0.983, 0.991, 0.996, 1.000, 1.002, 1.003, 1.004, 1.004, 1.004, 1.003, 1.003, 1.002, 1.000);
  --spring-reveal-ms: 450ms;
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring-snappy: cubic-bezier(.22,1,.36,1); --spring-gentle: cubic-bezier(.22,1,.36,1); --spring-bouncy: cubic-bezier(.34,1.56,.64,1); --spring-smooth: cubic-bezier(.25,.1,.25,1); --spring-inertia: cubic-bezier(.22,1,.36,1); --spring-reveal: cubic-bezier(.22,1,.36,1); }
}
/* fadeInUp / scaleIn / stagger (60 ms) */
html.fx [data-rv] { transform: translateY(24px); transition: opacity .45s cubic-bezier(.22,1,.36,1), transform var(--spring-reveal-ms) var(--spring-reveal); transition-delay: var(--d, 0ms); }
html.fx [data-rv="zoom"] { transform: scale(.9); transition-timing-function: cubic-bezier(.22,1,.36,1), var(--spring-bouncy); transition-duration: .45s, var(--spring-bouncy-ms); }
html.fx [data-rv].in { opacity: 1; transform: none; }
[data-seq] [data-step] { transition: opacity .35s cubic-bezier(.22,1,.36,1), transform var(--spring-bouncy-ms) var(--spring-bouncy); }
/* hoverLift (Apple card) + tapScale */
.card, .feat-tile, .app-card, .widget, .sky-lift { transition: transform var(--spring-snappy-ms) var(--spring-snappy), box-shadow .3s ease; }
@media (hover: hover) {
  a.card:hover, .feat-tile:hover, .sky-lift:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px rgba(10, 27, 61, .15); }
}
.btn, .pill-tabs button, .sky-press { transition: transform var(--spring-snappy-ms) var(--spring-snappy), background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:active, .pill-tabs button:active, .sky-press:active { transform: scale(.96); }
/* modalContent */
dialog[open] { animation: sky-modal var(--spring-gentle-ms) var(--spring-gentle); }
dialog[open]::backdrop { animation: sky-fade .2s ease; }
@keyframes sky-modal { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sky-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sky-pop { 0% { opacity: 0; transform: scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes sky-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: none; } }
.sky-pop { animation: sky-pop var(--spring-bouncy-ms) var(--spring-bouncy) both; animation-delay: var(--d, 0ms); }
.sky-up { animation: sky-up var(--spring-reveal-ms) var(--spring-reveal) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .sky-pop, .sky-up, dialog[open] { animation: none; }
  .card, .feat-tile, .btn, .widget { transition: none; }
}

/* Smart Era logo in the header */
.brand img.logo-full { height: 30px; width: auto; }
.brand .word-sub { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(45, 212, 191, .45); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 520px) { .brand img.logo-full { height: 24px; } .brand .word-sub { display: none; } }

/* store link (Skywork storefront) */
.shop-link { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); transition: background-color .2s, transform var(--spring-snappy-ms) var(--spring-snappy); }
.shop-link:hover { background: rgba(255,255,255,.08); color: var(--on-dark); }
.shop-link:active { transform: scale(.96); }
@media (max-width: 1460px) { .shop-link .shop-txt { display: none; } .shop-link { width: 40px; justify-content: center; padding: 0; } }
@media (max-width: 480px) { .shop-link { display: none; } }

/* ============================================================
   Homepage showcase: phone row + feature tiles
   Layout uses translate/scale; reveal uses transform, so they stack.
   ============================================================ */
.showcase { background: #000; overflow: hidden; padding-top: 72px; }
.showcase .phone-row { display: flex; justify-content: center; align-items: flex-start; gap: 18px; height: 470px; position: relative; padding-inline: 16px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
.showcase .sp { flex: 0 0 auto; width: 230px; height: 480px; border-radius: 38px; background: #0B0F1A; padding: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.6); }
.showcase .sp-1, .showcase .sp-5 { translate: 0 70px; scale: .9; }
.showcase .sp-2, .showcase .sp-4 { translate: 0 30px; scale: .96; }
.showcase .sp-3 { z-index: 2; width: 250px; height: 500px; }
html.fx .showcase .sp-1.in, html.fx .showcase .sp-5.in, .showcase .sp-1, .showcase .sp-5 { opacity: .75; }
.showcase .sp-scr { height: 100%; border-radius: 31px; background: #10141F; color: #fff; padding: 16px 13px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 11px; animation: sp-float 3.5s ease-in-out infinite alternate; }
.showcase .sp-2 .sp-scr { animation-delay: -0.7s; } .showcase .sp-3 .sp-scr { animation-delay: -1.4s; } .showcase .sp-4 .sp-scr { animation-delay: -2.1s; } .showcase .sp-5 .sp-scr { animation-delay: -2.8s; }
@keyframes sp-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.sp-top { display: flex; justify-content: space-between; align-items: center; color: #C9D1E3; font-size: 11px; font-weight: 600; }
.sp-x { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; }
.sp-h { font-family: var(--font-display); font-size: 15px; } .sp-h.center, .sp-sub.center { text-align: center; }
.sp-sub { color: #8E98AF; font-size: 10.5px; display: block; }
.sp-k { color: #C9D1E3; font-weight: 600; font-size: 11px; margin-top: 2px; }
.sp-mood { position: relative; height: 104px; border-radius: 16px; padding: 10px; display: flex; align-items: flex-end; gap: 4px; background: radial-gradient(circle at 50% 30%, #FFB347 0 22%, transparent 23%), radial-gradient(circle at 50% 30%, rgba(255,140,60,.55) 0 40%, transparent 41%), linear-gradient(120deg, #FF7A18, #FF2E93); overflow: hidden; }
.sp-mood .spark { position: absolute; top: 18px; left: 50%; translate: -50% 0; font-size: 20px; }
.sp-mood b { flex: 1; font-size: 11px; }
.sp-mood i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: #F59E0B; }
.sp-mood i:nth-of-type(2) { background: #EF4444; } .sp-mood i:nth-of-type(3) { background: #C026D3; } .sp-mood i:nth-of-type(4) { background: #7C3AED; }
.sp-sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .sp-sw span { height: 70px; border-radius: 12px; }
.sp-media { background: linear-gradient(180deg, #2B1A05, #120B02 60%, #0A0702); }
.sp-art { position: relative; height: 210px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #F7B733, #F59E0B 45%, #B45309); margin-block: 6px; flex: 0 0 auto; }
.sp-art .sun { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: #FFE7A3; left: 50%; top: 48px; translate: -50% 0; box-shadow: 0 0 60px #FFD166; }
.sp-art .dune { position: absolute; inset: auto -20% -30% -20%; height: 55%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #7C3D0B, #3A1B05); }
.sp-ctl { display: flex; justify-content: space-around; align-items: center; color: #E5E7EB; font-size: 14px; margin-top: 8px; }
.sp-ctl .pp { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-big { font-family: var(--font-display); font-size: 17px; }
.sp-ic, .sp-pill { background: rgba(255,255,255,0.1); border-radius: 999px; padding: 4px 9px; font-size: 10px; }
.sp-card { background: #1A2030; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sp-card svg { width: 100%; height: 46px; }
.sp-line { fill: none; stroke: #3B82F6; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; }
.showcase .sp.in .sp-line, html:not(.fx) .sp-line { animation: sp-draw 2.2s cubic-bezier(.22,1,.36,1) .4s forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
.sp-pct { font-family: var(--font-display); font-size: 18px; }
.sp-tank { width: 34px; height: 40px; border-radius: 8px; background: #2A3245; position: relative; overflow: hidden; } .sp-tank i { position: absolute; inset: auto 0 0 0; height: 72%; background: linear-gradient(180deg, #38BDF8, #0284C7); }
.sp-bar { height: 6px; border-radius: 99px; background: #2A3245; overflow: hidden; } .sp-bar i { display: block; height: 100%; background: #22C55E; border-radius: inherit; }
.sp-chips { display: flex; gap: 6px; } .sp-chips > span { flex: 1; background: #1A2030; border-radius: 999px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sp-chips i { width: 14px; height: 14px; border-radius: 50%; background: #22C55E; flex: 0 0 auto; }
.sp-ac { background: linear-gradient(135deg, #F97316, #EA580C); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; } .sp-ac b { font-family: var(--font-display); font-size: 17px; }
.sp-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .sp-mini > div { background: #1A2030; border-radius: 10px; padding: 7px 8px; color: #8E98AF; display: flex; flex-direction: column; gap: 1px; } .sp-mini b { color: #fff; font-size: 12px; }
.sp-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .sp-kpi > div { display: flex; flex-direction: column; color: #8E98AF; font-size: 9.5px; } .sp-kpi b { color: #fff; font-size: 11.5px; }
.sp-house { position: relative; height: 150px; margin-block: 4px; flex: 0 0 auto; }
.sp-house .roof { position: absolute; left: 14%; right: 14%; top: 12px; height: 62px; background: repeating-linear-gradient(90deg, #3C4558 0 22px, #2A3142 22px 24px); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.sp-house .body { position: absolute; left: 10%; right: 10%; top: 74px; height: 66px; background: #2A3142; display: flex; gap: 10px; padding: 12px; } .sp-house .body i { flex: 1; background: #FBBF24; opacity: .85; border-radius: 2px; box-shadow: 0 0 18px #F59E0B; }
.sp-house .beam { position: absolute; left: 4%; right: 4%; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #38BDF8, transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sp-beam 2.4s linear infinite; }
@keyframes sp-beam { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.sp-light { background: linear-gradient(180deg, #B0127A, #6B0A4B 60%, #2C0520); align-items: center; }
.sp-light .sp-top { width: 100%; }
.sp-wheel { width: 180px; height: 180px; border-radius: 50%; margin-top: 50px; position: relative; flex: 0 0 auto; background: radial-gradient(circle, #fff 0, rgba(255,255,255,0) 65%), conic-gradient(red, yellow, lime, cyan, blue, magenta, red); box-shadow: 0 0 50px rgba(255,0,170,.45); animation: sp-spin 30s linear infinite; }
.sp-wheel .knob { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: #E11D8F; top: 22px; right: 36px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
@keyframes sp-spin { to { rotate: 360deg; } }
.sp-dots { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; align-items: center; } .sp-dots i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#F87171, #FBBF24, #34D399, #60A5FA, #C084FC, #F87171); } .sp-dots i + i { background: #D6D3C8; }
.showcase-copy { position: relative; z-index: 3; margin-top: -60px; padding-bottom: 96px; }
.glow-amber { color: #F5A400; text-shadow: 0 0 34px rgba(245,164,0,.5); }
.amber-tiles { width: 100%; max-width: 760px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band.night .amber-tiles .feat-tile, .amber-tiles .feat-tile { color: #fff; background: rgba(245,164,0,0.10); border-color: rgba(245,164,0,0.18); --fc: #F5A400; font-size: 14px; }
.amber-tiles .feat-tile:hover { background: rgba(245,164,0,0.18); }
@media (max-width: 1100px) { .showcase .sp-1, .showcase .sp-5 { display: none; } }
@media (max-width: 760px) {
  .showcase .sp-2, .showcase .sp-4 { display: none; }
  .showcase .phone-row { height: 420px; }
  .amber-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .showcase .sp-scr, .sp-wheel, .sp-house .beam { animation: none; } .sp-line { stroke-dashoffset: 0; } }

/* Smart Era bar is showing: its language switch and cart replace the header's own */
html.se-bar-on .head-actions .lang-btn, html.se-bar-on .head-actions .shop-link { display: none; }
