:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07110f;
  color: #f3f8f5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(43, 214, 148, .16), transparent 28rem),
    linear-gradient(145deg, #07110f, #0c1714);
}
.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(15, 28, 24, .92);
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}
.hero { text-align: center; }
.brand-mark {
  width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 22px; color: #07110f; background: #2bd694; font-size: 38px; font-weight: 900;
}
.brand-small { font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand-small span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #07110f; background: #2bd694;
}
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.eyebrow { color: #69e8b5; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 6px 0 12px; font-size: clamp(36px, 8vw, 58px); letter-spacing: -.05em; }
.lead { color: #b8c8c1; font-size: 18px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  flex: 1; min-width: 160px; padding: 15px 20px; border: 0; border-radius: 14px;
  font: inherit; font-weight: 800; text-decoration: none; text-align: center; cursor: pointer;
}
.primary { background: #2bd694; color: #07110f; }
.secondary { background: #22322d; color: #ecf7f2; }
.danger { background: #ff6b6b; color: #230909; }
.hint, .privacy { color: #7f938b; font-size: 13px; line-height: 1.5; margin-top: 22px; }
.badge {
  padding: 7px 11px; border-radius: 999px; background: #283631; color: #9caea7; font-size: 12px;
}
.badge.online { background: rgba(43,214,148,.14); color: #69e8b5; }
.video-frame {
  position: relative; aspect-ratio: 4/3; overflow: hidden; margin-top: 24px;
  border-radius: 20px; background: #050a08; border: 1px solid rgba(255,255,255,.08);
}
video { width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #758980; }
.incoming {
  display: flex; flex-direction: column; gap: 4px; margin: 18px 0; padding: 16px;
  border-radius: 16px; background: rgba(43,214,148,.12); border: 1px solid rgba(43,214,148,.28);
}
.incoming span { color: #9db1a8; font-size: 13px; }
.hidden { display: none !important; }
.landing { min-height: 100vh; width: min(100% - 48px, 1180px); margin: auto; }
.landing-nav { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand-link { color: #f3f8f5; text-decoration: none; }
.nav-login, .back-link { color: #9fb1a9; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-login { padding: 10px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.landing-grid {
  min-height: calc(100vh - 130px); display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(48px, 8vw, 110px); align-items: center; padding: 40px 0 90px;
}
.product-pill {
  display: inline-flex; padding: 8px 12px; border-radius: 999px; color: #69e8b5;
  background: rgba(43,214,148,.1); border: 1px solid rgba(43,214,148,.18);
  font-size: 11px; font-weight: 900; letter-spacing: .14em;
}
.landing-copy h1 { max-width: 680px; margin: 24px 0; font-size: clamp(50px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; }
.landing-copy h1 em { color: #2bd694; font-style: normal; }
.landing-copy > p { max-width: 620px; color: #a9bbb3; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #c4d2cc; font-size: 13px; font-weight: 700; }
.entry-panel {
  padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: rgba(15,28,24,.94);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.entry-panel h2 { margin: 7px 0 25px; font-size: 30px; letter-spacing: -.03em; }
.entry-option {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 17px; margin-top: 12px; border-radius: 17px; color: #eef6f2; text-decoration: none;
  background: #0a1511; border: 1px solid rgba(255,255,255,.08); transition: .18s ease;
}
.entry-option:hover { transform: translateY(-2px); border-color: rgba(43,214,148,.42); }
.entry-option.featured { background: rgba(43,214,148,.12); border-color: rgba(43,214,148,.3); }
.entry-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #07110f; background: #2bd694; font-size: 24px; font-weight: 700; }
.entry-option strong, .entry-option small { display: block; }
.entry-option strong { font-size: 16px; }
.entry-option small { margin-top: 5px; color: #8fa198; font-size: 12px; line-height: 1.35; }
.entry-option b { color: #69e8b5; font-size: 20px; }
.entry-note { margin: 22px 0 0; color: #788c83; font-size: 12px; text-align: center; }
.center { text-align: center; }
.compact-title { margin-bottom: 28px; }
.shell-wide { align-items: start; padding-top: 48px; }
.auth-card { width: min(100%, 520px); }
.auth-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.auth-intro { margin-bottom: 24px; }
.auth-intro h1 { margin: 7px 0 8px; font-size: 38px; letter-spacing: -.045em; }
.auth-intro > p:last-child { margin: 0; color: #94a69e; line-height: 1.5; }
.auth-legal { margin: 18px 8px 0; color: #687a72; font-size: 11px; line-height: 1.5; text-align: center; }
.dashboard { width: min(100%, 1050px); }
.dashboard-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px;
}
.dashboard-title { font-size: clamp(36px, 6vw, 58px); margin-bottom: 0; }
.compact-button { flex: 0 0 auto; min-width: auto; padding: 10px 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 24px; border-radius: 14px; background: #0a1411; }
.tab { padding: 11px; border: 0; border-radius: 10px; background: transparent; color: #81958c; font: inherit; font-weight: 800; cursor: pointer; }
.tab.active { background: #263a33; color: #f3f8f5; }
.form-stack { display: grid; gap: 16px; }
.form-stack label, .home-details label { display: grid; gap: 7px; color: #aebeb7; font-size: 13px; font-weight: 700; }
input {
  min-width: 0; width: 100%; padding: 14px 15px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; outline: none; color: #f3f8f5; background: #09120f; font: inherit;
}
input:focus { border-color: #2bd694; box-shadow: 0 0 0 3px rgba(43,214,148,.1); }
button:disabled { opacity: .5; cursor: not-allowed; }
.error-text { color: #ff8d8d; padding: 12px; border-radius: 10px; background: rgba(255,107,107,.1); }
.create-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.create-card h2 { margin: 5px 0 0; }
.inline-form { display: flex; gap: 10px; flex: 1; max-width: 520px; }
.inline-form .button { flex: 0 0 auto; min-width: 120px; }
.homes-grid { display: grid; gap: 20px; margin-top: 20px; }
.home-card { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(15,28,24,.94); }
.home-card.paused { opacity: .7; }
.home-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.home-card h2 { margin: 10px 0 18px; font-size: 28px; }
.switch-label { display: flex; align-items: center; gap: 8px; color: #b8c8c1; font-size: 13px; }
.switch-label input { width: 18px; height: 18px; accent-color: #2bd694; }
.qr-layout { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center; }
.qr-box { padding: 12px; border-radius: 18px; background: white; }
.qr-box img { display: block; width: 100%; aspect-ratio: 1; }
.home-details { min-width: 0; }
.copy-row { display: flex; gap: 8px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.home-actions .button { min-width: auto; flex: 0 0 auto; }
.ghost { color: #ffadad; background: transparent; border: 1px solid rgba(255,107,107,.25); }
.delete-button { color: #ffd0d0; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.3); }
.delete-button:hover { background: rgba(255,107,107,.2); }
.empty-state { width: 100%; margin-top: 20px; text-align: center; color: #8fa198; }
@media (max-width: 500px) {
  .shell { padding: 12px; }
  .card { border-radius: 22px; padding: 24px 18px; }
  .actions { flex-direction: column; }
  .dashboard-header, .create-card { align-items: stretch; flex-direction: column; }
  .inline-form, .copy-row { flex-direction: column; }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-box { width: min(100%, 240px); margin: auto; }
  .home-card-header { flex-direction: column; }
  .landing { width: min(100% - 28px, 1180px); }
  .landing-nav { height: 76px; }
  .nav-login { padding: 8px 11px; font-size: 12px; }
  .landing-grid { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 45px 0 60px; }
  .landing-copy h1 { margin: 18px 0; font-size: 49px; }
  .landing-copy > p { font-size: 16px; }
  .benefit-row { gap: 10px 16px; margin-top: 22px; font-size: 12px; }
  .entry-panel { padding: 22px 18px; border-radius: 22px; }
  .entry-panel h2 { font-size: 25px; }
  .entry-option { grid-template-columns: 42px 1fr auto; padding: 14px 12px; gap: 11px; }
  .entry-icon { width: 42px; height: 42px; }
  .entry-option strong { font-size: 14px; }
  .auth-header { margin-bottom: 28px; }
  .auth-intro h1 { font-size: 32px; }
}
@media (min-width: 501px) and (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; max-width: 720px; margin: auto; }
}
