/* ScreenSage landing styles */
:root {
  --bg: #0b0f17;
  --card: #111726;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --primary: #6aa6ff;
  --primary-600: #4d8df5;
  --outline: #24314a;
  --accent: #7ef0ff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -20%, #112041 0%, transparent 60%),
    radial-gradient(800px 600px at -10% 20%, #1a2a4e 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 280px),
    var(--bg);
  background-repeat: no-repeat;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Nav (unused on this page) */

/* Hero */
.hero { padding: 88px 0 32px; }
.hero-centered .hero-inner { grid-template-columns: 1fr; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); margin: 6px 0 12px; letter-spacing: -0.025em; }
.hero-title { font-weight: 800; line-height: 1.1; }
.hero-text.center { text-align: center; max-width: 900px; margin: 0 auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--text); font-size: 12px; font-weight: 600; margin-bottom: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.hl { background: linear-gradient(90deg, rgba(255,230,140,0.45), rgba(255,190,80,0.28) 50%, rgba(255,230,140,0.45)); padding: 4px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 6px 24px rgba(255,190,80,0.20); }
.subtitle { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 72ch; margin-left: auto; margin-right: auto; }
.micro { font-size: 12px; margin-top: 8px; }
.cta { display: flex; gap: 12px; margin: 24px 0 10px; justify-content: center; }
/* .meta (unused on this page) */

.window { border: 1px solid var(--outline); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04); margin-top: 18px; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--outline); }
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.window-bar .title { margin-left: auto; font-size: 12px; color: var(--muted); }
.window-body { padding: 16px; background: #0b0f17; }
.window pre { margin: 0; font-size: 13px; line-height: 1.6; color: #cde7ff; white-space: pre-wrap; }

/* Social proof (unused on this page) */
.muted { color: var(--muted); }

/* Highlights */
.highlights { 
  padding: 48px 0 32px; 
  position: relative;
  background: 
    radial-gradient(800px 600px at 50% 10%, rgba(106,166,255,0.03) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,15,23,0.3) 40%, rgba(0,0,0,0) 100%);
}

.highlights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126,240,255,0.4), transparent);
  opacity: 0.6;
}

.highlight-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
  margin-top: 32px;
}

.tile { 
  position: relative; 
  padding: 24px 20px 20px; 
  border-radius: 20px; 
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 600ms ease forwards;
}

.tile:nth-child(1) { animation-delay: 100ms; }
.tile:nth-child(2) { animation-delay: 200ms; }
.tile:nth-child(3) { animation-delay: 300ms; }
.tile:nth-child(4) { animation-delay: 400ms; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0;
  height: 2px; 
  background: linear-gradient(90deg, 
    rgba(126,240,255,0.6) 0%, 
    rgba(106,166,255,0.8) 50%, 
    rgba(126,240,255,0.6) 100%
  ); 
  opacity: 0.7;
  transform: scaleX(0);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tile::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(400px 200px at 50% 0%, rgba(126,240,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.tile:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 
    0 24px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 40px rgba(126,240,255,0.15);
  border-color: rgba(255,255,255,0.15); 
}

.tile:hover .tile-icon {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 
    0 16px 40px rgba(126,240,255,0.4),
    0 0 30px rgba(126,240,255,0.3);
}

.tile h3 { 
  margin: 8px 0 12px; 
  font-size: 17px; 
  color: #f8fafc; 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.tile p { 
  margin: 0; 
  color: #cbd5e1; 
  font-size: 14px; 
  line-height: 1.6; 
  position: relative;
  z-index: 2;
}

.tile-icon { 
  position: absolute; 
  top: -18px; 
  right: -18px; 
  width: 44px; 
  height: 44px; 
  border-radius: 14px; 
  display: grid; 
  place-items: center; 
  background: 
    linear-gradient(135deg, rgba(126,240,255,0.15), rgba(106,166,255,0.1));
  border: 1px solid rgba(126,240,255,0.3);
  box-shadow: 
    0 12px 32px rgba(126,240,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  font-size: 20px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  animation: float 3s ease-in-out infinite;
}

.tile-icon:nth-child(odd) { animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* Grid utility used in How it works */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Features (unused on this page) */

/* How */
.how { 
  padding: 32px 0 80px; 
  position: relative;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,12,20,0.6) 20%, rgba(8,12,20,0.8) 50%, rgba(8,12,20,0.6) 80%, rgba(0,0,0,0) 100%),
    radial-gradient(1000px 400px at 50% 50%, rgba(106,166,255,0.04) 0%, transparent 70%);
  overflow: hidden;
}

.how::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 98px,
      rgba(126,240,255,0.03) 100px
    );
  pointer-events: none;
}

.how h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 600ms ease forwards;
  animation-delay: 100ms;
}

.timeline { 
  position: relative; 
  z-index: 2;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(106,166,255,0.3) 10%, 
    rgba(126,240,255,0.5) 50%, 
    rgba(106,166,255,0.3) 90%, 
    transparent 100%
  );
  z-index: 1;
  opacity: 0.6;
}

.timeline .step { 
  position: relative; 
  border-radius: 24px; 
  padding: 32px 24px 24px; 
  overflow: visible;
  background: 
    linear-gradient(135deg, rgba(30,41,69,0.9) 0%, rgba(15,20,32,0.8) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 
    0 20px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 700ms ease forwards;
}

.timeline .step:nth-child(1) { animation-delay: 200ms; }
.timeline .step:nth-child(2) { animation-delay: 400ms; }
.timeline .step:nth-child(3) { animation-delay: 600ms; }

.timeline .step::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0;
  height: 3px; 
  opacity: 0.8;
}

.timeline .step::after { 
  content: ""; 
  position: absolute; 
  top: 3px; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: 
    radial-gradient(600px 300px at 50% 0%, rgba(126,240,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.timeline .step:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 60px rgba(106,166,255,0.2);
  border-color: rgba(255,255,255,0.18);
}

.timeline .step:hover::after {
  opacity: 1;
}

.timeline .step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 
    0 12px 40px rgba(106,166,255,0.8),
    0 0 30px rgba(106,166,255,0.6);
}

.timeline .step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 
    0 16px 40px rgba(126,240,255,0.4),
    0 0 30px rgba(126,240,255,0.3);
}

.step-num { 
  position: absolute; 
  top: -15px; 
  left: -15px; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); 
  color: #071226; 
  display: grid; 
  place-items: center; 
  font-weight: 800; 
  font-size: 14px;
  box-shadow: 
    0 12px 32px rgba(106,166,255,0.5),
    0 0 0 3px rgba(11,15,23,1),
    0 0 0 4px rgba(106,166,255,0.3);
  z-index: 15;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 
      0 12px 32px rgba(106,166,255,0.5),
      0 0 0 3px rgba(11,15,23,1),
      0 0 0 4px rgba(106,166,255,0.3);
  }
  50% { 
    box-shadow: 
      0 12px 32px rgba(106,166,255,0.7),
      0 0 0 3px rgba(11,15,23,1),
      0 0 0 4px rgba(106,166,255,0.5);
  }
}

.step-icon { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  font-size: 20px; 
  opacity: 0.9; 
  background: 
    linear-gradient(135deg, rgba(126,240,255,0.15), rgba(106,166,255,0.1));
  border: 1px solid rgba(126,240,255,0.25);
  border-radius: 12px; 
  padding: 8px 10px; 
  box-shadow: 
    0 12px 32px rgba(126,240,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.2);
  z-index: 10;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  animation: float 4s ease-in-out infinite;
}

.step-icon:nth-child(even) { animation-delay: 2s; }

.timeline .step h4 {
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.timeline .step p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Details */
.details { padding: 10px 0 24px; background: linear-gradient(180deg, rgba(6,10,18,0), rgba(10,14,22,0.45) 40%, rgba(6,10,18,0)); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel { position: relative; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); }
.panel::before { content: ""; position: absolute; top: 8px; left: 10px; width: 26px; height: 14px; border-radius: 8px; background: radial-gradient(22px 12px at 50% 0px, rgba(126,240,255,0.5), rgba(126,240,255,0) 70%); opacity: 0.45; }
.subpanel + .subpanel { margin-top: 12px; }
.mini-title { margin: 0 0 6px; font-size: 14px; color: var(--text); opacity: 0.9; }
.checklist, .bullets { margin: 10px 0 0; padding: 0; color: var(--muted); list-style: none; }
.checklist li, .bullets li { margin: 10px 0; position: relative; padding-left: 22px; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 14px; }
.bullets li::before { content: "•"; position: absolute; left: 4px; top: 0; color: var(--muted); }

/* FAQ */
.faq { padding: 6px 0 24px; position: relative; }
.faq::after { content: none; }
.faq details { position: relative; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 16px; margin: 12px 0; background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); transition: border-color 160ms ease, box-shadow 200ms ease, transform 100ms ease; }
.faq details:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.14); box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); }
.faq details[open] { border-color: rgba(255,255,255,0.16); }
.faq details::before { content: ""; position: absolute; top: 8px; left: 10px; width: 26px; height: 14px; border-radius: 8px; background: radial-gradient(22px 12px at 50% 0px, rgba(126,240,255,0.5), rgba(126,240,255,0) 70%); opacity: 0.45; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-left: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); transform-origin: 50% 50%; transition: transform 180ms ease, color 180ms ease; }
.faq details[open] > summary::before { transform: rotate(90deg); color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid rgba(126,240,255,0.5); outline-offset: 4px; border-radius: 10px; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.faq details[open] > :not(summary) { animation: fadeSlide 180ms ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* CTA */
.cta { padding: 20px 0 40px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--outline); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 16px; padding: 18px; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: var(--muted); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); color: #071226; box-shadow: 0 6px 28px rgba(106,166,255,0.4); }
.btn-outline { border-color: var(--outline); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--outline); }

/* Pointer + hover affordances */
a, .btn, .tile, .timeline .step, .panel, .faq summary { cursor: pointer; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 22px; height: 22px; border: 2px solid rgba(126,240,255,0.6); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); transition: width 120ms ease, height 120ms ease, background-color 120ms ease, border-color 120ms ease, transform 40ms linear, opacity 200ms ease; mix-blend-mode: screen; box-shadow: 0 0 20px rgba(126,240,255,0.25); z-index: 9999; opacity: 0.6; }
.cursor-ring.is-down { transform: translate(-50%, -50%) scale(0.88); border-color: rgba(126,240,255,0.9); opacity: 0.8; }
.cursor-ring.is-hover { width: 28px; height: 28px; background: radial-gradient(closest-side, rgba(126,240,255,0.14), rgba(126,240,255,0)); border-color: rgba(126,240,255,0.95); box-shadow: 0 0 28px rgba(126,240,255,0.35); opacity: 0.8; }
@media (max-width: 800px) { .cursor-ring { display: none; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .highlight-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .highlights { padding: 32px 0 24px; }
  .how { padding: 24px 0 48px; }
  
  .tile { padding: 20px 16px 16px; }
  .timeline .step { padding: 28px 20px 20px; }
  
  .step-num { 
    width: 32px; 
    height: 32px; 
    top: -12px; 
    left: -12px; 
    font-size: 13px;
  }
  
  .step-icon { 
    top: 10px; 
    right: 10px; 
    font-size: 18px; 
    padding: 6px 8px; 
  }
  
  .tile-icon { 
    width: 40px; 
    height: 40px; 
    top: -14px; 
    right: -14px; 
    font-size: 18px;
  }
  
  .how h2 { font-size: 28px; margin-bottom: 32px; }
  
  .timeline::before { display: none; }
}
