/* ============================================================
   Nimbus — palet warna gaya LinkLetter (krem hangat + oranye terakota)
   ============================================================ */
:root {
  --bg: #faf6ef;
  --bg-soft: #f3eee3;
  --panel: #efe9dc;
  --border: #e3dccb;
  --text: #221d15;
  --muted: #6f6a5c;
  --accent: #c96a3b;
  --accent-dark: #a85430;
  --accent-soft: rgba(201, 106, 59, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ============ BACKGROUND BEAMS (Aceternity-style) ============ */
.beams-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.beam {
  position: absolute;
  width: 2px;
  height: 220%;
  top: -60%;
  background: linear-gradient(to bottom, transparent, var(--accent) 50%, transparent);
  opacity: 0;
  transform: rotate(24deg);
  animation: beam-fall linear infinite;
}
.beam-1 { left: 8%;  animation-duration: 7s;  animation-delay: 0s; }
.beam-2 { left: 26%; animation-duration: 9s;  animation-delay: 2s; width: 1px; }
.beam-3 { left: 52%; animation-duration: 6s;  animation-delay: 4s; }
.beam-4 { left: 74%; animation-duration: 10s; animation-delay: 1s; width: 1px; }
.beam-5 { left: 90%; animation-duration: 8s;  animation-delay: 3s; }
@keyframes beam-fall {
  0%   { transform: rotate(24deg) translateY(-100%); opacity: 0; }
  10%  { opacity: .35; }
  90%  { opacity: .35; }
  100% { transform: rotate(24deg) translateY(60%); opacity: 0; }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ TEXT GENERATE (Aceternity-style) ============ */
.text-generate .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
  animation: word-in .6s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes word-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 246, 239, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.logo-mark { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s, transform .2s;
  position: relative;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* Moving border button (Aceternity-style) */
.btn-moving-border {
  overflow: hidden;
  isolation: isolate;
}
.btn-moving-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), transparent 60%, #ffd9b8, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-border 3s linear infinite;
  z-index: -1;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}
.spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
  animation: spotlight-pulse 5s ease-in-out infinite;
}
@keyframes spotlight-pulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-note { font-size: 13px; color: var(--muted); }
.hero-ribbon { margin-top: 48px; opacity: .8; }
.hero-ribbon svg { width: 100%; max-width: 560px; }

/* ============ MARQUEE (Aceternity-style infinite scroll) ============ */
.marquee-section {
  padding: 40px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.marquee-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--muted);
  opacity: .75;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  padding: 100px 24px;
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.7;
}

/* Problem cards */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(34,29,21,.08); }
.p-icon { color: var(--accent); font-size: 18px; margin-bottom: 14px; }
.p-card p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ============ BENTO GRID ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(34,29,21,.09); }
.bento-card.big { grid-column: span 2; grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
.bento-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.bento-card.big h3 { font-size: 30px; }
.bento-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.bento-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.bento-demo {
  margin-top: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; margin-right: 8px; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.step {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============ TESTIMONIAL ============ */
.testimonial { text-align: center; }
.quote-burst {
  font-family: var(--serif);
  font-size: 90px;
  color: var(--accent);
  line-height: .5;
  margin-bottom: 30px;
}
blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 24px;
}
.quote-author { color: var(--muted); margin-bottom: 40px; font-size: 14px; }

/* ============ FAQ ============ */
.faq-list { max-width: 680px; margin: 40px auto 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .3s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-cta {
  text-align: center;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   CHAT VIEW — gaya Claude, warna disamakan
   ============================================================ */
#chatView { height: 100vh; }
.app { display: flex; height: 100vh; }

.sidebar {
  width: 270px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}
.btn-home {
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}
.new-chat {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s;
}
.new-chat:hover { background: var(--accent-dark); }

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-item {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.history-item:hover { background: rgba(0,0,0,.05); }
.history-item.active { background: rgba(0,0,0,.09); font-weight: 600; }
.history-item .del {
  opacity: 0;
  border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 13px; flex-shrink: 0;
}
.history-item:hover .del { opacity: 1; }
.history-item .del:hover { color: var(--accent-dark); }

.main { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.topbar h1 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-select {
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.messages { flex: 1; overflow-y: auto; padding: 26px 0; }
.msg-row {
  padding: 8px 26px;
  display: flex;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
  animation: msg-in .4s cubic-bezier(.22,1,.36,1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  color: #fff;
  font-family: var(--serif);
}
.avatar.user { background: #4a5568; }
.avatar.ai { background: var(--accent); }
.msg-role { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.msg-content {
  flex: 1;
  padding: 4px 0 10px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.typing::after { content: "▍"; animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.composer {
  padding: 16px 26px 22px;
  display: flex;
  gap: 10px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
#input {
  flex: 1;
  resize: none;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: var(--sans);
  background: #fff;
  max-height: 200px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#sendBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  width: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
#sendBtn:hover { background: var(--accent-dark); }
#sendBtn:disabled { opacity: .5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.big, .bento-card.wide { grid-column: span 1; grid-row: span 1; }
  .sidebar { display: none; }
}
