
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #171717;
  --border: #292929;
  --gold: #d8b46a;
  --gold-light: #f2d89a;
  --text: #f5f5f5;
  --muted: #999999;
  --silver: #c9c9c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, #242015 0%, transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

button,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242424;
  background: rgba(8, 8, 8, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  direction: ltr;
}

.brand b {
  color: var(--gold);
}

.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 13px;
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: -1px;
  background: linear-gradient(145deg, #282319, #111);
}

.status {
  color: var(--silver);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69c78a;
  box-shadow: 0 0 10px #69c78a55;
}

.container {
  width: min(920px, 92%);
  margin: auto;
}

.hero {
  text-align: center;
  padding: 57px 12px 35px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid #594a2e;
  border-radius: 30px;
  color: var(--gold-light);
  background: #211b10;
  font-size: 12px;
}

.hero h1 {
  margin: 18px 0 7px;
  font-size: clamp(29px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.4;
}

.hero h1 span {
  color: var(--gold);
  direction: ltr;
  display: inline-block;
}

.hero > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chat-card {
  border: 1px solid #33302a;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #151515, #0e0e0e);
  box-shadow: 0 18px 60px #0008;
}

.chat-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
  background: #141414;
}

.ai-avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3c783, #9c7838);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  direction: ltr;
}

.chat-heading h2 {
  margin: 0;
  font-size: 15px;
}

.chat-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.online {
  margin-right: auto;
  color: #69c78a;
  font-size: 12px;
}

.messages {
  min-height: 170px;
  max-height: 450px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.message {
  max-width: 88%;
  padding: 14px 17px;
  border-radius: 15px;
  overflow-wrap: anywhere;
}

.assistant-message {
  align-self: flex-start;
  background: #1b1b1b;
  border: 1px solid #303030;
  border-top-right-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: #282115;
  border: 1px solid #66512b;
  border-top-left-radius: 4px;
}

.message-label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.message p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 22px 20px;
}

.suggestion {
  border: 1px solid #353535;
  border-radius: 30px;
  background: #171717;
  color: var(--silver);
  padding: 8px 13px;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

.suggestion:hover,
.tool-card:hover {
  border-color: var(--gold);
  background: #211d15;
}

.input-area {
  margin: 0 20px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid #454036;
  border-radius: 17px;
  background: #0a0a0a;
}

.input-area:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #d8b46a15;
}

.input-area textarea {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  resize: vertical;
  padding: 9px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.input-area textarea::placeholder {
  color: #777;
}

.send-button {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-light), #b18a43);
  color: #111;
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s;
}

.send-button:hover {
  transform: scale(1.05);
}

.send-button:disabled {
  opacity: .5;
  cursor: wait;
}

.disclaimer {
  padding: 0 18px 17px;
  text-align: center;
  color: #777;
  font-size: 11px;
}

.tools-section {
  padding: 42px 0 25px;
}

.section-heading {
  margin-bottom: 19px;
}

.section-heading > span {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(135deg, #171717, #101010);
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}

.tool-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 12px;
  background: #292319;
  font-size: 21px;
}

.tool-card strong {
  font-size: 14px;
}

.tool-card small {
  color: var(--muted);
  font-size: 11px;
}

footer {
  margin-top: 20px;
  padding: 27px 10px 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  direction: ltr;
  font-weight: 800;
  font-size: 20px;
}

.footer-brand span {
  color: var(--gold);
}

footer p,
footer small {
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 5px 0;
}

@media (max-width: 480px) {
  .topbar {
    height: 65px;
    padding: 0 4%;
  }

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .container {
    width: 94%;
  }

  .hero {
    padding-top: 39px;
  }

  .chat-heading {
    padding: 15px;
  }

  .messages {
    padding: 16px;
  }

  .suggestions {
    padding: 0 13px 15px;
  }

  .input-area {
    margin: 0 12px;
  }

  .tool-card {
    padding: 15px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
