.homepage-public-builder-page {
  --bg: #07101f;
  --panel: #101b31;
  --panel-soft: #14223d;
  --line: rgba(148, 163, 184, .22);
  --text: #f8fafc;
  --muted: #a8b3c8;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --green: #22c55e;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, .18), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(139, 92, 246, .20), transparent 32%),
    linear-gradient(180deg, #081226 0%, #050b16 100%);
  font-family: "Tahoma", "Arial", sans-serif;
}

.homepage-public-builder-page * { box-sizing: border-box; }
.homepage-public-builder-page a { color: inherit; }
.homepage-shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; padding: 28px 0 56px; }
.homepage-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 34px; min-width: 0; max-width: 100%; }
.homepage-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.homepage-brand img, .homepage-brand-mark { width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto; }
.homepage-brand img { object-fit: contain; background: var(--panel); border: 1px solid var(--line); padding: 6px; }
.homepage-brand-mark { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); font-weight: 900; }
.homepage-brand strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.homepage-nav nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; min-width: 0; max-width: 100%; }
.homepage-nav nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.homepage-nav-actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.homepage-nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 800; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.homepage-nav-button.primary { background: linear-gradient(135deg, #2563eb, #9333ea); border-color: transparent; }
.homepage-nav-button.secondary { background: rgba(15,23,42,.55); }
.homepage-nav-button.is-disabled { opacity: .55; cursor: not-allowed; }
.homepage-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: clamp(24px,5vw,64px); align-items: center; min-height: 560px; }
.homepage-hero-copy { min-width: 0; max-width: 100%; }
.homepage-pill { display: inline-flex; margin-bottom: 18px; padding: 7px 13px; border: 1px solid rgba(56,189,248,.32); border-radius: 999px; background: rgba(56,189,248,.10); color: #bae6fd; font-weight: 800; }
.homepage-hero h1 { margin: 0; max-width: 100%; font-size: clamp(2.4rem,6vw,5rem); line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-word; }
.homepage-hero h1 em { display: inline-block; font-style: normal; color: var(--blue); text-shadow: 0 0 30px rgba(56,189,248,.36); }
.homepage-hero p { max-width: 720px; color: var(--muted); font-size: clamp(1rem,2vw,1.28rem); line-height: 1.9; overflow-wrap: anywhere; }
.homepage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.homepage-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 800; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.homepage-button.primary { border: 0; background: linear-gradient(135deg, #2563eb, #9333ea); box-shadow: 0 18px 40px rgba(37,99,235,.25); }
.homepage-button.secondary { background: rgba(15,23,42,.55); }
.homepage-button.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.homepage-visual { min-height: 390px; display: grid; place-items: center; min-width: 0; max-width: 100%; overflow: clip; }
.homepage-visual img { width: min(100%, 460px); max-height: 520px; object-fit: contain; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.homepage-device { width: min(360px,100%); padding: 28px; border: 1px solid rgba(56,189,248,.22); border-radius: 34px; background: linear-gradient(160deg, rgba(20,34,61,.92), rgba(8,19,38,.78)); transform: rotate(-4deg); box-shadow: 0 40px 90px rgba(0,0,0,.36); }
.homepage-device span { display: block; width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--blue), var(--green)); margin-bottom: 22px; }
.homepage-device strong { font-size: 1.25rem; }
.homepage-device .device-card, .homepage-device .device-row { height: 74px; margin-top: 18px; border-radius: 18px; background: rgba(255,255,255,.08); }
.homepage-device .device-row { height: 16px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.homepage-device .device-row.short { width: 72%; }
.homepage-section { margin-top: 58px; }
.homepage-section-heading { text-align: center; margin-bottom: 22px; }
.homepage-section-heading span { color: var(--blue); font-weight: 900; }
.homepage-section-heading h2 { margin: 8px 0; font-size: clamp(1.6rem,3vw,2.4rem); overflow-wrap: anywhere; }
.homepage-section-heading p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.homepage-feature-grid, .homepage-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.homepage-card, .homepage-profile-card, .homepage-stats, .homepage-cta, .homepage-empty { border: 1px solid var(--line); background: rgba(16,27,49,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 70px rgba(0,0,0,.22); }
.homepage-card, .homepage-profile-card, .homepage-empty { border-radius: 20px; padding: 22px; min-width: 0; }
.homepage-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #f8fafc; background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(139,92,246,.92)); box-shadow: 0 16px 40px rgba(56,189,248,.18), inset 0 1px 0 rgba(255,255,255,.20); }
.homepage-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.homepage-card h3, .homepage-profile-card h3 { margin: 16px 0 8px; overflow-wrap: anywhere; }
.homepage-card p, .homepage-profile-card p, .homepage-profile-card small { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.homepage-profile-card { text-align: center; }
.homepage-profile-card img, .homepage-profile-card .profile-avatar { width: 86px; height: 86px; margin-inline: auto; border-radius: 22px; }
.homepage-profile-card img { object-fit: cover; }
.homepage-profile-card .profile-avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: 2rem; font-weight: 900; }
.homepage-profile-link { display: inline-flex; margin-top: 14px; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.28); font-weight: 800; }
.homepage-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-top: 58px; border-radius: 24px; overflow: hidden; }
.homepage-stats article { padding: 24px; text-align: center; border-inline-start: 1px solid var(--line); min-width: 0; }
.homepage-stats article:last-child { border-inline-start: 0; }
.homepage-stats .homepage-icon { width: 44px; height: 44px; margin-inline: auto; color: #bae6fd; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.24); box-shadow: none; }
.homepage-stats .homepage-icon svg { width: 23px; height: 23px; }
.homepage-stats strong { display: block; margin-top: 8px; font-size: 2rem; overflow-wrap: anywhere; }
.homepage-stats small { color: var(--muted); overflow-wrap: anywhere; }
.homepage-cta { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 58px; padding: 34px; border-radius: 26px; background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(56,189,248,.12)); }
.homepage-cta-image { width: min(220px, 32%); max-height: 170px; object-fit: contain; border-radius: 22px; border: 1px solid var(--line); background: rgba(15,23,42,.38); }
.homepage-cta h2 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.6rem); overflow-wrap: anywhere; }
.homepage-cta p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.homepage-contact-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.homepage-contact-grid a { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px 8px 16px; background: rgba(16,27,49,.72); overflow-wrap: anywhere; max-width: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.homepage-contact-grid .homepage-icon { width: 34px; height: 34px; border-radius: 12px; box-shadow: none; }
.homepage-contact-grid .homepage-icon svg { width: 18px; height: 18px; }
.homepage-contact-grid span { font-weight: 800; }
.homepage-contact-grid strong { font-size: .86rem; color: var(--muted); }
.homepage-empty { text-align: center; color: var(--muted); }
.homepage-footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.homepage-footer strong, .homepage-footer span { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.homepage-footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px auto 0; max-width: 820px; text-align: start; }
.homepage-footer-links div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,27,49,.58); }
.homepage-footer-links b, .homepage-footer-links a { display: flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.homepage-footer-links b { color: var(--text); margin-bottom: 12px; }
.homepage-footer-links a { margin-top: 8px; color: var(--muted); text-decoration: none; }
.homepage-footer-links .homepage-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.20); box-shadow: none; color: #bae6fd; }
.homepage-footer-links .homepage-icon svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .homepage-cta { flex-direction: column; align-items: stretch; }
  .homepage-hero { grid-template-columns: 1fr; min-height: auto; }
  .homepage-feature-grid, .homepage-directory-grid, .homepage-stats { grid-template-columns: 1fr 1fr; }
  .homepage-cta-image { width: min(100%, 260px); }
}

@media (max-width: 560px) {
  .homepage-shell { width: calc(100% - 24px); max-width: 1180px; padding-top: 18px; }
  .homepage-nav { flex-direction: column; align-items: stretch; }
  .homepage-brand, .homepage-nav nav { width: 100%; justify-content: center; text-align: center; }
  .homepage-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .homepage-nav nav a { min-width: 0; max-width: 100%; }
  .homepage-hero, .homepage-visual, .homepage-section, .homepage-cta, .homepage-footer { min-width: 0; max-width: 100%; }
  .homepage-hero-copy { text-align: center; }
  .homepage-hero h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); line-height: 1.2; }
  .homepage-hero h1, .homepage-hero p { width: min(100%, 320px); margin-inline: auto; }
  .homepage-hero h1 em { display: block; margin-top: 4px; }
  .homepage-device { width: min(100%, 260px); transform: none; }
  .homepage-feature-grid, .homepage-directory-grid, .homepage-stats, .homepage-footer-links { grid-template-columns: 1fr; }
  .homepage-stats article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .homepage-actions .homepage-button, .homepage-nav-actions, .homepage-nav-button { width: 100%; }
}
