/* AstroLink Landing Page Theme */

:root {
  --color-text: #ffffff;
  --color-primary: #9333ea;      /* main purple */
  --color-primary-soft: #a855f7;  /* hover/alt purple */
  --color-panel: #1f1f2e;         /* section/panel background */
  --color-border: #9333ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* Starry image background with dark overlay; falls back to panel color */
  background:
    linear-gradient(rgba(10, 8, 22, 0.6), rgba(10, 8, 22, 0.6)),
    url("./astro_background.jpg") no-repeat center center fixed,
    url("../astro-chat/astro_background.jpg") no-repeat center center fixed,
    var(--color-panel);
  background-size: cover, cover, cover, auto;
  overflow-x: hidden;
}

/* Global scrollbar themed to Astro purple */
html { scrollbar-width: thin; scrollbar-color: #a855f7 rgba(255, 255, 255, 0.06); }
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #a855f7, #9333ea); border-radius: 8px; border: 2px solid rgba(0, 0, 0, 0.25); }
body::-webkit-scrollbar-thumb:hover { background: #9333ea; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 2px solid var(--color-primary-soft);
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 64px; width: auto; }
.brand h1 { margin: 0; font-size: 1.5rem; letter-spacing: 0.3px; }

main { max-width: 1500px; width: 98%; margin: 0 auto; padding: 2rem 0.5rem 3rem; }

.hero { text-align: center; margin-top: 2rem; }
.hero-title { font-size: 2.75rem; margin: 0 0 0.8rem 0; letter-spacing: 0.4px; }
.typewriter { height: 28px; margin-bottom: 0.9rem; font-size: 1.3rem; color: #cfcfe8; }
.typewriter .caret { color: #a855f7; animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { gap: 0.6rem; margin: 0 0 1.2rem; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary-soft); }
.btn-outline:hover { background: var(--color-primary-soft); }
.hero-lead { margin: 0.6rem auto; max-width: 900px; color: #e9e9ee; }
.hero-strong { color: #ffffff; }
.hero-sublead { margin: 0.6rem auto 1.2rem; max-width: 920px; color: #d8d8e8; }

/* Hero images */
.hero-visuals { position: relative; height: 140px; margin-top: 0.5rem; }
.hero-img { position: absolute; opacity: 0.95; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.hero-img-main { width: 120px; left: 50%; transform: translateX(-50%); animation: float 6s ease-in-out infinite; }
.hero-img-badge { width: 64px; }
.badge-verified { left: calc(50% + 110px); top: 10px; animation: float 7s ease-in-out -1s infinite; }
.badge-founder { left: calc(50% - 170px); top: 24px; animation: float 7.5s ease-in-out -0.5s infinite; }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* Sticky CTA */
.cta-sticky { position: fixed; left: 0; right: 0; bottom: -100px; z-index: 30; transition: bottom .35s ease; }
.cta-sticky.show { bottom: 12px; }
.cta-sticky-inner { margin: 0 auto; max-width: 900px; background: rgba(0,0,0,0.5); border: 1px solid rgba(168,85,247,0.4); border-radius: 12px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(6px); }
.cta-sticky-text { color: #fff; font-weight: 600; }
.cta-sticky-actions { display: flex; gap: 0.5rem; align-items: center; }
.cta-sticky-close { background: transparent; color: #fff; border: 0; font-size: 1.2rem; cursor: pointer; padding: 6px; }

.cta-row { display: inline-flex; gap: 0.75rem; }

.btn {
  background: var(--color-primary);
  color: var(--color-text);
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { background: var(--color-primary-soft); }
.btn.cta { background: #22c55e; border-color: #16a34a; }
.btn.cta:hover { background: #16a34a; }

.panel {
  /* Section/panel background color */
  background: var(--color-panel);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (max-width: 1200px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature { text-align: left; }

.footer { text-align: center; font-size: 0.9rem; color: #bdbdd2; padding: 2rem 1rem; }
.footer a { color: var(--color-primary-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }


/* About Section */
.about { margin-top: 3rem; }

.about-header { text-align: center; margin-bottom: 0.75rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
}
.about-title { margin: 0.75rem 0 0.25rem; font-size: 2rem; }
.about-tagline { color: #d8d8e8; margin: 0 auto 1.25rem; max-width: 720px; }

.about-content { position: relative; overflow: hidden; }
.about-content::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(600px 200px at 10% -20%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(400px 160px at 100% 0%, rgba(147, 51, 234, 0.15), transparent);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-copy p { margin: 0 0 0.9rem; color: #e7e7f2; line-height: 1.7; }

.about-card-inner {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 51, 234, 0.5);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.about-card-inner h4 { margin: 0.35rem 0 0.5rem; font-size: 1.2rem; }

.about-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.35), rgba(147, 51, 234, 0.35));
  border: 1px solid rgba(168, 85, 247, 0.6);
  padding: 6px 9px;
  border-radius: 999px;
}

.about-points { list-style: none; padding: 0; margin: 0 0 1rem; }
.about-points li { position: relative; padding-left: 1.1rem; margin: 0.45rem 0; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.about-card-inner .btn { margin-top: 0.5rem; width: 100%; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-title { font-size: 1.7rem; }
  .about-card-inner { padding: 1rem; }
}


/* Early Access Section */
.early { margin-top: 3rem; }
.early-header { text-align: center; margin-bottom: 1rem; }
.early-title { margin: 0.5rem 0 0.25rem; font-size: 1.9rem; }
.early-tagline { color: #d8d8e8; margin: 0 auto; max-width: 720px; }

.early-wrapper { position: relative; }
.early-panel {
  position: relative;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(0, 0, 0, 0)) border-box,
    radial-gradient(800px 200px at 10% -30%, rgba(168, 85, 247, 0.18), transparent) border-box,
    radial-gradient(500px 160px at 100% 0%, rgba(147, 51, 234, 0.12), transparent) border-box,
    var(--color-panel);
  box-shadow: 0 25px 70px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c2dd9, #a855f7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}
.meter-glow {
  position: absolute;
  inset: -12px -12px 0 -12px;
  background: radial-gradient(40% 160% at 0% 50%, rgba(168, 85, 247, 0.15), transparent);
  pointer-events: none;
}
.meter-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: #cfcfe8; margin: 0.35rem 2px 1rem; }

.early-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.early-copy p { margin: 0 0 0.9rem; color: #e7e7f2; line-height: 1.7; }

.early-card-inner {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 51, 234, 0.5);
  border-radius: 12px;
  padding: 1.25rem;
}
.early-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.35), rgba(147, 51, 234, 0.35));
  border: 1px solid rgba(168, 85, 247, 0.6);
  padding: 6px 9px;
  border-radius: 999px;
}
.early-points { list-style: none; padding: 0; margin: 0 0 1rem; }
.early-points li { position: relative; padding-left: 1.1rem; margin: 0.45rem 0; }
.early-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}
.early-card-inner .btn { width: 100%; }

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

/* What's Next Section */
.next { margin-top: 3rem; }
.next-header { text-align: center; margin-bottom: 1rem; }
.next-title { margin: 0.5rem 0 0; font-size: 1.9rem; }
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.next-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 51, 234, 0.45);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  min-height: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-card span { color: #ffffff; opacity: 0.95; }
.next-card:hover { border-color: var(--color-primary-soft); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15) inset; }

@media (max-width: 1200px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .next-grid { grid-template-columns: 1fr; } .next-card { white-space: normal; } }

/* Core Features */
.core { margin-top: 3rem; }
.core-header { text-align: center; margin-bottom: 1rem; }
.core-title { margin: 0.5rem 0 0; font-size: 1.9rem; }
.core-grid {
  display: grid;
  grid-auto-flow: column;              /* horizontal flow */
  grid-auto-columns: minmax(220px, 1fr); /* card width */
  gap: 0.8rem;
  overflow-x: auto;                    /* horizontal slider */
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;       /* snap to cards */
  overscroll-behavior-x: contain;
}
.core-card {
  aspect-ratio: 1 / 1; /* square */
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 51, 234, 0.45);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  overflow: hidden; /* keep strict 1:1 shape */
  scroll-snap-align: start;            /* snap card */
}
.core-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.core-card p { margin: 0; color: #e7e7f2; font-size: 0.95rem; }
/* Clamp text so content doesn't break square ratio */
.core-card h4,
.core-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.core-card h4 { -webkit-line-clamp: 2; line-clamp: 2; }
.core-card p { -webkit-line-clamp: 3; line-clamp: 3; }
.core-card:hover { border-color: var(--color-primary-soft); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15) inset; }

/* Subtle horizontal scrollbar styling */
.core-grid::-webkit-scrollbar { height: 8px; }
.core-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 4px; }
.core-grid::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 4px; }
.core-grid::-webkit-scrollbar-thumb:hover { background: #9333ea; }

/* The slider stays single-row across sizes; no column breakpoints needed */

/* Community */
.community { margin-top: 3rem; }
.community-inner { overflow: hidden; position: relative; }
.community-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: center; }
.community-title { margin: 0.5rem 0 0.35rem; font-size: 1.9rem; }
.community-tagline { color: #d8d8e8; margin: 0 0 0.75rem; max-width: 720px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.4); padding: 6px 10px; border-radius: 999px; font-size: 0.9rem; }

.community-visual { display: flex; justify-content: center; }
.device {
  width: 280px; height: 540px; border-radius: 28px; position: relative;
  background: linear-gradient(180deg, #121222, #0f0f1c);
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.device-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 18px; border-radius: 0 0 14px 14px; background: #0a0a14; border: 1px solid rgba(255,255,255,0.06);
}
.device-screen { position: absolute; inset: 0; border-radius: 22px; background: rgba(0,0,0,0.35); border: 1px solid rgba(168,85,247,0.35); overflow: hidden; margin: 40px 12px 12px; }
.screen-row { display: flex; gap: 0.5rem; padding: 0.6rem; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.4); }
.chat { padding: 0.35rem 0.6rem 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; height: calc(100% - 56px); overflow-y: auto; }
.chat::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.5); border-radius: 6px; }
.msg { display: flex; align-items: flex-end; gap: 0.4rem; }
.msg-left { justify-content: flex-start; }
.msg-right { justify-content: flex-end; }
.msg-avatar { width: 22px; height: 22px; border-radius: 50%; background: #5833a6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; border: 1px solid rgba(168,85,247,0.5); }
.msg-bubble { max-width: 75%; background: rgba(0,0,0,0.45); border: 1px solid rgba(168,85,247,0.35); padding: 6px 8px; border-radius: 10px; }
.msg-right .msg-bubble { background: rgba(147,51,234,0.2); border-color: rgba(168,85,247,0.5); }
.msg-name { font-size: 0.7rem; color: #a855f7; margin-bottom: 2px; }
.msg-text { font-size: 0.8rem; color: #eee; line-height: 1.3; }
.wave { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 70%; background: radial-gradient(60% 120% at 50% 20%, rgba(168,85,247,0.22), transparent); filter: blur(10px); }

@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
  .community-visual { order: -1; }
  .device { width: 240px; height: 480px; }
}
