/* ===== Loop A.I.S — Landing Page ===== */
:root {
  --bg: #0B0E13;
  --surface: #141922;
  --surface-2: #1C232E;
  --surface-3: #252E3B;
  --border: #2A3342;
  --red: #E11D27;
  --red-dark: #8B0000;
  --amber: #F5A623;
  --green: #27C25E;
  --blue: #3B82F6;
  --rose: #FF4D5E;
  --text: #F4F6FA;
  --muted: #9AA5B5;
  --faint: #5E6878;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.text-red { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red), #B3151D);
  color: #fff;
  box-shadow: 0 10px 26px rgba(225, 29, 39, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(225, 29, 39, 0.5); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--surface-3); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 14, 19, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 14, 19, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { border-radius: 9px; }
.brand-name { font-size: 18px; letter-spacing: -0.2px; }
.brand-accent { color: var(--red); }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu a { padding: 10px 4px; font-weight: 600; color: var(--muted); }
.mobile-menu a.btn { color: #fff; margin-top: 6px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(225, 29, 39, 0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -1.5px;
  margin: 18px 0 16px;
  font-weight: 900;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.platform-pills {
  display: flex; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; flex-wrap: wrap;
}
.platform-pills li {
  font-size: 13px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* Phone mockup */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #20262f, #0c0f14);
  border: 1px solid #2b3442;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 26px; width: 100%; }
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 20px;
  background: #05070a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.hero-visual { position: relative; justify-self: center; max-width: 340px; }
.phone-hero { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(20, 25, 34, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}
.float-card-1 { top: 30%; left: -46px; animation: float 6s ease-in-out infinite; }
.float-card-2 { bottom: 20%; right: -40px; animation: float 6s ease-in-out .8s infinite; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; }
.fc-red { background: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 39, 0.2); }
.fc-green { background: var(--green); box-shadow: 0 0 0 4px rgba(39, 194, 94, 0.2); }

/* ===== Value strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 30px 22px; text-align: center; }
.strip-item + .strip-item { border-left: 1px solid var(--border); }
.strip-num { font-size: 1.9rem; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.strip-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.8px; margin: 12px 0 0; font-weight: 900;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

/* ===== Features ===== */
.feature-list { display: flex; flex-direction: column; gap: 72px; }
.feature { display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center; }
.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.feature-visual { justify-self: center; max-width: 300px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.icon-red { background: rgba(225, 29, 39, 0.14); }
.icon-green { background: rgba(39, 194, 94, 0.16); }
.icon-amber { background: rgba(245, 166, 35, 0.16); }
.icon-blue { background: rgba(59, 130, 246, 0.16); }
.feature-text h3 { font-size: 1.6rem; letter-spacing: -0.5px; margin: 0 0 12px; font-weight: 800; }
.feature-text p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 600; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(39, 194, 94, 0.16); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900;
}

/* ===== Steps ===== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none;
}
.step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(180deg, var(--red), #B3151D); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px;
  box-shadow: 0 8px 20px rgba(225, 29, 39, 0.35); margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ===== Gallery ===== */
.gallery { margin-top: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 22px; padding: 10px 22px 24px; width: max-content; margin: 0 auto; }
.gshot { width: 234px; flex: 0 0 auto; transition: transform .25s ease; }
.gshot:hover { transform: translateY(-8px); }

/* ===== Cards 3 ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.mini-card .feature-icon { margin-bottom: 14px; }
.mini-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.mini-card p { color: var(--muted); margin: 0; }

.privacy {
  margin-top: 34px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: 14px; padding: 20px 24px;
}
.privacy-badge { font-weight: 800; color: var(--green); white-space: nowrap; }
.privacy p { margin: 0; color: var(--muted); }

/* ===== CTA ===== */
.cta { position: relative; padding: 96px 0; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(225, 29, 39, 0.22), transparent 55%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 680px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.8px; margin: 0 0 12px; font-weight: 900; }
.cta p { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-tag { color: var(--faint); font-size: 13px; }
.footer-nav { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--faint); font-size: 13px; width: 100%; margin: 8px 0 0; }

/* ===== Content / legal pages ===== */
.page-hero { position: relative; padding: 66px 0 30px; text-align: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero .hero-glow { top: -260px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -1px; margin: 10px 0 8px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 40ch; }
.legal { max-width: 800px; margin: 0 auto; padding: 46px 22px 84px; }
.legal h2 { font-size: 1.42rem; letter-spacing: -0.4px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; }
.legal p { margin: 0 0 14px; }
.legal strong { color: var(--text); }
.legal a { color: var(--red); }
.legal a:hover { text-decoration: underline; }
.legal ul { padding-left: 20px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.legal .updated { color: var(--faint); font-size: 0.92rem; margin-top: 4px; }
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.note p { margin: 0; color: var(--muted); }
.note strong { color: var(--amber); }

/* Contact cards (support) */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 8px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px;
}
.contact-card .feature-icon { margin-bottom: 12px; }
.contact-card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--text); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--red); font-weight: 700; }

/* FAQ accordions */
.faq { margin: 8px 0 0; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  padding: 16px 18px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.faq details ul { padding: 0 18px 16px 40px; margin: 0; }

@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .platform-pills { justify-content: center; }
  .feature, .feature-reverse .feature-text, .feature-reverse .feature-visual { grid-template-columns: 1fr; order: 0; }
  .feature { gap: 28px; text-align: center; }
  .feature-text { display: flex; flex-direction: column; align-items: center; }
  .ticks { text-align: left; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 66px 0; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .float-card-1 { left: -10px; }
  .float-card-2 { right: -6px; }
  .footer-nav { margin-left: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-hero, .float-card { animation: none; }
  html { scroll-behavior: auto; }
}
