:root {
  --app-accent: #5ce1e6;
  --app-accent-foreground: #082f49;
  --app-accent-soft: rgb(92 225 230 / 0.18);
  --app-accent-border: rgb(92 225 230 / 0.45);
  --app-accent-ring: rgb(92 225 230 / 0.12);
  --bg: #020617;
  --panel: #0f172a;
  --panel-strong: #090f1f;
  --border: rgb(51 65 85 / 0.9);
  --muted: #94a3b8;
  --text: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgb(92 225 230 / 0.16), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
textarea,
input {
  font: inherit;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: auto;
  max-width: min(15rem, 58vw);
  max-height: 4.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--app-accent-border);
  background: var(--app-accent-soft);
  color: var(--app-accent);
  outline: none;
}

.main {
  flex: 1;
  padding-bottom: 3rem;
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  background:
    linear-gradient(rgb(15 23 42 / 0.96), rgb(2 6 23 / 0.98)),
    radial-gradient(circle at 100% 0, rgb(92 225 230 / 0.16), transparent 34%);
  box-shadow: 0 24px 60px rgb(2 6 23 / 0.35);
}

.panel-pad {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.eyebrow {
  display: inline-flex;
  border: 1px solid var(--app-accent-border);
  border-radius: 999px;
  background: var(--app-accent-soft);
  padding: 0.35rem 0.75rem;
  color: #cffafe;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 48rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: 1.05rem;
}

.lead {
  max-width: 44rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.muted {
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--app-accent);
  color: var(--app-accent-foreground);
}

.btn-outline {
  border-color: #334155;
  background: rgb(15 23 42 / 0.55);
  color: #f1f5f9;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--app-accent-border);
  background: var(--app-accent-soft);
  color: var(--app-accent);
}

.guest-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  overflow: visible;
}

.guest-message {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 0.95rem 1rem;
}

.guest-message-user {
  margin-left: auto;
  background: rgb(16 185 129 / 0.14);
}

.guest-message-assistant {
  background: rgb(15 23 42 / 0.92);
}

.message-role {
  margin-bottom: 0.45rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.guest-ad-frame {
  min-width: 0;
  max-width: 100%;
  margin: 1rem auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: #fff;
  padding: 0.35rem;
}

.guest-ad-frame .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

.guest-ad-frame iframe {
  display: block;
  max-width: 100% !important;
}

.guest-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.guest-textarea {
  min-height: 7.5rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgb(2 6 23 / 0.9);
  color: #e2e8f0;
  outline: none;
  padding: 0.95rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guest-textarea::placeholder {
  color: rgb(148 163 184 / 0.92);
}

.guest-textarea:focus {
  border-color: rgb(92 225 230 / 0.75);
  box-shadow: 0 0 0 3px var(--app-accent-ring);
}

.guest-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.small-note {
  margin-bottom: 0;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.6;
}

.small-note a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.error {
  display: none;
  color: #fca5a5;
  font-size: 0.88rem;
}

.error.is-visible {
  display: block;
}

.grid-two {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.feature-card,
.qa-item {
  border: 1px solid rgb(51 65 85 / 0.9);
  border-radius: 1rem;
  background: rgb(15 23 42 / 0.76);
  padding: 1rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--app-accent-border);
  border-radius: 0.85rem;
  background: var(--app-accent-soft);
  color: var(--app-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.feature-card p,
.qa-item p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.65;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgb(2 6 23 / 0.7);
  padding: 0.45rem 0.75rem;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
}

.locked-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: stretch;
  grid-auto-rows: minmax(3.75rem, auto);
}

.locked-chip {
  display: flex;
  width: 100%;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(51 65 85 / 0.9);
  border-radius: 999px;
  background: rgb(15 23 42 / 0.8);
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  text-align: center;
  line-height: 1.35;
}

.legal-content {
  display: grid;
  gap: 1.75rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-content section {
  display: grid;
  gap: 0.75rem;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content ul {
  padding-left: 1.3rem;
}

.redirect-card {
  min-height: 48vh;
  display: grid;
  align-content: center;
}

.footer-cta {
  margin-top: 3rem;
  border-top: 1px solid rgb(51 65 85 / 0.8);
  background: #000;
}

.newsletter {
  width: min(100%, 42rem);
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter-input {
  min-height: 3.4rem;
  border: 1px solid rgb(92 225 230 / 0.22);
  border-radius: 1rem;
  background: #0b1225;
  color: #e2e8f0;
  outline: none;
  padding: 0.875rem 1rem;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.social-link {
  display: inline-flex;
  color: rgb(241 245 249 / 0.92);
  transition: color 0.2s, transform 0.2s;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--app-accent);
  transform: translateY(-1px);
  outline: none;
}

.social-link svg {
  width: 1.75rem;
  height: 1.75rem;
}

.footer {
  border-top: 1px solid rgb(51 65 85 / 0.8);
  background: rgb(2 6 23 / 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.2rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #e2e8f0;
  outline: none;
}

.copyright {
  margin: 0;
  text-align: center;
  color: #64748b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .feature-grid,
  .locked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-input {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .grid-two {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .locked-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .copyright {
    text-align: right;
  }
}

@media (max-width: 767px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .guest-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-action-row .btn {
    width: 100%;
  }
}
