:root {
  --bg: #060709;
  --bg-elev: #0b0d11;
  --bg-elev-2: #111319;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #edeef0;
  --muted: #8b909a;
  --dim: #555a64;
  --accent: #ff6a3d;
  --accent-2: #ffb547;
  --cool: #8b9cff;
  --ok: #3ddc97;
  --violet: #b18cff;
  --teal: #5ed6c8;
  --danger: #ff5c7a;
  --grad: linear-gradient(100deg, #ffc56b 0%, #ff6a3d 50%, #ff3d6e 100%);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 106, 61, 0.35);
  color: #fff;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(255, 106, 61, 0.13), transparent 70%),
    radial-gradient(40% 30% at 92% 8%, rgba(139, 156, 255, 0.07), transparent 70%);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.07), transparent 62%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.lead {
  max-width: 640px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Motion primitives ---------- */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.wi {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
}

.is-in .wi {
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.spot {
  position: relative;
  isolation: isolate;
}

.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(255, 255, 255, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.spot:hover::before {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  80%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-out),
    background 0.3s,
    box-shadow 0.4s,
    border-color 0.3s;
  will-change: transform;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: #120a06;
  background: var(--text);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px -8px rgba(255, 106, 61, 0.6), 0 0 0 4px rgba(255, 106, 61, 0.12);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100% - 28px);
  padding: 8px 8px 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  pointer-events: auto;
  transition:
    background 0.5s,
    border-color 0.5s,
    backdrop-filter 0.5s,
    width 0.6s var(--ease-out);
}

.nav.is-scrolled .nav-inner {
  width: min(980px, 100% - 28px);
  background: rgba(12, 14, 18, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 28%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 28%, #000 25%, transparent 78%);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 90px);
  line-height: 1;
  letter-spacing: -0.048em;
}

.hero .lead {
  max-width: 700px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 106, 61, 0.4);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  color: rgba(61, 220, 151, 0.55);
  background: var(--ok);
  animation: ping 2s infinite;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.logos {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 72px;
  font-size: 12.5px;
  color: var(--dim);
}

.logos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #6c717b;
  transition: color 0.3s;
}

.logos li:hover {
  color: var(--text);
}

/* ---------- Hero demo window ---------- */

.demo-wrap {
  position: relative;
  margin-top: 84px;
  perspective: 1800px;
}

.demo-wrap::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -40px;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.demo {
  position: relative;
  display: grid;
  grid-template-columns: 68px 260px minmax(0, 1fr);
  grid-template-rows: 44px minmax(0, 1fr);
  height: 590px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, #0f1116, #0a0b0f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 120px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 0;
  will-change: transform;
}

.demo-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #23262d;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.demo-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: rgba(255, 181, 71, 0.6);
  background: var(--accent-2);
  animation: ping 1.8s infinite;
}

/* chat pane */

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0b0c10;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.chat-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.chat-channel .hash {
  color: var(--dim);
}

.chat-members {
  display: flex;
}

.chat-members .avatar + .avatar {
  margin-left: -6px;
}

.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity 0.6s;
}

.chat-body::-webkit-scrollbar {
  display: none;
}

.chat-body.is-resetting {
  opacity: 0;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: 600 11px/1 var(--font);
  color: #fff;
}

.avatar.sm {
  width: 24px;
  height: 24px;
  font-size: 9.5px;
  box-shadow: 0 0 0 2px #0b0c10;
}

.av-user {
  background: linear-gradient(135deg, #5b6cff, #a4b0ff);
}

.av-bot {
  background: var(--grad);
}

.av-bot svg {
  width: 60%;
  height: 60%;
}

.msg {
  display: flex;
  gap: 10px;
  animation: msg-in 0.55s var(--ease-out) both;
}

.bubble {
  max-width: min(88%, 560px);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: #13161c;
  font-size: 13.5px;
  line-height: 1.5;
}

.msg--bot .bubble {
  border-color: rgba(255, 106, 61, 0.2);
  background: linear-gradient(180deg, rgba(255, 106, 61, 0.09), rgba(255, 106, 61, 0.03));
}

.msg-meta {
  margin-bottom: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.bot-tag {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 6px 0 3px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.steps {
  display: grid;
  gap: 7px;
  margin: 8px 0 2px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  animation: msg-in 0.4s var(--ease-out) both;
  transition: color 0.3s;
}

.steps .ic {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.steps li.done {
  color: var(--text);
}

.steps li.done .ic {
  border: 0;
  animation: none;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23062015' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.composer {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 16px 16px;
  padding: 11px 50px 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #101217;
  font-size: 13.5px;
  line-height: 1.45;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.composer.is-typing {
  border-color: rgba(255, 106, 61, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.08);
}

.composer-placeholder {
  color: var(--dim);
}

.composer.is-typing .composer-placeholder {
  display: none;
}

.composer.is-typing .composer-text::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.composer-send {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--dim);
  transform: translateY(-50%);
  transition: background 0.3s, color 0.3s;
}

.composer-send svg {
  width: 16px;
  height: 16px;
}

.composer.is-typing .composer-send {
  background: var(--accent);
  color: #1a0b05;
}

/* teams çerçevesi */

.teams-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  border-right: 1px solid var(--line);
  background: #08090c;
}

.rail-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 56px;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 10px;
  color: var(--dim);
}

.rail-item > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-item.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.rail-item.is-active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.rail-app {
  margin-top: auto;
  color: var(--muted);
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: #0a0b0e;
}

.tl-title {
  padding: 2px 8px 10px;
  font-size: 15px;
  font-weight: 600;
}

.tl-search {
  margin: 0 4px 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--dim);
}

.tl-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
}

.tl-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tl-item b,
.tl-item div span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tl-item b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.tl-item div span {
  font-size: 11.5px;
  color: var(--dim);
}

.tl-item time {
  align-self: start;
  padding-top: 2px;
  font-size: 10.5px;
  color: var(--dim);
}

.tl-item.is-active {
  background: rgba(255, 106, 61, 0.08);
}

.tl-item.is-active b {
  font-weight: 600;
  color: var(--text);
}

.tl-hash {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #16191f;
  font-size: 12px;
  color: var(--muted);
}

.av-alt {
  background: linear-gradient(135deg, #2bb3a3, #7fe0d3);
}

/* teams uygulama kartı */

.app-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d0f14;
  animation: msg-in 0.5s var(--ease-out) both;
}

.ac-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 156, 255, 0.14);
  color: var(--cool);
}

.ac-icon svg,
.ac-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ac-icon svg {
  width: 20px;
  height: 20px;
}

.ac-title {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ac-title b {
  font-size: 14px;
  font-weight: 600;
}

.ac-title span {
  font-size: 11.5px;
  color: var(--muted);
}

.ac-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 999px;
  font: 500 11px var(--mono);
  color: var(--ok);
}

.ac-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.ac-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0d;
  font: 12px var(--mono);
  color: var(--cool);
  white-space: nowrap;
  overflow: hidden;
}

.ac-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-link svg {
  flex: none;
  width: 13px;
  height: 13px;
}

.ac-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  animation: msg-in 0.4s var(--ease-out) both;
  animation-delay: calc(var(--b, 0) * 90ms + 300ms);
}

.ac-badges li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

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

.ac-btn {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.ac-btn--primary {
  border-color: transparent;
  background: var(--grad);
  color: #1a0b05;
}

.ac-btn.is-pressed {
  transform: scale(0.95);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.2);
}

.ac-btn.is-done {
  border-color: rgba(61, 220, 151, 0.35);
  color: var(--ok);
}
