/* ===== Components ===== */

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-1);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.nav-links a:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, .06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* Shared top-level page spacing helpers */
.page-main {
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}

.thanks-page .thank-you-section {
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}

.thanks-page .footer {
  margin-top: var(--s-6);
}

@media (max-width: 900px) {
  .page-main,
  .thanks-page .thank-you-section {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
  }
}

/* Glass surfaces */
.glass {
  background: linear-gradient(180deg, var(--glass-bg-2), var(--glass-bg));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel {
  padding: var(--s-6);
}

.panel-sm {
  padding: var(--s-5);
  border-radius: var(--r-4);
}

.glow-edge {
  position: relative;
}

.glow-edge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(500px 200px at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(420px 160px at 80% 100%, rgba(255, 255, 255, .06), transparent 60%);
  pointer-events: none;
  opacity: .9;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
  color: var(--ink-0);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease),
    background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .16);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset, 0 0 24px var(--accent-glow);
}

.btn-primary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .10);
}

.btn-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

/* Badges / chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .05);
  color: var(--ink-1);
  font-size: 12px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-1);
  font-size: 12px;
}

/* Hero layout */
.hero {
  padding-top: var(--s-9);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* Plan Card (signature) */
.plan-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.plan-card .top {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-title {
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 16px;
}

.plan-sub {
  font-size: 13px;
  color: var(--ink-2);
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kv .k {
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .10em;
}

.kv .v {
  font-size: 13px;
  color: var(--ink-1);
}

.plan-actions {
  padding: var(--s-4);
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
}

.plan-actions .btn {
  flex: 1;
}

.countdown {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-1);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

/* Feature tiles */
.tile {
  padding: var(--s-6);
  border-radius: var(--r-5);
  position: relative;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .16);
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  margin-bottom: var(--s-3);
}

.tile-icon::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  display: none;
}

.tile-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Before/After */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}

/* Spacing between cards and next section titles */
.grid {
  margin-bottom: var(--s-6);
}

.demo {
  margin-bottom: var(--s-8);
}

@media (max-width: 900px) {
  .beforeafter {
    grid-template-columns: 1fr;
  }
}

.mock-thread {
  padding: var(--s-6);
  padding-bottom: var(--s-4);
  border-radius: var(--r-5);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
}

/* Scrolling chat animation */
.thread-scroll-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.thread-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-scroll-track .thread-bubble {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Proportional before/after heights */
.beforeafter>* {
  display: flex;
  flex-direction: column;
}


.thread-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  margin-bottom: 12px;
}

.thread-line:nth-child(2) {
  width: 70%;
}

.thread-line:nth-child(3) {
  width: 86%;
}

.thread-line:nth-child(4) {
  width: 62%;
}

.thread-line:nth-child(5) {
  width: 78%;
}

.thread-line:nth-child(6) {
  width: 50%;
}

.thread-line:nth-child(7) {
  width: 92%;
}

.thread-line:nth-child(8) {
  width: 45%;
}

.thread-line:nth-child(9) {
  width: 68%;
}

.thread-line:nth-child(10) {
  width: 80%;
}

.thread-line:nth-child(11) {
  width: 55%;
}

.thread-line:nth-child(12) {
  width: 74%;
}

/* Chat-like bubbles for chaotic Before mock */
.thread-bubble {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 8px;
  max-width: 75%;
}

.thread-bubble.right {
  margin-left: auto;
  background: rgba(179, 123, 255, .08);
  border-color: rgba(179, 123, 255, .10);
}

.thread-bubble.short {
  max-width: 45%;
}

.thread-bubble .emoji {
  font-size: 14px;
}

/* Demo module */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}

@media (max-width: 900px) {
  .demo {
    grid-template-columns: 1fr;
  }
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-btn {
  text-align: left;
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-1);
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.step-btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

.step-btn.active {
  color: var(--ink-0);
  border-color: rgba(255, 255, 255, .18);
  background: radial-gradient(600px 200px at 15% 0%, var(--accent-soft), rgba(255, 255, 255, .05) 55%);
}

.demo-screen {
  padding: var(--s-5);
  border-radius: var(--r-5);
}

.demo-frame {
  display: none;
}

.demo-frame.active {
  display: block;
}

.frame-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.frame-box {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .25);
  padding: var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
}

/* Forms */
.field {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input {
  height: 44px;
  min-width: 240px;
  flex: 1;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-0);
  outline: none;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.input:focus {
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-note {
  margin-top: 10px;
}

.hp-field {
  display: none !important;
  visibility: hidden;
}

.form-status {
  min-height: 1.2em;
  margin-top: 10px;
}

.form-status.is-sending {
  color: var(--ink-2);
}

.form-status.is-success {
  color: rgba(104, 247, 176, 0.92);
}

.form-status.is-error {
  color: rgba(255, 154, 154, 0.96);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}

.reveal.on {
  opacity: 1;
  transform: translateY(0px);
}

/* Footer */
.footer {
  padding: var(--s-7) 0 var(--s-8);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer a {
  color: var(--ink-1);
}

.footer a:hover {
  color: var(--ink-0);
}

/* Legal pages — compact typography */
.legal-content h2 {
  font-size: 20px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.65;
}

.legal-content ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.legal-content .hr {
  margin: var(--s-5) 0;
}

/* Demo section image frame */
.demo-img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--shadow-1);
}
