/* ===== Stonks ($STNK) clone — reconstructed stylesheet ===== */

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/open-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #fafafa;
  --color-primary: #1a237e;
  --color-primary-dark: #001142;
  --color-secondary: #ff8c00;
  --color-tertiary: #43a047;
  --color-dark: #000723;
  --color-text: #000;
  --color-white: #fff;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5dc;
  --color-gray-500: #6a7282;
  --color-gray-600: #4a5565;
  --color-gray-700: #364153;
  --color-gray-900: #101828;

  --radius-button: 12px;
  --radius-xl: 0.75rem;
  --max-content-width: 1152px;

  --content-gap-x: 24px;
  --content-gap-y: 48px;

  --text-h3: 1.95rem;
  --text-h4: 1.56rem;
  --text-h5: 1.25rem;
  --text-small: 0.8rem;

  --scale-hover: 1.05;
  --drop-shadow-glow: 0 0 5px #fff;

  --bg-stocks: url("./images/stocksbg.gif");
  --bg-dark-overlay: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88),
    rgba(0, 17, 66, 0.75) 15vw,
    rgba(0, 51, 204, 0.8)
  );
  --bg-stocks-dimmer: linear-gradient(
    rgba(0, 17, 66, 0.5),
    rgba(0, 17, 66, 0.25)
  );
  --bg-white-fadeout: linear-gradient(
    rgba(99, 99, 99, 0),
    rgba(99, 99, 99, 0) calc(100% - 150px),
    rgba(250, 250, 250, 0.81) calc(100% - 75px),
    var(--color-background)
  );
  --bg-rainbow: linear-gradient(45deg, #0063f7, #9d41ff, #c87b00, #ffc100);
}

@media (min-width: 768px) {
  :root { --content-gap-x: 48px; --content-gap-y: 56px; }
}
@media (min-width: 960px) {
  :root { --content-gap-x: 72px; --content-gap-y: 64px; }
}
@media (min-width: 1200px) {
  :root { --content-gap-x: 88px; --content-gap-y: 80px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  cursor: url("./images/cursor.png"), auto;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== Layout helpers ===== */
main { display: flex; flex-direction: column; overflow-x: hidden; }

.container {
  margin-inline: auto;
  max-width: var(--max-content-width);
  padding-inline: var(--content-gap-x);
}
.section-pad { padding-block: var(--content-gap-y); }

.bg-primary { background-color: var(--color-primary); }

.bg-stock-header {
  background-image: var(--bg-white-fadeout), var(--bg-dark-overlay), var(--bg-stocks);
  background-size: cover;
}
.bg-stock-section {
  background-image: var(--bg-dark-overlay), var(--bg-stocks-dimmer), var(--bg-stocks);
  background-size: cover;
}
.text-white, .text-white a { color: var(--color-white); }

/* ===== Buttons ===== */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-button);
  text-align: center;
  user-select: none;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-h5);
  min-height: 58.6px;
  border: none;
  cursor: inherit;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-small); font-weight: 400; min-height: 0; }
.btn-md { padding: 0.625rem 1.5rem; font-size: 1rem; min-height: 0; }
.btn-outline { border: 1px solid var(--color-gray-300); color: var(--color-white); background: transparent; }
.btn-outline-dark { border: 1px solid var(--color-gray-500); color: var(--color-text); background: transparent; }
.btn-tertiary { background-color: var(--color-tertiary); color: var(--color-white); }
.btn-ghost { background: transparent; color: var(--color-white); }
.btn-block { width: 100%; }

/* rainbow wipe on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-rainbow);
  background-size: 200%;
  opacity: 0;
  transition: opacity 0.1s linear;
}
.btn:hover { transform: scale(var(--scale-hover)); border-color: transparent !important; color: #fff; }
.btn:hover::before { opacity: 1; animation: wave 2s linear infinite alternate; }

@keyframes wave { 0% { background-position: 0%; } 100% { background-position: 100%; } }

/* ===== Heading with arrow decoration ===== */
.heading-arrow {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}
.heading-arrow::after {
  content: "";
  display: inline-block;
  width: 3.5rem;
  height: 2.25rem;
  margin-left: 0.5rem;
  margin-top: -0.5rem;
  vertical-align: middle;
  background: url("./images/arrow.webp") no-repeat;
  background-size: 36px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-primary);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.5px; }
.nav-brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-button);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-secondary); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: inherit; }

/* ===== Hero / header ===== */
.hero { padding-bottom: 2.5rem; }
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 1.25rem;
  text-align: center;
}
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.hero-title {
  font-size: clamp(4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  -webkit-text-stroke: 2px var(--color-text);
  filter: drop-shadow(var(--drop-shadow-glow));
}
.hero-sub { font-size: 1.25rem; line-height: 2rem; font-weight: 600; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-block: 1.25rem; justify-content: center; }
.social-row { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.social-row a { display: block; width: 48px; height: 48px; border-radius: 9999px; overflow: hidden; }
.social-row a:hover { outline: 2px solid var(--color-secondary); }
.social-row img { width: 48px; height: 48px; }

.hero-art { position: relative; flex: 1; margin-inline: auto; transform: scale(1.1); pointer-events: none; max-width: 520px; }
.hero-art .stonksguy { position: relative; z-index: 1; width: 100%; height: auto; }
.hero-art .arrow {
  position: absolute;
  right: -60px;
  width: 100%;
  height: auto;
  transform-origin: center;
  will-change: transform;
  animation: rotate-arrow 2s linear infinite;
}
@keyframes rotate-arrow {
  0% { transform: rotate(-6deg) scale(0.75); }
  15% { transform: rotate(0) scale(0.75); }
  50% { transform: rotate(6deg) scale(0.75); }
  100% { transform: rotate(-6deg) scale(0.75); }
}

/* ===== Listings grid ===== */
.listings { padding-block: var(--content-gap-y) 0; }
.listings-grid {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.listings-grid .btn { text-transform: uppercase; }
.listings-bsc { max-width: 560px; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 400px) { .listings-bsc { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .listings-bsc { grid-template-columns: 1fr; } }

/* ===== Two-column content sections ===== */
.split {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap-y) var(--content-gap-x);
}
.split-copy { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.split-copy p { margin: 0; }
.split-copy h3 { margin-top: 0.5rem; font-size: 1.25rem; }
.split-art { flex: 1; display: flex; align-items: center; justify-content: center; margin-inline: auto; max-width: 480px; }
.split a { color: inherit; text-underline-offset: 2px; }
.text-white .split a { color: #fff; }
code { word-break: break-all; }

/* ===== Roadmap (centered image) ===== */
.center-col { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.center-col .roadmap-img { max-width: 640px; width: 100%; }

/* ===== Kontribut cards ===== */
.kontribut-head { text-align: center; }
.kontribut-head .heading-arrow { margin-inline: auto; }
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.card-head { display: flex; align-items: flex-start; gap: 1rem; }
.card-head img { width: 80px; object-fit: contain; flex-shrink: 0; }
.card-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-gray-500); font-weight: 600; margin-bottom: 0.25rem; }
.card-title { font-size: 1.4rem; font-weight: 700; color: var(--color-gray-900); line-height: 1.2; }
.card p { font-size: 0.95rem; color: var(--color-gray-700); flex-grow: 1; }
.kontribut-more { text-align: center; }
.kontribut-more p { font-size: 0.875rem; color: var(--color-gray-600); }
.kontribut-more a { white-space: nowrap; }

/* ===== Teh Agent ===== */
.agent-quote {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--color-secondary);
  background: rgba(26, 35, 126, 0.06);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-gray-900);
}
#teh-agent .cards-grid { margin-bottom: 0; }

.agent-chat {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  background: var(--color-primary-dark);
  border: 1px solid #2a3570;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 7, 35, 0.3);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: #11163a;
  border-bottom: 1px solid #2a3570;
  color: #fff;
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-tertiary);
  box-shadow: 0 0 8px var(--color-tertiary);
}
.chat-status { margin-left: auto; color: #7782c0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.chat-log {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--color-primary-dark);
}
.chat-msg {
  max-width: 82%;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.chat-msg.bot { align-self: flex-start; background: var(--color-primary); color: #fff; border-bottom-left-radius: 3px; }
.chat-msg.user { align-self: flex-end; background: var(--color-tertiary); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.typing { color: #9aa3d8; letter-spacing: 2px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.7rem 1rem 0; }
.chat-chip {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid #2a3570;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: inherit;
  transition: background 0.15s;
}
.chat-chip:hover { background: #283593; }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  margin-top: 0.7rem;
  border-top: 1px solid #2a3570;
  background: #11163a;
}
.chat-input-row input {
  flex: 1;
  min-width: 0;
  background: var(--color-primary-dark);
  border: 1px solid #2a3570;
  border-radius: 10px;
  color: #fff;
  padding: 0.6rem 0.8rem;
  font: inherit;
  cursor: inherit;
}
.chat-input-row input::placeholder { color: #7782c0; }
.chat-send {
  background: var(--color-tertiary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: inherit;
}
.chat-disclaimer { max-width: 680px; margin: 1rem auto 0; text-align: center; font-size: var(--text-small); color: var(--color-gray-600); }

/* ===== Footer ===== */
.footer .container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.footer-social { display: flex; align-items: center; justify-content: center; }
.footer-social img { width: 24px; height: 24px; }
.disclaimer { max-width: 720px; font-size: var(--text-small); }

/* ===== Responsive (desktop) ===== */
@media (min-width: 768px) {
  .hero { padding-bottom: 140px; }
  .hero-grid { flex-direction: row; text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero-buttons, .social-row { justify-content: flex-start; }
  .listings-grid { grid-template-columns: repeat(4, 1fr); }
  .split { flex-direction: row; }
  .split.reverse .split-art { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 400px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-primary);
    padding: 0.5rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
