/*
Theme Name: Linky AI
Theme URI: https://linke-ai.net/
Author: Linky AI
Description: Editorial dark-glow theme for the Linky AI companion showcase.
Version: 1.0.4
Text Domain: linke-ai
*/

:root {
  --ink: #07060b;
  --ink-2: #0d0b14;
  --ink-3: #14111d;
  --line: rgba(255, 255, 255, .09);
  --fg: #f4f1f7;
  --muted: #a79fb6;
  --rose: #ff4d7e;
  --coral: #ff8a5b;
  --violet: #a56bff;
  --grad: linear-gradient(115deg, #ff4d7e 0%, #ff7a55 48%, #a56bff 100%);
  --radius: 22px;
  --shadow: 0 30px 70px -30px rgba(255, 77, 126, .45);
  --wrap: 1200px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(700px 420px at 8% -4%, rgba(255, 77, 126, .22), transparent 70%),
    radial-gradient(760px 460px at 96% 6%, rgba(165, 107, 255, .18), transparent 70%);
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 26px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

h1, h2 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  background: linear-gradient(180deg, #fff 20%, #d6c9e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; }

p + p { margin-top: 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 14px;
}

.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #cfc7dc; max-width: 62ch; }
.lede.center { margin-inline: auto; }
.section-title { max-width: 22ch; }
.section-title.center { margin: 0 auto 14px; max-width: 26ch; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, filter .28s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.015); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%);
  transform: translateX(-130%);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: var(--line); backdrop-filter: blur(10px); color: var(--fg); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-sm { --pad: 10px 18px; font-size: 14px; }
.btn-lg { --pad: 17px 34px; font-size: 16px; }
.btn-xl { --pad: 20px 44px; font-size: 17.5px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(7, 6, 11, .82); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad);
  font-size: 17px;
  box-shadow: 0 10px 26px -10px rgba(255, 77, 126, .8);
}
.brand-name { font-size: 19px; }
.brand-name em { font-family: var(--serif); font-style: italic; color: var(--rose); }
.main-nav { margin-left: auto; display: flex; gap: 28px; font-size: 14.5px; color: #cbc3d8; }
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--grad); transition: width .3s;
}
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(70px, 11vw, 130px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero);
  background-size: cover; background-position: center;
  opacity: .34;
  mask-image: linear-gradient(180deg, #000 5%, transparent 92%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.14) translateY(-16px); } }
.hero-glow {
  position: absolute; left: 50%; top: -160px; width: 900px; height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 77, 126, .38), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; padding-bottom: 66px; }
.hero-inner h1 { margin-inline: auto; max-width: 20ch; }
.hero-inner .lede { margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 52px;
}
.hero-stats li {
  flex: 1 1 150px; max-width: 210px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 12px;
  backdrop-filter: blur(8px);
}
.hero-stats strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.hero-marquee { border-block: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .02); }
.marquee-track {
  display: flex; gap: 26px; white-space: nowrap; padding: 14px 0;
  animation: slide 42s linear infinite;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.marquee-track i { color: var(--rose); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent); border-block: 1px solid var(--line); }

.page-hero { padding: clamp(60px, 8vw, 104px) 0 clamp(30px, 4vw, 46px); }
.page-hero.small { padding-bottom: 20px; }
.page-hero .lede { margin-top: 18px; }
.page-hero .btn { margin-top: 26px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs span { opacity: .5; margin: 0 6px; }
.crumbs em { font-style: normal; color: var(--rose); }

/* ---------- cards ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.model-card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s;
}
.model-card:hover { transform: translateY(-8px); border-color: rgba(255, 77, 126, .5); box-shadow: 0 40px 80px -40px rgba(255, 77, 126, .55); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.model-card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 11, .85) 100%);
}
.card-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(7, 6, 11, .6); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.card-online {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px 7px 24px; border-radius: 999px;
  background: rgba(24, 200, 130, .16); border: 1px solid rgba(24, 200, 130, .4); color: #7ef2bd;
}
.card-online::before {
  content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #34e39b;
  box-shadow: 0 0 0 0 rgba(52, 227, 155, .7); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 227, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 227, 155, 0); }
}
.card-body { padding: 20px 20px 22px; }
.card-name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.card-name span { color: var(--muted); font-weight: 400; font-size: 16px; }
.card-loc { font-size: 13.5px; color: var(--muted); }
.card-traits { font-size: 13px; color: var(--rose); margin-top: 8px; letter-spacing: .05em; }
.card-actions { display: grid; gap: 9px; margin-top: 18px; }

/* ---------- steps / features ---------- */
.step-grid, .feature-grid, .case-grid, .review-grid, .chip-grid {
  display: grid; gap: 20px; margin-top: 44px;
}
.step-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chip-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.step, .feature, .case {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .028);
  transition: border-color .35s, transform .35s, background .35s;
}
.step:hover, .feature:hover, .case:hover { border-color: rgba(165, 107, 255, .45); transform: translateY(-5px); background: rgba(255, 255, 255, .05); }
.step-num {
  font-family: var(--serif); font-size: 40px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-title, .feature-title, .case-title { font-weight: 600; font-size: 19px; margin: 12px 0 8px; letter-spacing: -.015em; }
.feature-title { margin-top: 0; }

.chip {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: transform .3s, border-color .3s;
}
.chip:hover { transform: translateY(-4px); border-color: rgba(255, 77, 126, .5); }
.chip strong { font-size: 18px; }
.chip span { font-size: 13.5px; color: var(--muted); }

/* ---------- split ---------- */
.split-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.section.split.reverse .split-media { order: 2; }
.split-media { border-radius: 26px; overflow: hidden; position: relative; border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(165, 107, 255, .6); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-copy h2 { margin-bottom: 20px; max-width: 24ch; }
.split-copy p { color: #cbc3d8; }

/* ---------- table ---------- */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: rgba(255, 255, 255, .04); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .yes { color: #7ef2bd; font-weight: 600; }
.cmp .no { color: var(--muted); }

/* ---------- reviews ---------- */
.review { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.review p { color: #ddd6e8; font-size: 15.5px; }
.review cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }

/* ---------- faq ---------- */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0;
  font-weight: 600; font-size: 17px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--rose); transition: transform .3s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }

/* ---------- profile ---------- */
.profile { padding: clamp(40px, 6vw, 78px) 0 clamp(30px, 4vw, 50px); }
.profile-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.profile-media { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(255, 77, 126, .6); }
.profile-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spec { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 20px; }
.spec li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.spec span { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spec strong { font-size: 15.5px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { font-size: 12.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 77, 126, .09); color: #f6c5d5; }

.chat-demo { margin-top: 30px; display: grid; gap: 12px; }
.bubble { max-width: 78%; padding: 14px 18px; border-radius: 20px; font-size: 15.5px; }
.bubble.them { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--grad); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }

/* ---------- legal ---------- */
.legal-body { font-size: 16px; }
.legal-list { counter-reset: item; list-style: none; }
.legal-list > li { position: relative; padding: 22px 0 22px 54px; border-bottom: 1px solid var(--line); counter-increment: item; }
.legal-list > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--serif); font-size: 20px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-list h2 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.legal-list p { color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  background: radial-gradient(700px 320px at 50% 0%, rgba(255, 77, 126, .28), transparent 70%), rgba(255, 255, 255, .02);
  border-top: 1px solid var(--line);
}
.cta-band h2 { max-width: 24ch; margin: 0 auto 18px; }
.cta-band .btn { margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 26px; background: rgba(0, 0, 0, .35); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid .muted { margin-top: 14px; font-size: 14.5px; max-width: 38ch; }
.footer-grid .btn { margin-top: 20px; }
.foot-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.foot-list { list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: #cbc3d8; }
.foot-list a:hover { color: var(--rose); }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero::before, .marquee-track, .btn-primary::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split-inner, .profile-inner { grid-template-columns: 1fr; }
  .section.split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11, 9, 17, .97); border-bottom: 1px solid var(--line);
    display: none; padding: 10px 22px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; order: 3; }
  .header-inner .btn-sm { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
}
