:root {
  --bg-color: #141414;
  --screen-color: #0a0a0a;
  --text-main: #ffffff;
  --line-color: #ffffff;
  --border-color: #262626;
  --muted: #a3a3a3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Geist', 'Manrope', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Base paper noise texture via SVG data uri */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Subtle grid on dark bg */
.dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: radial-gradient(#333 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

/* ── PAGE LAYOUT ─────────────────────────────────── */
.container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-template-rows: 1fr;
  width: min(1480px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 48px 48px 64px;
  gap: 24px;
}

/* ── LEFT COLUMN: BRANDING ───────────────────────── */
.left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 48px;
  min-width: 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #c7c7c7;
  margin: 0 0 18px 0;
}

.title {
  font-weight: 800;
  font-size: clamp(56px, 5.2vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px 0;
  letter-spacing: -2.5px;
  color: #ffffff;
  max-width: 720px;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.subtitle {
  font-size: 18px;
  color: #d0d0d0;
  margin: 0 0 40px 0;
  font-weight: 600;
  letter-spacing: -0.3px;
  max-width: 520px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #e6e6e6;
  letter-spacing: -0.15px;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  opacity: 0.5;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #262626;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #a3a3a3;
  letter-spacing: 0.2px;
  background: #0a0a0a;
}

.mobile-chat-launch,
.mobile-site-toggle {
  display: none;
}

/* ── RIGHT COLUMN: PHONE ─────────────────────────── */
.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 32px;
  min-height: 0;
}

/* ── FOOTER REMOVED ─────────────────────────────────── */
.footer { display: none; }

.phone-mockup {
  position: relative;
  width: min(100%, 430px);
  height: auto;
  max-height: calc(100dvh - 96px);
  aspect-ratio: 433 / 882;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.7));
}

.phone-mockup svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  top: 2.18%;
  left: 4.9%;
  width: 89.95%;
  height: 95.63%;
  border-radius: 38px;
  overflow: hidden;
  background: #b8b8b2;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.wireframe-container {
  flex: 1;
  border: none;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #b8b8b2;
  min-height: 0;
  padding-bottom: 0;
}

/* Empty since we removed wireframe borders for the phone mockup */

.chat-header {
  padding: 52px 20px 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #a8a8a2;
}

.chat-header .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.chat-header p {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: #555;
}

.chat-history {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* hide scrollbar for clean look */
  scrollbar-width: none;
}

.chat-history::-webkit-scrollbar {
  display: none;
}

.message {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 85%;
  font-weight: 500;
  border-radius: 12px;
}

.message.bot {
  background: #a8a8a2;
  color: #1a1a1a;
  align-self: flex-start;
  border: none;
}

.message.user {
  background: #1a1a1a;
  color: #c8c8c2;
  align-self: flex-end;
  border: none;
}

.message.typing {
  font-style: italic;
  opacity: 0.5;
  background: #a8a8a2;
  border: none;
}

/* ── TEST CHIPS ────────────────────────────────────── */
.test-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px 4px;
  background: #b8b8b2;
  border-top: 1px solid #a8a8a2;
  flex-shrink: 0;
}

.chips-label {
  width: 100%;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555550;
  margin-bottom: 1px;
}

.chip {
  font-family: inherit;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #888882;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.chip:hover {
  background: #9a9a94;
}

.chat-form {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #a8a8a2;
  position: relative;
  background: #b8b8b2;
}

.chat-form::before {
  display: none;
}

#chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #2a2a2a;
  outline: none;
  resize: none;
  overflow-y: auto;
  min-height: 54px;
  max-height: 140px;
  line-height: 1.5;
  display: block;
  scrollbar-width: none;
}

#chat-input::placeholder {
  color: #888;
}

.submit-btn {
  background: #2a2a2a;
  color: #f5f5f0;
  border: none;
  width: 52px;
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
  border-left: 1px solid #a8a8a2;
  align-self: stretch;
}

.submit-btn:hover {
  opacity: 0.8;
}

@media (max-width: 1400px) {
  .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 410px);
    padding: 40px 32px 40px 40px;
    gap: 28px;
  }

  .left-col {
    padding-right: 8px;
  }

  .title {
    font-size: clamp(50px, 4.8vw, 64px);
    max-width: 620px;
  }

  .title-line {
    white-space: normal;
  }

  .subtitle {
    max-width: 480px;
  }

  .phone-mockup {
    width: min(100%, 400px);
  }
}

@media (max-width: 1180px) {
  .container {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    padding: 40px 32px;
    gap: 20px;
  }

  .left-col {
    padding-right: 16px;
  }

  .title {
    font-size: clamp(48px, 5vw, 62px);
  }

  .subtitle {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .feature-list {
    margin-bottom: 36px;
    gap: 14px;
  }

  .feature-list li {
    font-size: 16px;
  }

  .content-wrapper {
    padding-left: 0;
  }

  .phone-mockup {
    width: min(100%, 370px);
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    min-height: auto;
    padding: 32px 24px 40px;
    gap: 28px;
  }

  .left-col {
    justify-content: flex-start;
    padding-right: 0;
    max-width: 100%;
  }

  .title {
    max-width: none;
    font-size: clamp(42px, 9vw, 60px);
    margin-bottom: 18px;
    letter-spacing: -1.8px;
  }

  .title-line {
    white-space: normal;
  }

  .subtitle {
    max-width: none;
    margin-bottom: 28px;
  }

  .feature-list {
    margin-bottom: 28px;
  }

  .content-wrapper {
    justify-content: center;
    width: 100%;
  }

  .phone-mockup {
    width: min(100%, 390px);
    max-height: none;
  }
}

@media (max-width: 640px) {
  body {
    min-height: 100svh;
  }

  .container {
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 22px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2.8px;
    margin-bottom: 14px;
  }

  .title {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1.02;
    margin-bottom: 14px;
    letter-spacing: -1.2px;
  }

  .subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .feature-list {
    gap: 12px;
    margin-bottom: 22px;
  }

  .feature-list li {
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.4;
  }

  .badge-row {
    gap: 8px;
  }

  .badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .phone-mockup {
    width: min(100%, 360px);
  }

  .chat-header {
    padding: 46px 18px 12px 18px;
  }

  .chat-history {
    padding: 16px;
    gap: 10px;
  }

  .message {
    max-width: 88%;
    padding: 9px 12px;
    font-size: 14px;
  }

  #chat-input {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .submit-btn {
    width: 48px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  body {
    min-height: 100svh;
    overflow: hidden;
    background: #b8b8b2;
    color: #1a1a1a;
  }

  .dot-grid {
    display: none;
  }

  .container {
    display: block;
    width: 100%;
    min-height: 100svh;
    padding: 0;
  }

  .left-col {
    display: none;
  }

  .mobile-chat-launch,
  .mobile-site-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font: inherit;
    cursor: pointer;
  }

  .content-wrapper {
    display: block;
    width: 100%;
    min-height: 100svh;
    padding: 0;
  }

  .phone-mockup {
    width: 100%;
    height: 100svh;
    max-height: none;
    max-width: none;
    aspect-ratio: auto;
    filter: none;
  }

  .phone-mockup svg {
    display: none;
  }

  .phone-screen {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .wireframe-container {
    min-height: 100svh;
    background: #ecebe5;
  }

  .chat-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px;
    background: #ecebe5;
  }

  .chat-header p {
    flex: 1;
  }

  .mobile-site-toggle {
    padding: 8px 12px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #f5f5f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }

  .chat-history {
    padding: 16px;
    padding-bottom: 28px;
    background: #ecebe5;
  }

  .message {
    max-width: 82%;
    border-radius: 18px;
  }

  .chat-form {
    position: sticky;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ecebe5;
  }

  #chat-input {
    background: transparent;
  }

  body.mobile-site-view {
    overflow-x: hidden;
    overflow-y: auto;
    background: #141414;
    color: #ffffff;
  }

  body.mobile-site-view .dot-grid {
    display: block;
  }

  body.mobile-site-view .container {
    display: block;
    min-height: auto;
    padding: 24px 16px 32px;
  }

  body.mobile-site-view .left-col {
    display: flex;
  }

  body.mobile-site-view .content-wrapper {
    display: none;
  }

  body.mobile-site-view .mobile-chat-launch {
    display: inline-flex;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #f3f2ea;
    color: #141414;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 420px) {
  .phone-mockup {
    width: 100%;
  }
}
