/* ============================================================
   FOLLOW-AI — Stylesheet  (IOTIX-inspired)
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #050C1C;
  color: #E8EFF8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* TOKENS */
:root {
  --blue:         #2563EB;
  --blue-light:   #3B82F6;
  --cyan:         #0EA5E9;
  --bg:           #050C1C;
  --bg-alt:       #080F20;
  --bg-card:      #0A1428;
  --border:       rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.45);
  --text:         #E8EFF8;
  --text-2:       #94A3B8;
  --text-3:       #4B5A72;
  --grad:         linear-gradient(135deg, #2563EB, #0EA5E9);
  --radius:       14px;
  --radius-lg:    22px;
  --max:          1140px;
  --py:           clamp(80px, 10vw, 130px);
  --ease:         cubic-bezier(.4,0,.2,1);
}

/* ── LAYOUT ────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section   { padding: var(--py) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }

/* ── TYPE ──────────────────────────────────────────── */
.sec-head { text-align: center; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-label {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.025em;
  line-height: 1.1; margin-bottom: 16px;
}
.sec-head p {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 520px; margin: 0 auto; line-height: 1.75;
}

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

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px;
  border-radius: 9px; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .22s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  box-shadow: 0 0 28px rgba(37,99,235,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(37,99,235,.5); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); background: rgba(59,130,246,.06); }
.btn-lg   { padding: 15px 34px; font-size: .95rem; }
.btn-full { width: 100%; }

/* ── PILL / BADGE ──────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 100px;
  font-size: .75rem; font-weight: 500; color: var(--cyan);
  letter-spacing: .04em; margin-bottom: 24px;
}

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 18px 0;
  transition: background .25s var(--ease), padding .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.nav.scrolled::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(5,12,28,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Logo */
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); letter-spacing: .07em;
  flex-shrink: 0; transition: color .2s;
  position: relative; z-index: 2;
}
.logo:hover { opacity: .85; }
.logo__img { height: 39px; width: auto; display: block; }

/* Links */
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 13px;
  font-size: .875rem; font-weight: 500;
  color: var(--text-2); border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__links a.active { color: var(--cyan); }

/* Burger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  position: relative; z-index: 2;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .22s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 100px; background: var(--bg);
}
.hero__glow {
  position: absolute; top: -15%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(37,99,235,.2) 0%, transparent 65%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black, transparent);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; margin-bottom: 22px;
}
.hero__sub {
  font-size: 1.08rem; color: var(--text-2);
  line-height: 1.8; max-width: 460px; margin-bottom: 36px;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Chat window */
.hero__visual { display: flex; justify-content: flex-end; }
.chat-window {
  width: 100%; max-width: 390px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 32px 80px rgba(0,0,0,.65), 0 0 80px rgba(37,99,235,.08);
}
.chat-window__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red    { background: #FF5F57; }
.dot--yellow { background: #FEBC2E; }
.dot--green  { background: #28C840; }
.chat-window__title {
  margin-left: 8px; font-size: .78rem;
  font-weight: 600; color: var(--text-2);
}
.chat-window__body {
  padding: 20px 18px; min-height: 220px;
  display: flex; flex-direction: column; gap: 11px;
}
.msg {
  padding: 10px 14px; border-radius: 13px;
  font-size: .875rem; line-height: 1.5; max-width: 88%;
}
.msg--bot {
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 13px 13px 13px 3px;
  align-self: flex-start; color: var(--text);
}
.msg--user {
  background: var(--grad); color: #fff;
  border-radius: 13px 13px 3px 13px;
  align-self: flex-end;
}
.msg:nth-child(1) { animation: fadeUp .5s .2s both; }
.msg:nth-child(2) { animation: fadeUp .5s .7s both; }
.msg:nth-child(3) { animation: fadeUp .5s 1.2s both; }
.msg:nth-child(4) { animation: fadeUp .5s 1.7s both; }
.msg:nth-child(5) { animation: fadeUp .5s 2.2s both; }

/* Typing dots */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  display: block; width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  animation: bounce 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%,60%,100% { transform: translateY(0); opacity: .35; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* ── STATS BAR ─────────────────────────────────────── */
.statsbar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.statsbar__inner {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 48px; gap: 4px;
}
.stat strong {
  font-size: 1.9rem; font-weight: 800; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.stat-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ── STEPS ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37,99,235,.1);
}
.step-card__n {
  position: absolute; top: 18px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 600;
  color: var(--text-3); letter-spacing: .1em;
}
.step-card__icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 18px;
}
.step-card__icon svg { width: 20px; height: 20px; }
.step-card h3 {
  font-size: .95rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.3; padding-right: 28px;
}
.step-card p { font-size: .84rem; color: var(--text-2); line-height: 1.65; }

/* ── BENEFITS ──────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.benefit-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.benefit-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.benefit-card--wide { grid-column: 1 / -1; }
.benefit-card__icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.benefit-card__icon svg { width: 22px; height: 22px; }
.benefit-card__body { flex: 1; min-width: 0; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.benefit-card p  { font-size: .875rem; color: var(--text-2); line-height: 1.7; }

/* ── PRICING ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: start;
  margin-bottom: 20px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px; position: relative;
  overflow: hidden;
}
.price-card__integrations-img {
  width: calc(100% + 72px);
  margin: -36px -36px 28px -36px;
  height: auto;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-card--featured {
  border-color: rgba(37,99,235,.4);
  background: linear-gradient(150deg, rgba(37,99,235,.07) 0%, var(--bg-card) 55%);
  box-shadow: 0 0 0 1px rgba(37,99,235,.12), 0 30px 70px rgba(37,99,235,.08);
}
.price-card__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 5px 18px; border-radius: 100px;
  white-space: nowrap; letter-spacing: .04em;
}
.price-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.price-card__sub { font-size: .84rem; color: var(--text-2); margin-bottom: 28px; line-height: 1.5; }
.price-card__amounts {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.price-card__amount { display: flex; align-items: baseline; gap: 10px; }
.amount { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.amount--accent { color: var(--cyan); }
.suffix { font-size: .84rem; color: var(--text-2); }
.price-card__list {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 28px;
}
.price-card__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--text-2);
}
.price-card__list li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--cyan); }
.pricing-note {
  text-align: center; font-size: .84rem; color: var(--text-3);
}
.pricing-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.pricing-note a:hover { color: #fff; }

/* ── TEAM ──────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 620px; margin: 0 auto 52px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
  text-align: center;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.team-card__photo {
  aspect-ratio: 3/4;
  background: #0A1428;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text-3);
}
.team-card__photo svg { width: 52px; height: 52px; }
.team-card__photo span { font-size: .76rem; letter-spacing: .07em; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; padding: 18px 20px 4px; }
.team-card span { display: block; font-size: .82rem; color: var(--cyan); font-weight: 500; padding: 0 20px 20px; }
.about-text {
  max-width: 680px; margin: 0 auto;
  text-align: center;
}
.about-text p {
  font-size: 1rem; color: var(--text-2); line-height: 1.85;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }

.team-about {
  max-width: 620px; margin: 0 auto;
  text-align: center; font-size: .95rem;
  color: var(--text-2); line-height: 1.85;
}

/* ── CONTACT ───────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; max-width: 760px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 24px 24px 20px;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
  border-left: 3px solid var(--blue);
}
.contact-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.contact-card .contact-card__icon {
  width: 40px; height: 40px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 10px;
}
.contact-card__icon svg { width: 18px; height: 18px; }
.contact-card > span {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3);
}
.contact-card a,
.contact-card address,
.contact-card p {
  font-size: .875rem; color: var(--text); line-height: 1.6;
}
.contact-card a:hover { color: var(--cyan); }

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__brand .logo { display: block; margin-bottom: 10px; }
.footer__brand p { font-size: .875rem; color: var(--text-2); }
.footer__cols { display: flex; gap: 52px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.footer__cols strong {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3); margin-bottom: 2px;
}
.footer__cols a,
.footer__cols span { font-size: .875rem; color: var(--text-2); line-height: 1.65; }
.footer__cols a:hover { color: var(--cyan); }
.footer__bottom { padding: 20px 0; }
.footer__bottom-row {
  display: flex; align-items: center; justify-content: space-between;
}
.footer__bottom-row span,
.footer__bottom-row a { font-size: .8rem; color: var(--text-3); }
.footer__bottom-row a:hover { color: var(--cyan); }

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── TERMS PAGE ────────────────────────────────────── */
.terms { padding: 140px 0 100px; min-height: 80vh; }
.terms__inner { max-width: 740px; }
.terms__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--text-2);
  margin-bottom: 36px; transition: color .2s;
}
.terms__back:hover { color: var(--cyan); }
.terms h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
}
.terms__meta { font-size: .84rem; color: var(--text-3); margin-bottom: 48px; }
.terms__content h2 { font-size: 1.05rem; font-weight: 700; margin: 36px 0 10px; }
.terms__content p,
.terms__content li { font-size: .875rem; color: var(--text-2); line-height: 1.8; margin-bottom: 12px; }
.terms__content ul { list-style: disc; padding-left: 20px; }
.terms__placeholder {
  padding: 40px; text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3); font-style: italic;
}

/* ── RESPONSIVE — TABLET ≤1024px ───────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero__sub   { margin: 0 auto 36px; }
  .hero__btns  { justify-content: center; }
  .hero__visual { justify-content: center; }
  .chat-window  { max-width: 440px; }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .stat         { padding: 8px 32px; }
}

/* ── RESPONSIVE — MOBILE ≤768px ────────────────────── */
@media (max-width: 768px) {
  :root { --py: 72px; }

  .nav__burger { display: flex; }
  .logo__img { height: 30px; }
  .nav__links {
    position: fixed; inset: 0;
    background: rgba(5,12,28,.98);
    z-index: 1;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav__links.open { opacity: 1; pointer-events: all; }
  .nav__links a    { font-size: 1.1rem; padding: 10px 24px; }

  .hero { padding: 110px 0 64px; }
  .statsbar__inner { gap: 0; }
  .stat { padding: 12px 20px; }
  .stat-sep { height: 1px; width: 40px; }

  .steps-grid     { grid-template-columns: 1fr; }
  .benefits-grid  { grid-template-columns: 1fr; }
  .benefit-card--wide { grid-column: 1; }
  .contact-grid   { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .team-grid      { max-width: 380px; }

  .footer__inner  { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols   { flex-direction: column; gap: 28px; }
  .footer__bottom-row { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 440px) {
  .hero__btns { flex-direction: column; align-items: stretch; }
  .team-grid  { grid-template-columns: 1fr; max-width: 260px; }
  .statsbar__inner { flex-direction: column; gap: 20px; }
  .stat-sep   { display: none; }
}
