:root,
html[data-theme="light"] {
  --bg-main: #f5f9f8;
  --bg-gradient:
    radial-gradient(1100px 600px at 85% -10%, rgba(0, 85, 255, 0.09), transparent 65%),
    radial-gradient(900px 500px at -10% 40%, rgba(14, 165, 233, 0.08), transparent 60%),
    linear-gradient(rgba(7, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 24, 32, 0.035) 1px, transparent 1px);
  --header-bg: rgba(245, 249, 248, 0.86);
  --header-scrolled: rgba(245, 249, 248, 0.96);
  --header-border: rgba(7, 24, 32, 0.08);
  --ink: #071820;
  --ink-soft: #0f2c3a;
  --text: #0f2834;
  --muted: #4d6874;
  --card-bg: #ffffff;
  --card-border: rgba(7, 24, 32, 0.1);
  --card-shadow: 0 10px 30px rgba(7, 24, 32, 0.06);
  --line: rgba(7, 24, 32, 0.12);
  --btn-primary-bg: #0055ff;
  --btn-primary-text: #ffffff;
  --btn-ghost-bg: rgba(7, 24, 32, 0.04);
  --btn-ghost-border: rgba(7, 24, 32, 0.15);
  --btn-ghost-text: #071820;
  --badge-bg: rgba(14, 165, 233, 0.12);
  --badge-border: rgba(14, 165, 233, 0.28);
  --badge-text: #0369a1;
  --nav-link-color: #1e3a47;
  --nav-link-hover: #0055ff;
  --row-hover: rgba(7, 24, 32, 0.04);
  --go: #0055ff;
  --sea: #0055ff;
  --sea-deep: #0044cc;
  --foam: #e7f3f0;
  --mist: #6b8793;
  --sand: #f5e6c8;
  --showcase-bg: rgba(7, 24, 32, 0.92);
  --radius-sm: 0.4rem;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow-soft: 0 20px 50px rgba(7, 24, 32, 0.12);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg-main: #06151d;
  --bg-gradient:
    radial-gradient(1100px 600px at 85% -10%, rgba(0, 85, 255, 0.22), transparent 65%),
    radial-gradient(900px 500px at -10% 40%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  --header-bg: rgba(6, 21, 29, 0.82);
  --header-scrolled: rgba(6, 21, 29, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --ink: #ffffff;
  --ink-soft: #e2f1ee;
  --text: #e2f1ee;
  --muted: #94b4c0;
  --card-bg: rgba(10, 36, 48, 0.78);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 20px 50px rgba(7, 24, 32, 0.32);
  --line: rgba(255, 255, 255, 0.12);
  --btn-primary-bg: #0055ff;
  --btn-primary-text: #ffffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --btn-ghost-border: rgba(255, 255, 255, 0.16);
  --btn-ghost-text: #e2f1ee;
  --badge-bg: rgba(14, 165, 233, 0.15);
  --badge-border: rgba(14, 165, 233, 0.32);
  --badge-text: #38bdf8;
  --nav-link-color: #b7d2cc;
  --nav-link-hover: #ffffff;
  --row-hover: rgba(255, 255, 255, 0.04);
  --go: #60a5fa;
  --sea: #3b82f6;
  --sea-deep: #93c5fd;
  --foam: #e7f3f0;
  --mist: #94b4c0;
  --sand: #f5e6c8;
  --showcase-bg: rgba(10, 36, 48, 0.78);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-size: auto, auto, 48px 48px, 48px 48px;
  line-height: 1.55;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0.6rem 0.9rem;
  z-index: 100;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: border-color 0.3s ease, background 0.3s ease;
}

body.is-scrolled .site-header {
  border-bottom-color: var(--line);
  background: var(--header-scrolled);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
  min-width: 0;
}

.brand-mark__logo {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: 9rem;
  object-fit: contain;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.header-end {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  margin-left: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.theme-toggle {
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 999px;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--sea);
  color: var(--sea);
  background: color-mix(in srgb, var(--sea) 10%, transparent);
}

.theme-toggle__icon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

html[data-theme="light"] .theme-toggle__icon--moon,
html:not([data-theme]) .theme-toggle__icon--moon {
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--nav-link-color);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--nav-link-hover);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown__arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.nav-dropdown:hover .nav-dropdown__arrow,
.nav-dropdown:focus-within .nav-dropdown__arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.nav-dropdown__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__link,
.nav-dropdown:focus-within .nav-dropdown__link {
  color: var(--nav-link-hover);
  background: color-mix(in srgb, var(--sea) 8%, transparent);
}

.nav-dropdown__arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.nav-dropdown:hover .nav-dropdown__arrow,
.nav-dropdown:focus-within .nav-dropdown__arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  width: max-content;
  min-width: 17.5rem;
  padding: 0.6rem;
  background: var(--header-scrolled);
  border: 1px solid var(--card-border);
  border-radius: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s, visibility 0.2s ease 0.05s;
  z-index: 50;
}

/* Invisible Hover Bridge between link and dropdown menu */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0px);
  transition-delay: 0s;
}

.nav-dropdown__menu--right {
  left: auto;
  right: 0;
  transform: translateY(2px);
}

.nav-dropdown:hover .nav-dropdown__menu--right,
.nav-dropdown:focus-within .nav-dropdown__menu--right {
  transform: translateY(0px);
  transition-delay: 0s;
}

.nav-dropdown__link--highlight {
  color: var(--sea);
  font-weight: 700;
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}

.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
  background: color-mix(in srgb, var(--sea) 14%, transparent);
}

.nav-dropdown__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.nav-dropdown__icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-dropdown__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-dropdown__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav-dropdown__desc {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 30;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(7, 24, 32, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5.5rem 1.25rem 3rem;
    gap: 1.25rem;
    font-size: 1.15rem;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-dropdown {
    width: 100%;
    max-width: 24rem;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    margin-top: 0.4rem;
    padding: 0.5rem;
  }

  .nav-dropdown__item {
    color: #ffffff;
  }

  .nav-dropdown__desc {
    color: rgba(255, 255, 255, 0.72);
  }

  .nav-dropdown__item:hover,
  .nav-dropdown__item:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  .site-nav a {
    color: #e7f3f0;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--sand);
  }

  body.is-nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.is-nav-open {
    overflow: hidden;
  }

  body.is-nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #ffffff;
  }

  body.is-nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.is-nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #ffffff;
  }
}

@media (max-width: 480px) {
  .hero__stage {
    height: 310px;
    max-width: 320px;
  }

  .hero-chip--dev {
    top: -15px;
    left: -5px;
    padding: 0.5rem 0.75rem;
  }

  .hero-chip__code {
    font-size: 0.7rem;
  }

  .hero-chip__status {
    font-size: 0.66rem;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn-primary,
  .hero__cta .btn-ghost,
  .hero__cta .btn-quote {
    width: 100%;
    justify-content: center;
  }

  .dev-token {
    font-size: 0.72rem;
  }

  .hero-tech-ticker__group {
    font-size: 0.75rem;
    gap: 1.25rem;
    padding-right: 1.25rem;
  }

  .app-row__link {
    gap: 0.6rem;
    padding: 0.95rem 0.3rem;
  }

  .app-row__icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  overflow: hidden;
}

.hero__bg-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0, 85, 255, 0.14), transparent 70%),
    linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 35%, rgba(0,0,0,0.95), transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 35%, rgba(0,0,0,0.95), transparent 85%);
}

.hero__bg-aura {
  position: absolute;
  top: -15%;
  left: 25%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(0, 85, 255, 0.09) 45%, transparent 75%);
  filter: blur(50px);
  animation: hero-breathe 8s ease-in-out infinite alternate;
}

.hero__bg-pulse {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__bg-pulse--a {
  top: 8%;
  right: 12%;
  width: clamp(14rem, 30vw, 24rem);
  height: clamp(14rem, 30vw, 24rem);
  border: 1px dashed rgba(0, 85, 255, 0.28);
  animation: hero-spin-slow 35s linear infinite;
}

.hero__bg-pulse--b {
  bottom: 8%;
  left: 8%;
  width: clamp(12rem, 25vw, 20rem);
  height: clamp(12rem, 25vw, 20rem);
  border: 1px solid rgba(14, 165, 233, 0.22);
  animation: hero-spin-slow 28s linear infinite reverse;
}

/* DEV / Developer Hero Theme */
.hero__dev-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0, 229, 255, 0.16), transparent 75%),
    radial-gradient(600px 400px at 80% 80%, rgba(0, 230, 118, 0.12), transparent 70%),
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  mask-image: radial-gradient(ellipse 95% 95% at 50% 35%, rgba(0,0,0,0.95), transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 35%, rgba(0,0,0,0.95), transparent 85%);
}

.hero__dev-tokens {
  position: absolute;
  inset: 0;
  font-family: "Cascadia Code", "Fira Code", "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0, 160, 220, 0.4);
  pointer-events: none;
  overflow: hidden;
}

html[data-theme="dark"] .hero__dev-tokens {
  color: rgba(0, 229, 255, 0.35);
}

.dev-token {
  position: absolute;
  white-space: nowrap;
  animation: dev-token-float 8s ease-in-out infinite alternate;
  user-select: none;
}

.dev-token--1 { top: 10%; left: 6%; animation-delay: 0s; color: rgba(0, 102, 204, 0.75); }
.dev-token--2 { top: 26%; right: 8%; animation-delay: 1.5s; color: rgba(0, 145, 75, 0.75); }
.dev-token--3 { top: 68%; left: 4%; animation-delay: 3s; color: rgba(135, 45, 200, 0.75); }
.dev-token--4 { top: 82%; right: 14%; animation-delay: 2.2s; color: rgba(0, 120, 210, 0.75); }
.dev-token--5 { top: 46%; left: 44%; animation-delay: 4s; color: rgba(185, 105, 0, 0.75); }

html[data-theme="dark"] .dev-token--1 { color: rgba(0, 200, 255, 0.75); }
html[data-theme="dark"] .dev-token--2 { color: rgba(0, 230, 118, 0.75); }
html[data-theme="dark"] .dev-token--3 { color: rgba(192, 132, 252, 0.75); }
html[data-theme="dark"] .dev-token--4 { color: rgba(56, 189, 248, 0.75); }
html[data-theme="dark"] .dev-token--5 { color: rgba(251, 191, 36, 0.75); }

@keyframes dev-token-float {
  0% { transform: translateY(0) scale(0.96); opacity: 0.5; }
  100% { transform: translateY(-16px) scale(1.06); opacity: 0.95; }
}

.hero__dev-scanbeam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.75) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.7), 0 0 30px rgba(0, 229, 255, 0.4);
  animation: hero-scanbeam-move 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-scanbeam-move {
  0% { top: 4%; opacity: 0.25; }
  50% { opacity: 0.85; }
  100% { top: 94%; opacity: 0.25; }
}

/* Developer Console Terminal Chip */
.hero-chip--dev {
  position: absolute;
  top: -24px;
  left: -20px;
  background: rgba(8, 20, 28, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 229, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0.85rem;
  padding: 0.65rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  z-index: 4;
  animation: float-chip 7s ease-in-out infinite alternate;
}

.hero-chip__terminal-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 0.1rem;
}

.hero-chip__terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-chip__terminal-dots span:nth-child(1) { background: #ef4444; }
.hero-chip__terminal-dots span:nth-child(2) { background: #f59e0b; }
.hero-chip__terminal-dots span:nth-child(3) { background: #10b981; }

.hero-chip__code {
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-chip__status {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 500;
}

/* Live Tech Marquee Ticker */
.hero-tech-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--sea) 8%, var(--bg-main));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin: 1.5rem 0 2.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: none;
  z-index: 2;
}

.hero-tech-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-marquee 30s linear infinite;
  will-change: transform;
}

.hero-tech-ticker:hover .hero-tech-ticker__track {
  animation-play-state: paused;
}

.hero-tech-ticker__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-theme="dark"] .hero-tech-ticker__group {
  color: #a3c7d6;
}

html[data-theme="light"] .hero-tech-ticker__group {
  color: #1a3c4c;
}

.ticker-dot {
  color: var(--sea);
  font-size: 1.1rem;
}

@keyframes ticker-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tech-ticker__track {
    animation: none;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vh, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 8vh, 5rem);
  max-width: 38rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-soft);
  max-width: 14ch;
}

.hero__lead {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero__cta {
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 420px;
  transform-style: preserve-3d;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-orb--a {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.5), transparent 70%);
  top: -20px;
  right: -20px;
  animation: orb-float 8s ease-in-out infinite alternate;
}

.glow-orb--b {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.42), transparent 70%);
  bottom: -18px;
  left: -24px;
  animation: orb-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(18px, 14px) scale(1.08); }
}

.hero-orbit {
  position: absolute;
  inset: 8% 10% 28% 10%;
  z-index: 1;
}

.hero-orbit__item {
  --i: 0;
  position: absolute;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 28px rgba(7, 24, 32, 0.28),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  background: #0a2430;
  opacity: 0;
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(0.88);
  animation:
    hero-icon-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    hero-icon-float 5.5s ease-in-out infinite;
  animation-delay:
    calc(0.12s + var(--i) * 0.08s),
    calc(0.85s + var(--i) * 0.22s);
}

.hero-orbit__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orbit__item:nth-child(1) { top: 6%; left: 8%; }
.hero-orbit__item:nth-child(2) { top: 0%; right: 10%; }
.hero-orbit__item:nth-child(3) { top: 38%; left: 0%; width: 3.8rem; height: 3.8rem; }
.hero-orbit__item:nth-child(4) { top: 34%; right: 2%; width: 3.9rem; height: 3.9rem; }
.hero-orbit__item:nth-child(5) { bottom: 4%; left: 18%; width: 3.6rem; height: 3.6rem; }
.hero-orbit__item:nth-child(6) { bottom: 0%; right: 18%; width: 4rem; height: 4rem; }

@keyframes hero-icon-in {
  to {
    opacity: 1;
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(1);
  }
}

@keyframes hero-icon-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.hero-panel,
.hero-chip {
  position: absolute;
  z-index: 3;
  border-radius: 1.15rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(7, 24, 32, 0.28);
  opacity: 0;
  animation: hero-panel-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-panel {
  left: 4%;
  right: 4%;
  bottom: 18%;
  padding: 1rem 1.1rem 1.05rem;
  background: linear-gradient(160deg, rgba(8, 28, 40, 0.94), rgba(6, 40, 58, 0.9));
  color: #f3fbf8;
  transform: translate3d(calc(var(--hero-shift-x) * 0.55), calc(var(--hero-shift-y) * 0.55 + 16px), 0);
  animation-delay: 0.28s;
}

.hero-panel__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-panel__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.hero-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hero-panel__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hero-panel__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-panel__meta {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(243, 251, 248, 0.86);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hero-panel__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.hero-panel__pills span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e8f4ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.hero-chip {
  padding: 0.78rem 0.95rem;
  max-width: 88%;
  animation-name: hero-chip-in;
}

.hero-chip--play {
  right: 0;
  bottom: 0;
  z-index: 4;
  background: linear-gradient(145deg, #0b3d6e 0%, #0a5c8a 100%);
  animation-delay: 0.42s;
  transform: translate3d(calc(var(--hero-shift-x) * 0.8), calc(var(--hero-shift-y) * 0.8 + 12px), 0);
}

.hero-chip--saas {
  left: 0;
  top: 0;
  z-index: 2;
  max-width: 78%;
  background: linear-gradient(145deg, #12353f 0%, #0f4f5c 100%);
  animation-delay: 0.18s;
  transform: translate3d(calc(var(--hero-shift-x) * 0.35), calc(var(--hero-shift-y) * 0.35 - 10px), 0);
}

.hero-chip__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hero-chip__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hero-chip__tags span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f0f9ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.35rem;
  padding: 0.14rem 0.42rem;
  opacity: 0;
  animation: hero-tag-in 0.45s ease forwards;
  animation-delay: calc(0.55s + var(--tag-i, 0) * 0.06s);
}

.hero-chip__tags span:nth-child(1) { --tag-i: 0; }
.hero-chip__tags span:nth-child(2) { --tag-i: 1; }
.hero-chip__tags span:nth-child(3) { --tag-i: 2; }
.hero-chip__tags span:nth-child(4) { --tag-i: 3; }
.hero-chip__tags span:nth-child(5) { --tag-i: 4; }

.hero-chip__desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(240, 249, 255, 0.92);
}

@keyframes hero-panel-in {
  to {
    opacity: 1;
    transform: translate3d(calc(var(--hero-shift-x) * 0.55), calc(var(--hero-shift-y) * 0.55), 0);
  }
}

@keyframes hero-chip-in {
  to {
    opacity: 1;
    transform: translate3d(
      calc(var(--hero-shift-x) * var(--chip-parallax, 0.6)),
      calc(var(--hero-shift-y) * var(--chip-parallax, 0.6)),
      0
    );
  }
}

.hero-chip--play { --chip-parallax: 0.8; }
.hero-chip--saas { --chip-parallax: 0.35; }

@keyframes hero-tag-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.hero__brand,
.hero__headline,
.hero__lead,
.hero__cta {
  animation: hero-copy-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand { animation-delay: 0.05s; }
.hero__headline { animation-delay: 0.12s; }
.hero__lead { animation-delay: 0.2s; }
.hero__cta { animation-delay: 0.28s; }

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #0055ff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 85, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: #2563eb;
  box-shadow: 0 6px 22px rgba(0, 85, 255, 0.48);
}

.btn-ghost {
  border: 1px solid var(--btn-ghost-border);
  color: var(--btn-ghost-text);
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(12, 30, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--sea);
  color: var(--sea);
  background: var(--card-bg);
  box-shadow: 0 8px 25px rgba(0, 85, 255, 0.25);
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost:focus-visible {
  background: rgba(14, 38, 54, 0.98);
  color: #60a5fa;
  border-color: #60a5fa;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.35);
}

.section {
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section__intro h2,
.app-details h2,
.more-apps h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section__intro h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sea), #00e5ff);
  transition: width 0.4s ease;
}

.section__intro.is-visible h2::after {
  width: 4rem;
}

.section__intro p,
.app-details p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.apps-section {
  background: transparent;
}

.app-list,
.tool-list,
.feature-list,
.more-apps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.app-row {
  position: relative;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-radius: 0.85rem;
  overflow: hidden;
}

.app-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--accent, var(--sea)) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.app-row:hover::before {
  opacity: 1;
}

.app-row__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.6rem;
  text-decoration: none;
  transition: padding-left 0.25s ease;
}

.app-row__link:hover,
.app-row__link:focus-visible {
  padding-left: 1rem;
}

.app-row__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.app-row:hover .app-row__icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 25px color-mix(in srgb, var(--accent, var(--sea)) 45%, transparent);
}

.app-row__icon--placeholder {
  display: inline-block;
  background: rgba(0, 85, 255, 0.2);
}

.app-row__text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.app-row__name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.app-row__badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.app-row__badge--private {
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-border);
  color: var(--muted);
}

.app-row__badge--saas {
  background: color-mix(in srgb, #0b7ea4 16%, transparent);
  border-color: color-mix(in srgb, #0b7ea4 38%, transparent);
  color: #0b7ea4;
}

html[data-theme="dark"] .app-row__badge--saas {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

.app-row__badge--desktop {
  background: color-mix(in srgb, var(--sea) 14%, transparent);
  border-color: color-mix(in srgb, var(--sea) 35%, transparent);
  color: var(--sea-deep);
}

.app-row__badge--dev {
  background: color-mix(in srgb, #f59e0b 16%, transparent);
  border-color: color-mix(in srgb, #f59e0b 40%, transparent);
  color: #b45309;
}

html[data-theme="dark"] .app-row__badge--dev {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.dev-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: baseline;
  margin: 0 clamp(1rem, 4vw, 2.5rem) 0.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 34%, transparent);
  color: var(--text);
}

.dev-notice strong {
  color: #b45309;
}

html[data-theme="dark"] .dev-notice strong {
  color: #fbbf24;
}

.dev-notice a {
  color: inherit;
}

.legal-disclaimer-card {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 0.95rem;
  color: #78350f;
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .legal-disclaimer-card {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fef3c7;
}

.legal-disclaimer-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.legal-disclaimer-card__icon {
  font-size: 1.25rem;
}

.legal-disclaimer-card__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #b45309;
  letter-spacing: -0.02em;
}

html[data-theme="dark"] .legal-disclaimer-card__header h3 {
  color: #fbbf24;
}

.legal-disclaimer-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: inherit;
  opacity: 0.92;
}

.apps-section--compact {
  padding-top: 1rem;
}

.app-row__short {
  color: var(--muted);
}

.app-row__go {
  color: var(--go);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.app-row__link:hover .app-row__go,
.app-row__link:focus-visible .app-row__go {
  transform: translateX(4px);
}

.tools-section {
  padding-top: 1rem;
}

.tool-list {
  display: grid;
  gap: 0.35rem;
  max-width: 52rem;
}

.tool-row {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.65s ease forwards;
  animation-delay: var(--delay, 0s);
  border-bottom: 1px solid var(--line);
}

.tool-row__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.tool-row__link {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  border-bottom: none;
  flex: 1;
}

.tool-row__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-ghost--sm {
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: rgba(0, 85, 255, 0.08);
  color: #0044cc;
  border-color: rgba(0, 85, 255, 0.2);
  text-decoration: none;
}

.btn-ghost--sm:hover,
.btn-ghost--sm:focus-visible {
  background: #0055ff;
  color: #ffffff;
  border-color: #0055ff;
}

.tool-row__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.tool-row__short {
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.site-footer__meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(100%, 36rem);
}

.site-footer__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.site-footer a {
  color: var(--sea-deep);
}

.site-footer__social,
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-grid {
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--sea) 45%, transparent);
  color: var(--sea-deep);
}

.social-link--compact {
  min-height: 2.2rem;
  width: 2.2rem;
  padding: 0;
  justify-content: center;
}

.social-link__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  flex: 0 0 auto;
}

.social-link__label {
  line-height: 1;
}

.social-section .section__intro {
  margin-bottom: 1.1rem;
}

@media (max-width: 700px) {
  .site-footer__meta-wrap {
    align-items: flex-start;
    max-width: none;
  }

  .site-footer__meta {
    text-align: left;
  }
}

/* App pages */
.app-page {
  --accent: var(--sea);
}

.app-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.app-hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% 20%, color-mix(in srgb, var(--accent) 42%, white), transparent 60%),
    linear-gradient(145deg, #0a2430 0%, color-mix(in srgb, var(--accent) 55%, #0a2430) 48%, #123f45 100%);
}

.app-hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(7, 24, 32, 0.55) 72%, rgba(7, 24, 32, 0.82) 100%);
}

.app-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  animation: grain-shift 8s linear infinite;
}

@keyframes grain-shift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-24px);
  }
}

/* Lidìa — hero mare / spiaggia / lido balneare */
.app-hero--sea .app-hero__media {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 40%, #075985 70%, #0f172a 100%);
}

.app-hero--sea .app-hero__sky {
  position: absolute;
  inset: 0 0 38% 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 65% at 75% 25%, rgba(254, 240, 138, 0.6), transparent 65%),
    linear-gradient(180deg, #38bdf8 0%, #7dd3fc 35%, #bae6fd 68%, #e0f2fe 100%);
}

/* Sole + raggi: stesso centro (grid), raggi solo nel cielo (sotto il mare) */
.app-hero--sea .app-hero__sun-wrap {
  position: absolute;
  top: 10%;
  right: 14%;
  width: clamp(5rem, 12vw, 8.5rem);
  height: clamp(5rem, 12vw, 8.5rem);
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  isolation: isolate;
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.25), calc(var(--hero-shift-y, 0px) * 0.25), 0);
}

.app-hero--sea .app-hero__sun {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, #fef08a 42%, #fde047 68%, rgba(253, 224, 71, 0.85) 82%, transparent 100%);
  box-shadow: 0 0 45px rgba(253, 224, 71, 0.85), 0 0 90px rgba(253, 224, 71, 0.45);
  animation: sea-sun-glow 8s ease-in-out infinite alternate;
  z-index: 2;
  position: relative;
}

.app-hero--sea .app-hero__sun-rays {
  grid-area: 1 / 1;
  width: 300%;
  height: 300%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(254, 240, 138, 0.22) 0deg 12deg, transparent 12deg 28deg);
  animation: hero-rays-spin 40s linear infinite;
  pointer-events: none;
  z-index: 1;
  /* Buco sul disco + fade verso i bordi (niente “stecche” sul mare) */
  mask-image:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 38%, #000 52%, rgba(0, 0, 0, 0.35) 72%, transparent 88%),
    linear-gradient(180deg, #000 0%, #000 58%, transparent 92%);
  -webkit-mask-image:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 38%, #000 52%, rgba(0, 0, 0, 0.35) 72%, transparent 88%),
    linear-gradient(180deg, #000 0%, #000 58%, transparent 92%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

@keyframes hero-rays-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Nuvole SVG (dietro gabbiani, davanti al sole) */
.app-hero--sea .app-hero__cloud {
  position: absolute;
  background: transparent !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.35));
}

.app-hero--sea .app-hero__cloud--1 {
  top: 12%;
  left: 6%;
  animation: sea-cloud-drift 32s linear infinite;
}

.app-hero--sea .app-hero__cloud--2 {
  top: 20%;
  left: 38%;
  opacity: 0.85;
  animation: sea-cloud-drift 45s linear infinite reverse;
}

.app-hero--sea .app-hero__cloud--3 {
  top: 8%;
  left: 58%;
  opacity: 0.7;
  animation: sea-cloud-drift 38s linear infinite;
}

@keyframes sea-cloud-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(45px); }
  100% { transform: translateX(0); }
}

.app-hero--sea .app-hero__sea-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  bottom: 22%;
  z-index: 3;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 30%, #075985 65%, #0c4a6e 100%);
}

.app-hero--sea .app-hero__sea-reflections {
  position: absolute;
  inset: 38% 0 25% 0;
  z-index: 5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 24px 16px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
  animation: sea-shimmer 4s ease-in-out infinite alternate;
}

@keyframes sea-shimmer {
  0% { opacity: 0.3; transform: translateY(0); }
  100% { opacity: 0.65; transform: translateY(-4px); }
}

.app-hero--sea .app-hero__wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 22%;
  z-index: 6;
  background-repeat: repeat-x;
  background-size: 1200px 100%;
  pointer-events: none;
}

.app-hero--sea .app-hero__wave--a {
  top: 40%;
  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(125,211,252,0.45)' d='M0 40 Q150 15 300 40 T600 40 T900 40 T1200 40 V120 H0Z'/%3E%3C/svg%3E");
  animation: sea-wave-drift 12s linear infinite;
}

.app-hero--sea .app-hero__wave--b {
  top: 48%;
  height: 24%;
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(56,189,248,0.55)' d='M0 50 Q200 20 400 50 T800 50 T1200 50 V120 H0Z'/%3E%3C/svg%3E");
  animation: sea-wave-drift 18s linear infinite reverse;
}

.app-hero--sea .app-hero__wave--c {
  top: 56%;
  height: 26%;
  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(14,165,233,0.65)' d='M0 60 Q180 30 360 60 T720 60 T1200 60 V120 H0Z'/%3E%3C/svg%3E");
  animation: sea-wave-drift 24s linear infinite;
}

.app-hero--sea .app-hero__foam-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 66%;
  height: 14%;
  z-index: 7;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.45) 40%, rgba(240, 249, 255, 0.75) 60%, transparent 100%);
  filter: blur(1px);
  animation: sea-foam-breathe 5s ease-in-out infinite;
}

.app-hero--sea .app-hero__sand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 8;
  background:
    radial-gradient(ellipse 80% 40% at 30% 0%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #fef08a 0%, #fde047 35%, #eab308 100%);
}

.app-hero--sea .app-hero__wash {
  z-index: 9;
  background:
    linear-gradient(
      180deg,
      rgba(6, 40, 54, 0.04) 0%,
      rgba(6, 40, 54, 0.12) 35%,
      rgba(6, 30, 42, 0.52) 68%,
      rgba(5, 22, 32, 0.86) 100%
    );
}

/* Gabbiani nel cielo */
.app-hero--sea .app-hero__seagull {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.app-hero--sea .app-hero__seagull--1 {
  top: 14%;
  left: 12%;
  animation: seagull-fly 22s linear infinite;
}

.app-hero--sea .app-hero__seagull--2 {
  top: 22%;
  left: 28%;
  animation: seagull-fly 28s linear infinite;
  animation-delay: 4s;
}

@keyframes seagull-fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, -15px) rotate(4deg); }
  50% { transform: translate(200px, 5px) rotate(-2deg); }
  75% { transform: translate(300px, -10px) rotate(3deg); }
  100% { transform: translate(400px, 0) rotate(0deg); }
}

/* Riflesso sole sull'acqua (allineato sotto il sole) */
.app-hero--sea .app-hero__sun-trail {
  position: absolute;
  top: 36%;
  right: 14%;
  width: clamp(5rem, 12vw, 8.5rem);
  height: 28%;
  z-index: 4;
  background: radial-gradient(ellipse 55% 100% at 50% 0%, rgba(253, 224, 71, 0.55), rgba(245, 158, 11, 0.28) 48%, transparent 85%);
  filter: blur(4px);
  pointer-events: none;
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.25), 0, 0);
  animation: sun-trail-shimmer 3.5s ease-in-out infinite alternate;
}

@keyframes sun-trail-shimmer {
  0% { opacity: 0.5; transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.25), 0, 0) scaleX(0.9); }
  100% { opacity: 0.85; transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.25), 0, 0) scaleX(1.1); }
}

/* Pesci tropicali (sopra il wash, nella fascia mare) */
.app-hero--sea .app-hero__fish-group {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  height: 28%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.app-hero--sea .app-hero__fish {
  position: absolute;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.app-hero--sea .app-hero__fish--1 {
  top: 18%;
  left: -80px;
  animation: fish-swim-left 14s linear infinite;
}

.app-hero--sea .app-hero__fish--2 {
  top: 50%;
  left: -120px;
  animation: fish-swim-left 20s linear infinite 4s;
}

.app-hero--sea .app-hero__fish--3 {
  top: 32%;
  right: -80px;
  animation: fish-swim-right 17s linear infinite 2s;
}

@keyframes fish-swim-left {
  0% { transform: translate3d(0, 0, 0) scaleX(-1); }
  50% { transform: translate3d(50vw, -10px, 0) scaleX(-1); }
  100% { transform: translate3d(calc(100vw + 160px), 0, 0) scaleX(-1); }
}

@keyframes fish-swim-right {
  0% { transform: translate3d(0, 0, 0) scaleX(1); }
  50% { transform: translate3d(-50vw, 10px, 0) scaleX(1); }
  100% { transform: translate3d(calc(-100vw - 160px), 0, 0) scaleX(1); }
}

/* Ombrelloni sulla sabbia (sopra il wash, così non restano in ombra) */
.app-hero--sea .app-hero__beach-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  z-index: 11;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: clamp(1.5rem, 8vw, 7rem);
  gap: clamp(0.75rem, 2.5vw, 2rem);
}

.app-hero--sea .app-hero__umbrella {
  position: relative;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  animation: umbrella-pop 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, umbrella-sway 6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.app-hero--sea .app-hero__umbrella--1 {
  animation-delay: 0.2s, 1.4s;
}

.app-hero--sea .app-hero__umbrella--2 {
  animation-delay: 0.5s, 1.7s;
}

.app-hero--sea .app-hero__umbrella--3 {
  animation-delay: 0.8s, 2s;
}

@keyframes umbrella-pop {
  0% { opacity: 0; transform: translateY(30px) scale(0.6); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes umbrella-sway {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(2.5deg); }
}

/* Lidìa Live SaaS Dashboard Glassmorphic Chip */
.hero-chip--lidia-dashboard {
  position: absolute;
  top: 18%;
  right: clamp(1.5rem, 6vw, 6rem);
  z-index: 4;
  background: rgba(6, 26, 38, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(14, 165, 233, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 0.95rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(90%, 340px);
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.7), calc(var(--hero-shift-y, 0px) * 0.7), 0);
  animation: hero-chip-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lidia-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lidia-dash__badge {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 750;
  color: #38bdf8;
}

.lidia-dash__status {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
}

.lidia-dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.lidia-dash__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lidia-dash__val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.lidia-dash__lbl {
  font-size: 0.64rem;
  color: #94b4c0;
  white-space: nowrap;
}

.lidia-dash__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.lidia-dash__fill {
  height: 100%;
  width: 98%;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  border-radius: 999px;
}

/* Parallax shift on Lidìa hero layers */
.app-hero--sea .app-hero__sky {
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.15), calc(var(--hero-shift-y, 0px) * 0.15), 0);
}
.app-hero--sea .app-hero__beach-scene {
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.9), calc(var(--hero-shift-y, 0px) * 0.9), 0);
}

@keyframes sea-wave-drift {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -1200px;
  }
}

@keyframes sea-foam-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-6px);
  }
}

@keyframes sea-sun-glow {
  from {
    opacity: 0.82;
    filter: brightness(0.96);
  }
  to {
    opacity: 1;
    filter: brightness(1.08);
  }
}

/* LanScanner — hero LAN / network matrix background */
.app-hero--lan .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 32%, rgba(0, 229, 255, 0.28), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(0, 230, 118, 0.18), transparent 60%),
    linear-gradient(145deg, #041018 0%, #082230 45%, #051824 100%);
}

.app-hero--lan .app-hero__lan-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 85% at 70% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 70% 35%, rgba(0,0,0,0.9), transparent 88%);
}

.app-hero--lan .app-hero__lan-radar {
  position: absolute;
  top: 10%;
  right: 8%;
  width: clamp(16rem, 36vw, 26rem);
  height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 
    0 0 50px rgba(0, 229, 255, 0.15),
    inset 0 0 50px rgba(0, 229, 255, 0.1);
  pointer-events: none;
  animation: lan-radar-rotate 25s linear infinite;
}

.app-hero--lan .app-hero__lan-radar::before {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 230, 118, 0.4);
}

.app-hero--lan .app-hero__lan-radar::after {
  content: '';
  position: absolute;
  inset: 48%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.5);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, transparent 75%);
}

.app-hero--lan .app-hero__lan-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 16px #00e5ff, 0 0 30px rgba(0, 229, 255, 0.8);
  animation: lan-node-pulse 3s ease-in-out infinite alternate;
}

.app-hero--lan .app-hero__lan-node--1 {
  top: 22%;
  right: 24%;
}

.app-hero--lan .app-hero__lan-node--2 {
  top: 48%;
  right: 12%;
  background: #00e676;
  box-shadow: 0 0 16px #00e676, 0 0 30px rgba(0, 230, 118, 0.8);
  animation-delay: 1s;
}

.app-hero--lan .app-hero__lan-node--3 {
  top: 62%;
  right: 32%;
  animation-delay: 1.8s;
}

.app-hero--lan .app-hero__lan-pulse {
  position: absolute;
  top: 28%;
  right: 14%;
  width: clamp(10rem, 24vw, 18rem);
  height: clamp(10rem, 24vw, 18rem);
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.5);
  animation: lan-pulse-expand 4s ease-out infinite;
}

@keyframes lan-radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lan-node-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

@keyframes lan-pulse-expand {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* P7M Viewer PA — Hero Delicate & Institutional Crypto Theme */
.app-hero--crypto .app-hero__media {
  background: 
    radial-gradient(1000px 550px at 78% 25%, rgba(0, 85, 255, 0.22), transparent 65%),
    radial-gradient(800px 480px at 15% 75%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(155deg, #05111c 0%, #081a2c 50%, #061322 100%);
}

.app-hero--crypto .app-hero__crypto-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 85%);
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.15), calc(var(--hero-shift-y, 0px) * 0.15), 0);
}

.app-hero--crypto .app-hero__crypto-shield {
  position: absolute;
  top: 14%;
  right: 14%;
  width: clamp(10rem, 22vw, 16rem);
  height: clamp(12rem, 26vw, 19rem);
  pointer-events: none;
  filter: drop-shadow(0 0 35px rgba(0, 102, 255, 0.25));
  animation: hero-float-bounce 4s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.35), calc(var(--hero-shift-y, 0px) * 0.35), 0);
}

.app-hero--crypto .app-hero__crypto-ring {
  position: absolute;
  top: 8%;
  right: 8%;
  width: clamp(16rem, 36vw, 26rem);
  height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 50px rgba(0, 85, 255, 0.12), inset 0 0 40px rgba(16, 185, 129, 0.06);
  pointer-events: none;
  animation: hero-spin-slow 35s linear infinite;
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.2), calc(var(--hero-shift-y, 0px) * 0.2), 0);
}

.app-hero--crypto .app-hero__crypto-ring::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dotted rgba(16, 185, 129, 0.35);
}

.app-hero--crypto .app-hero__crypto-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 16px #38bdf8, 0 0 30px rgba(56, 189, 248, 0.8);
  animation: hero-float-bounce 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.app-hero--crypto .app-hero__crypto-node--1 {
  top: 20%;
  right: 26%;
}

.app-hero--crypto .app-hero__crypto-node--2 {
  top: 50%;
  right: 10%;
  background: #34d399;
  box-shadow: 0 0 16px #34d399, 0 0 30px rgba(52, 211, 153, 0.8);
  animation-delay: 1s;
}

.app-hero--crypto .app-hero__crypto-node--3 {
  top: 65%;
  right: 28%;
  width: 9px;
  height: 9px;
  animation-delay: 1.8s;
}

.app-hero--crypto .app-hero__crypto-pulse {
  position: absolute;
  top: 18%;
  right: 14%;
  width: clamp(12rem, 24vw, 18rem);
  height: clamp(12rem, 24vw, 18rem);
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  animation: hero-pulse-expand 4.5s ease-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-hero--sea .app-hero__wave,
  .app-hero--sea .app-hero__foam-line,
  .app-hero--sea .app-hero__sun,
  .app-hero--sea .app-hero__sun-rays,
  .app-hero--sea .app-hero__sun-trail,
  .app-hero--sea .app-hero__cloud,
  .app-hero--sea .app-hero__seagull,
  .app-hero--sea .app-hero__fish,
  .app-hero--sea .app-hero__umbrella,
  .app-hero--lan .app-hero__lan-radar,
  .app-hero--lan .app-hero__lan-node,
  .app-hero--lan .app-hero__lan-pulse,
  .app-hero--crypto .app-hero__crypto-ring,
  .app-hero--crypto .app-hero__crypto-shield,
  .app-hero--crypto .app-hero__crypto-node,
  .app-hero--crypto .app-hero__crypto-pulse,
  .app-hero--energy .app-hero__electric-ring,
  .app-hero--energy .app-hero__gas-aura,
  .app-hero--energy .app-hero__spark,
  .app-hero--energy .app-hero__pulse-arc,
  .app-hero--energy .app-hero__scan-laser,
  .hero-chip--energia-dashboard,
  .app-hero--finance .app-hero__finance-ring,
  .app-hero--shopping .app-hero__shopping-scanbar,
  .app-hero--calc .app-hero__calc-ring,
  .app-hero--family .app-hero__family-heart,
  .app-hero--wellness .app-hero__wellness-breath,
  .app-hero--education .app-hero__education-ring {
    animation: none;
  }
}

/* soldIA — hero Finance / Money Vault theme */
.app-hero--finance .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(31, 107, 74, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(145deg, #04140d 0%, #0c2b1e 45%, #053b23 100%);
}
.app-hero--finance .app-hero__finance-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(31, 107, 74, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 107, 74, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--finance .app-hero__finance-ring {
  position: absolute; top: 8%; right: 10%;
  width: clamp(16rem, 36vw, 26rem); height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%; border: 1px dashed rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 50px rgba(34, 197, 94, 0.2), inset 0 0 40px rgba(34, 197, 94, 0.1);
  animation: hero-spin-slow 28s linear infinite;
}
.app-hero--finance .app-hero__finance-chart {
  position: absolute; bottom: 12%; right: 6%;
  width: clamp(18rem, 40vw, 30rem); height: clamp(8rem, 20vw, 14rem);
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(34, 197, 94, 0.25), transparent 70%);
  border-top: 2px solid rgba(245, 158, 11, 0.6);
  border-radius: 50% 50% 0 0;
  animation: hero-chart-pulse 4s ease-in-out infinite alternate;
}
.app-hero--finance .app-hero__finance-coin {
  position: absolute; border-radius: 50%; background: #f59e0b;
  box-shadow: 0 0 20px #f59e0b, 0 0 35px rgba(245, 158, 11, 0.8);
  animation: hero-float-bounce 3.5s ease-in-out infinite alternate;
}
.app-hero--finance .app-hero__finance-coin--1 { top: 22%; right: 24%; width: 16px; height: 16px; }
.app-hero--finance .app-hero__finance-coin--2 { top: 52%; right: 12%; width: 12px; height: 12px; background: #22c55e; box-shadow: 0 0 20px #22c55e; animation-delay: 1.2s; }
.app-hero--finance .app-hero__finance-pulse {
  position: absolute; top: 22%; right: 14%;
  width: clamp(12rem, 26vw, 20rem); height: clamp(12rem, 26vw, 20rem);
  border-radius: 50%; border: 2px solid rgba(34, 197, 94, 0.45);
  animation: hero-pulse-expand 4.2s ease-out infinite;
}

/* SpesIA — hero Shopping / Scanner theme */
.app-hero--shopping .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(47, 125, 74, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(16, 185, 129, 0.22), transparent 60%),
    linear-gradient(145deg, #03140a 0%, #0a2b18 45%, #053b1d 100%);
}
.app-hero--shopping .app-hero__shopping-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--shopping .app-hero__shopping-ring {
  position: absolute; top: 10%; right: 10%;
  width: clamp(16rem, 36vw, 25rem); height: clamp(16rem, 36vw, 25rem);
  border-radius: 50%; border: 1px dashed rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.2);
  animation: hero-spin-slow 32s linear infinite;
}
.app-hero--shopping .app-hero__shopping-scanbar {
  position: absolute; top: 20%; right: 8%;
  width: clamp(14rem, 32vw, 24rem); height: 3px;
  background: linear-gradient(90deg, transparent, #10b981 50%, transparent);
  box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
  animation: hero-scanbar-slide 3.2s ease-in-out infinite alternate;
}
.app-hero--shopping .app-hero__shopping-node {
  position: absolute; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 16px #10b981; animation: hero-float-bounce 3s ease-in-out infinite alternate;
}
.app-hero--shopping .app-hero__shopping-node--1 { top: 28%; right: 22%; width: 14px; height: 14px; }
.app-hero--shopping .app-hero__shopping-node--2 { top: 58%; right: 14%; width: 10px; height: 10px; animation-delay: 1s; }

/* EnergIA — hero Energy / Luce & Gas / AI Bill Scanner theme */
.app-hero--energy .app-hero__media {
  background: 
    radial-gradient(1100px 650px at 78% 30%, rgba(0, 242, 254, 0.32), transparent 60%),
    radial-gradient(850px 550px at 22% 75%, rgba(245, 158, 11, 0.24), transparent 60%),
    radial-gradient(600px 400px at 50% 10%, rgba(34, 197, 94, 0.18), transparent 70%),
    linear-gradient(145deg, #030d17 0%, #071a29 45%, #06283d 100%);
}

.app-hero--energy .app-hero__energy-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.95), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.95), transparent 88%);
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.2), calc(var(--hero-shift-y, 0px) * 0.2), 0);
}

.app-hero--energy .app-hero__electric-ring {
  position: absolute;
  top: 6%;
  right: 8%;
  width: clamp(18rem, 40vw, 28rem);
  height: clamp(18rem, 40vw, 28rem);
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.45);
  box-shadow: 
    0 0 60px rgba(0, 242, 254, 0.25),
    inset 0 0 45px rgba(0, 242, 254, 0.12);
  pointer-events: none;
  animation: hero-spin-slow 28s linear infinite;
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.35), calc(var(--hero-shift-y, 0px) * 0.35), 0);
}

.app-hero--energy .app-hero__gas-aura {
  position: absolute;
  top: 20%;
  right: 14%;
  width: clamp(12rem, 28vw, 20rem);
  height: clamp(12rem, 28vw, 20rem);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 55%, rgba(245, 158, 11, 0.32) 0%, rgba(239, 68, 68, 0.15) 50%, transparent 75%);
  filter: blur(12px);
  animation: hero-gas-breathe 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.app-hero--energy .app-hero__spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.app-hero--energy .app-hero__spark--luce1 {
  top: 18%;
  right: 26%;
  width: 14px;
  height: 14px;
  background: #00f2fe;
  box-shadow: 0 0 18px #00f2fe, 0 0 32px rgba(0, 242, 254, 0.8);
  animation: hero-float-bounce 2.6s ease-in-out infinite alternate;
}

.app-hero--energy .app-hero__spark--gas1 {
  top: 52%;
  right: 11%;
  width: 12px;
  height: 12px;
  background: #f59e0b;
  box-shadow: 0 0 18px #f59e0b, 0 0 32px rgba(245, 158, 11, 0.8);
  animation: hero-float-bounce 3.2s ease-in-out infinite alternate 1.2s;
}

.app-hero--energy .app-hero__spark--eco {
  top: 68%;
  right: 28%;
  width: 10px;
  height: 10px;
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e, 0 0 28px rgba(34, 197, 94, 0.8);
  animation: hero-float-bounce 3.8s ease-in-out infinite alternate 0.6s;
}

.app-hero--energy .app-hero__pulse-arc {
  position: absolute;
  top: 22%;
  right: 12%;
  width: clamp(12rem, 28vw, 20rem);
  height: clamp(12rem, 28vw, 20rem);
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 254, 0.45);
  animation: hero-pulse-expand 4.2s ease-out infinite;
  pointer-events: none;
}

.app-hero--energy .app-hero__scan-laser {
  position: absolute;
  top: 15%;
  right: 6%;
  width: clamp(16rem, 36vw, 26rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe 30%, #38bdf8 70%, transparent);
  box-shadow: 0 0 18px #00f2fe, 0 0 35px #00f2fe;
  animation: hero-scanbar-slide 3.6s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.85;
}

/* EnergIA Live Glassmorphic ARERA Dashboard Chip */
.hero-chip--energia-dashboard {
  position: absolute;
  top: 18%;
  right: clamp(1.5rem, 6vw, 6rem);
  z-index: 4;
  background: rgba(5, 22, 34, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.38);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.48), 0 0 32px rgba(0, 242, 254, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(92%, 350px);
  transform: translate3d(calc(var(--hero-shift-x, 0px) * 0.7), calc(var(--hero-shift-y, 0px) * 0.7), 0);
  animation: hero-chip-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.energia-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.energia-dash__badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 750;
  color: #00f2fe;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.energia-dash__badge svg {
  color: #00f2fe;
  filter: drop-shadow(0 0 6px #00f2fe);
}

.energia-dash__status {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.energia-dash__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: hero-dot-pulse 1.8s ease-in-out infinite;
}

.energia-dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.7rem;
  padding: 0.6rem 0.5rem;
}

.energia-dash__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.energia-dash__val {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.energia-dash__val--luce {
  color: #38bdf8;
}

.energia-dash__val--gas {
  color: #fbbf24;
}

.energia-dash__val--save {
  color: #4ade80;
}

.energia-dash__lbl {
  font-size: 0.62rem;
  color: #94b4c0;
  white-space: nowrap;
}

.energia-dash__footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.energia-dash__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
}

.energia-dash__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.energia-dash__fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #00f2fe 0%, #f59e0b 50%, #4ade80 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.energia-dash__tag {
  font-size: 0.66rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

@keyframes hero-gas-breathe {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes hero-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

@media (max-width: 768px) {
  .hero-chip--energia-dashboard {
    top: 6%;
    right: 50%;
    transform: translateX(50%) translate3d(calc(var(--hero-shift-x, 0px) * 0.3), calc(var(--hero-shift-y, 0px) * 0.3), 0);
    width: min(92%, 330px);
    padding: 0.85rem 1rem;
  }
}

/* ScontIA — hero Calc / Discount theme */
.app-hero--calc .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(196, 92, 38, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(249, 115, 22, 0.22), transparent 60%),
    linear-gradient(145deg, #180903 0%, #301407 45%, #421b0a 100%);
}
.app-hero--calc .app-hero__calc-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(249, 115, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--calc .app-hero__calc-ring {
  position: absolute; top: 8%; right: 10%;
  width: clamp(16rem, 36vw, 26rem); height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%; border: 1px dashed rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 50px rgba(249, 115, 22, 0.2);
  animation: hero-spin-slow 26s linear infinite;
}
.app-hero--calc .app-hero__calc-node {
  position: absolute; border-radius: 50%; background: #f97316;
  box-shadow: 0 0 18px #f97316; animation: hero-float-bounce 2.8s ease-in-out infinite alternate;
}
.app-hero--calc .app-hero__calc-node--1 { top: 24%; right: 20%; width: 14px; height: 14px; }
.app-hero--calc .app-hero__calc-node--2 { top: 52%; right: 12%; width: 11px; height: 11px; animation-delay: 1.1s; }
.app-hero--calc .app-hero__calc-pulse {
  position: absolute; top: 22%; right: 14%;
  width: clamp(12rem, 26vw, 20rem); height: clamp(12rem, 26vw, 20rem);
  border-radius: 50%; border: 2px solid rgba(249, 115, 22, 0.45);
  animation: hero-pulse-expand 4s ease-out infinite;
}

/* Klania — hero Family / Cozy Home theme */
.app-hero--family .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(138, 77, 99, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(236, 72, 153, 0.2), transparent 60%),
    linear-gradient(145deg, #14070c 0%, #280f19 45%, #381523 100%);
}
.app-hero--family .app-hero__family-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(236, 72, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--family .app-hero__family-ring {
  position: absolute; top: 8%; right: 10%;
  width: clamp(16rem, 36vw, 26rem); height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%; border: 1px dashed rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.2);
  animation: hero-spin-slow 30s linear infinite;
}
.app-hero--family .app-hero__family-heart {
  position: absolute; top: 26%; right: 16%;
  width: clamp(8rem, 20vw, 15rem); height: clamp(8rem, 20vw, 15rem);
  border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  animation: hero-breathe 4s ease-in-out infinite alternate;
}
.app-hero--family .app-hero__family-node {
  position: absolute; border-radius: 50%; background: #ec4899;
  box-shadow: 0 0 16px #ec4899; animation: hero-float-bounce 3.2s ease-in-out infinite alternate;
}
.app-hero--family .app-hero__family-node--1 { top: 22%; right: 24%; width: 14px; height: 14px; }
.app-hero--family .app-hero__family-node--2 { top: 56%; right: 12%; width: 11px; height: 11px; animation-delay: 1.3s; }

/* Routinia — hero Wellness / Mindfulness theme */
.app-hero--wellness .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(26, 111, 138, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(6, 182, 212, 0.22), transparent 60%),
    linear-gradient(145deg, #031117 0%, #07222e 45%, #0a3345 100%);
}
.app-hero--wellness .app-hero__wellness-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--wellness .app-hero__wellness-ring {
  position: absolute; top: 8%; right: 10%;
  width: clamp(16rem, 36vw, 26rem); height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%; border: 1px dashed rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.2);
  animation: hero-spin-slow 35s linear infinite;
}
.app-hero--wellness .app-hero__wellness-breath {
  position: absolute; top: 22%; right: 14%;
  width: clamp(12rem, 26vw, 20rem); height: clamp(12rem, 26vw, 20rem);
  border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
  animation: hero-breathe 5s ease-in-out infinite alternate;
}
.app-hero--wellness .app-hero__wellness-particle {
  position: absolute; border-radius: 50%; background: #06b6d4;
  box-shadow: 0 0 16px #06b6d4; animation: hero-float-bounce 3.6s ease-in-out infinite alternate;
}
.app-hero--wellness .app-hero__wellness-particle--1 { top: 25%; right: 22%; width: 14px; height: 14px; }
.app-hero--wellness .app-hero__wellness-particle--2 { top: 58%; right: 12%; width: 10px; height: 10px; animation-delay: 1.4s; }

/* Cambia-Menti — hero Education / Courses theme */
.app-hero--education .app-hero__media {
  background: 
    radial-gradient(1100px 600px at 78% 30%, rgba(0, 150, 199, 0.38), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(14, 165, 233, 0.22), transparent 60%),
    linear-gradient(145deg, #021218 0%, #052633 45%, #07384a 100%);
}
.app-hero--education .app-hero__education-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--education .app-hero__education-ring {
  position: absolute; top: 8%; right: 10%;
  width: clamp(16rem, 36vw, 26rem); height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%; border: 1px dashed rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.2);
  animation: hero-spin-slow 28s linear infinite;
}
.app-hero--education .app-hero__education-stream {
  position: absolute; top: 22%; right: 14%;
  width: clamp(12rem, 26vw, 20rem); height: clamp(12rem, 26vw, 20rem);
  border-radius: 50%; border: 2px solid rgba(14, 165, 233, 0.45);
  animation: hero-pulse-expand 4.2s ease-out infinite;
}
.app-hero--education .app-hero__education-node {
  position: absolute; border-radius: 50%; background: #0ea5e9;
  box-shadow: 0 0 16px #0ea5e9; animation: hero-float-bounce 3s ease-in-out infinite alternate;
}
.app-hero--education .app-hero__education-node--1 { top: 24%; right: 22%; width: 14px; height: 14px; }
.app-hero--education .app-hero__education-node--2 { top: 58%; right: 14%; width: 11px; height: 11px; animation-delay: 1.1s; }

/* ViaggIA — hero Travel theme */
.app-hero--travel .app-hero__media {
  background:
    radial-gradient(1100px 600px at 78% 28%, rgba(14, 165, 233, 0.42), transparent 60%),
    radial-gradient(820px 520px at 18% 72%, rgba(56, 189, 248, 0.22), transparent 60%),
    linear-gradient(145deg, #03131c 0%, #072636 42%, #0a3d57 100%);
}
.app-hero--travel .app-hero__travel-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 70% 18%, rgba(125, 211, 252, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 10%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.app-hero--travel .app-hero__travel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 75% 35%, rgba(0,0,0,0.9), transparent 88%);
}
.app-hero--travel .app-hero__travel-ring {
  position: absolute;
  top: 8%;
  right: 10%;
  width: clamp(16rem, 36vw, 26rem);
  height: clamp(16rem, 36vw, 26rem);
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.22);
  animation: hero-spin-slow 32s linear infinite;
}
.app-hero--travel .app-hero__travel-plane {
  position: absolute;
  top: 26%;
  right: 18%;
  width: clamp(3.2rem, 7vw, 4.6rem);
  height: clamp(3.2rem, 7vw, 4.6rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #e0f2fe, #38bdf8 55%, #0284c7 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.55);
  animation: hero-float-bounce 3.4s ease-in-out infinite alternate;
}
.app-hero--travel .app-hero__travel-plane::after {
  content: "✈";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  transform: rotate(-18deg);
  color: #0c4a6e;
}
.app-hero--travel .app-hero__travel-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 16px #f59e0b;
  animation: hero-float-bounce 3s ease-in-out infinite alternate;
}
.app-hero--travel .app-hero__travel-pin--1 { top: 22%; right: 34%; }
.app-hero--travel .app-hero__travel-pin--2 { top: 48%; right: 14%; animation-delay: 0.8s; }
.app-hero--travel .app-hero__travel-pin--3 { top: 62%; right: 28%; animation-delay: 1.4s; width: 9px; height: 9px; }

.hero-chip--dev-app {
  right: 0;
  top: 12%;
  z-index: 3;
  max-width: min(16rem, 52vw);
  background: linear-gradient(145deg, #3a2a0d 0%, #5a4214 100%);
  border: 1px solid rgba(251, 191, 36, 0.38);
  animation-delay: 0.3s;
  transform: translate3d(calc(var(--hero-shift-x) * -0.25), calc(var(--hero-shift-y) * 0.25), 0);
}

.hero-chip--dev-app .hero-chip__label {
  color: #fbbf24;
}

/* Global Shared Keyframes */
@keyframes hero-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hero-breathe {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}
@keyframes hero-float-bounce {
  0% { transform: translateY(0) scale(0.95); opacity: 0.7; }
  100% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}
@keyframes hero-pulse-expand {
  0% { transform: scale(0.3); opacity: 0.95; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes hero-scanbar-slide {
  0% { top: 15%; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: 75%; opacity: 0.4; }
}
@keyframes hero-chart-pulse {
  0% { transform: scaleY(0.9); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 0.95; }
}

.app-hero__copy {
  position: relative;
  z-index: 12;
  padding: clamp(5rem, 14vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vh, 4rem);
  color: var(--foam);
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.85;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 243, 240, 0.35);
}

.app-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.app-hero__title-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.app-hero__icon {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  max-width: 5.5rem;
  max-height: 5.5rem;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.shot-scroller {
  overflow-x: auto;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem));
  padding: 0.25rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.shot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  width: max-content;
}

.shot-list li {
  flex: 0 0 auto;
}

.shot-list__open {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-list__open:hover,
.shot-list__open:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(7, 24, 32, 0.28);
  outline: 2px solid color-mix(in srgb, var(--sea) 65%, white);
  outline-offset: 3px;
}

.shot-list img {
  display: block;
  height: auto;
  max-height: min(58vh, 520px);
  width: auto;
  max-width: min(85vw, 420px);
  object-fit: contain;
  border-radius: 1rem;
  background: #0a2430;
  box-shadow: 0 18px 40px rgba(7, 24, 32, 0.18);
  pointer-events: none;
}

.shot-lightbox {
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: rgba(5, 18, 26, 0.96);
  color: #e7f3f0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.shot-lightbox::backdrop {
  background: rgba(3, 12, 18, 0.78);
  backdrop-filter: blur(6px);
}

.shot-lightbox__frame {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1rem 1rem 0.85rem;
  min-height: min(78vh, 720px);
}

.shot-lightbox__img {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  max-width: min(86vw, 920px);
  max-height: min(72vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  background: #071820;
}

.shot-lightbox__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox__nav {
  grid-row: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox__nav--prev {
  grid-column: 1;
}

.shot-lightbox__nav--next {
  grid-column: 3;
}

.shot-lightbox__close:hover,
.shot-lightbox__nav:hover,
.shot-lightbox__close:focus-visible,
.shot-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.shot-lightbox__meta {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.15rem 0.35rem 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

.shot-lightbox__caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-lightbox__count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.app-gallery .section__intro {
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .shot-lightbox__frame {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 2.6rem 0.75rem 0.75rem;
  }

  .shot-lightbox__img {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: min(62vh, 520px);
  }

  .shot-lightbox__nav--prev,
  .shot-lightbox__nav--next {
    grid-row: 2;
    justify-self: center;
  }

  .shot-lightbox__nav--prev {
    grid-column: 1;
  }

  .shot-lightbox__nav--next {
    grid-column: 2;
  }

  .shot-lightbox__meta {
    grid-row: 3;
    flex-direction: column;
    gap: 0.25rem;
  }
}

.app-video {
  padding-top: 0.5rem;
}

.app-video__frame {
  position: relative;
  width: min(100%, 56rem);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 1rem;
  background: #0a2430;
  box-shadow: 0 18px 40px rgba(7, 24, 32, 0.18);
}

.app-video__frame--portrait {
  width: min(100%, 22rem);
  aspect-ratio: 9 / 19.5;
  border-radius: 1.6rem;
}

.app-media {
  padding-top: 0.5rem;
}

.app-media__grid {
  display: grid;
  grid-template-columns: minmax(11rem, 16.5rem) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.app-media__video .app-video__frame--portrait {
  width: 100%;
  max-width: 16.5rem;
  max-height: min(58vh, 520px);
  margin-inline: 0;
}

.app-media .shot-scroller {
  margin: 0;
  padding: 0.15rem 0 0.35rem;
}

.app-media .shot-list img {
  max-height: min(58vh, 520px);
}

@media (max-width: 860px) {
  .app-media__grid {
    grid-template-columns: 1fr;
  }

  .app-media__video .app-video__frame--portrait {
    width: min(100%, 16rem);
    margin-inline: auto;
  }
}

.app-video__frame iframe,
.app-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #0a2430;
}

.app-hero__lead {
  margin: 1.1rem 0 0;
  font-size: 1.12rem;
  max-width: 46ch;
  color: rgba(231, 243, 240, 0.9);
}

.app-hero .btn-primary {
  background: #0055ff;
  color: #ffffff !important;
  border: 1px solid #0055ff;
  box-shadow: 0 4px 18px rgba(0, 85, 255, 0.4);
}

.app-hero .btn-primary:hover,
.app-hero .btn-primary:focus-visible {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(0, 85, 255, 0.55);
}

.app-hero .btn-ghost {
  background: rgba(7, 24, 32, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-hero .btn-ghost:hover,
.app-hero .btn-ghost:focus-visible {
  background: rgba(0, 85, 255, 0.88) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(0, 85, 255, 0.45);
}

.app-hero .btn-quote {
  border: 1px solid rgba(253, 224, 71, 0.55);
  color: #fff8dc !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(14, 165, 233, 0.35));
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-hero .btn-quote:hover,
.app-hero .btn-quote:focus-visible {
  border-color: #fde047;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.62), rgba(14, 165, 233, 0.48));
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.4);
  outline: none;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--btn-ghost-text);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(14, 165, 233, 0.12));
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-quote:hover,
.btn-quote:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(14, 165, 233, 0.18));
  outline: none;
}

.quote-cta {
  padding-top: 0.5rem;
}

.quote-cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.15rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent, var(--sea)) 35%, transparent);
  background:
    radial-gradient(900px 280px at 100% 0%, color-mix(in srgb, var(--accent, var(--sea)) 22%, transparent), transparent 60%),
    linear-gradient(145deg, rgba(7, 24, 32, 0.04), rgba(14, 165, 233, 0.08));
  box-shadow: var(--card-shadow);
}

html[data-theme="dark"] .quote-cta__card {
  background:
    radial-gradient(900px 280px at 100% 0%, color-mix(in srgb, var(--accent, var(--sea)) 28%, transparent), transparent 60%),
    linear-gradient(145deg, rgba(10, 36, 48, 0.9), rgba(8, 28, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.12);
}

.quote-cta__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.quote-cta__copy h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.quote-cta__copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.quote-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.quote-strip {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.quote-strip__copy h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote-strip__copy p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 56rem;
}

.app-details__copy p {
  margin: 0 0 0.85rem;
  max-width: 48ch;
  line-height: 1.55;
}

.app-details__copy p:last-of-type {
  margin-bottom: 0;
}

.app-details__copy .muted {
  margin-top: 1rem;
}

.muted {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.feature-list li {
  padding-left: 1rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.app-details code {
  font-size: 0.92em;
  background: var(--btn-ghost-bg);
  color: var(--ink);
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
}

.more-apps__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.more-apps__list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.more-apps__list a:hover,
.more-apps__list a:focus-visible {
  border-bottom-color: var(--sea);
  color: var(--sea-deep);
}

.app-details h2,
.more-apps h2,
.app-details p,
.feature-list li {
  color: inherit;
}

.app-details {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    order: -1;
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .hero__stage {
    height: 360px;
    max-width: 400px;
  }

  .hero-orbit__item {
    width: 3.7rem;
    height: 3.7rem;
  }

  .hero-panel {
    bottom: 16%;
    padding: 0.9rem 1rem;
  }

  .hero-chip--saas {
    max-width: 84%;
  }

  .hero__copy {
    max-width: none;
    padding-top: 1.5rem;
  }

  .hero__headline {
    max-width: 18ch;
  }

  .app-row__link {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-row__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }

  .shot-list img {
    height: min(52vh, 440px);
    max-width: min(72vw, 260px);
  }

  .app-details__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__sun,
  .hero__wave--a,
  .hero__wave--b,
  .hero__wave--c,
  .app-hero__grain,
  .app-row,
  .tool-row,
  .glow-orb,
  .hero-orbit__item,
  .hero-panel,
  .hero-chip,
  .hero-chip__tags span,
  .hero__brand,
  .hero__headline,
  .hero__lead,
  .hero__cta {
    animation: none !important;
  }

  .hero-orbit__item,
  .hero-panel,
  .hero-chip,
  .hero-chip__tags span,
  .hero__brand,
  .hero__headline,
  .hero__lead,
  .hero__cta {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .app-row,
  .tool-row {
    opacity: 1;
    transform: none;
  }
}
