/* LimitBee — Home */
:root {
  --purple-deep: #4c1d95;
  --purple-mid: #7c3aed;
  --blue-bright: #2563eb;
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --ink: #0f172a;
  --ink-soft: #475569;
  --surface: #faf8ff;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(76, 29, 149, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--purple-deep), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-deep);
  background: rgba(124, 58, 237, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '∞';
  position: absolute;
  bottom: 10%;
  left: -5%;
  font-size: 18rem;
  font-weight: 800;
  color: rgba(124, 58, 237, 0.04);
  line-height: 1;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-mid);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-mid), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-mid), var(--blue-bright));
  color: var(--white);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: var(--white);
  color: var(--purple-deep);
  border: 2px solid rgba(124, 58, 237, 0.2);
}

.btn-outline:hover {
  border-color: var(--purple-mid);
  background: rgba(124, 58, 237, 0.04);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-app-img {
  max-width: 340px;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.hero-app-img:hover {
  transform: translateY(-8px) scale(1.02);
}

/* App Showcase */
.app-showcase {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.app-showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.app-showcase h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.showcase-desc {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.showcase-item {
  margin: 0;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.08);
  box-shadow: 0 8px 32px rgba(76, 29, 149, 0.06);
  transition: all 0.35s ease;
}

.showcase-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.showcase-item figcaption {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.showcase-item figcaption strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
}

.showcase-item figcaption span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 58, 237, 0.08);
  max-width: 380px;
  width: 100%;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.hero-card-header h3 {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-card-header p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.credit-meter {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(37, 99, 235, 0.06));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.credit-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.credit-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--purple-deep);
}

.credit-amount small {
  font-size: 1rem;
  font-weight: 600;
}

.credit-bar {
  height: 6px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.credit-bar-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--purple-mid), var(--gold));
  border-radius: 999px;
  animation: fillBar 1.5s ease 0.8s both;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: 72%; }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-item {
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 12px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--purple-deep);
}

.stat-item span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Intro Section */
.intro {
  padding: 5rem 2rem;
  background: var(--white);
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-mid);
  margin-bottom: 1rem;
}

.intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: left;
}

.intro p:last-child { margin-bottom: 0; }

/* Quick Links */
.quick-links {
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-links h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-mid), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.link-card:hover::before { transform: scaleX(1); }

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.link-card h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.link-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-mid);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--purple-deep), #1e1b4b);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.75;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-app-img { max-width: 280px; margin: 0 auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
