/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fdfbff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Animated Background ===== */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: blob-drift 20s ease-in-out infinite alternate;
}
.blob-1 {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, #ff8a5b 0%, transparent 70%);
}
.blob-2 {
  width: 500px; height: 500px; top: 30%; right: -10%;
  background: radial-gradient(circle, #9b7bf0 0%, transparent 70%);
  animation-delay: -7s; animation-duration: 25s;
}
.blob-3 {
  width: 400px; height: 400px; bottom: -5%; left: 30%;
  background: radial-gradient(circle, #f06192 0%, transparent 70%);
  animation-delay: -14s; animation-duration: 30s;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(253, 251, 255, 0.8);
  border-bottom: 1px solid rgba(155, 123, 240, 0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: #2a2140;
}
.nav-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #ff8a5b, #f06192 50%, #9b7bf0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(240, 97, 146, 0.3);
}
.nav-logo.small { width: 26px; height: 26px; border-radius: 7px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500; color: #5c4a7a;
}
.nav-links a:hover { color: #f06192; }
.nav-github { opacity: 0.6; transition: opacity 150ms; }
.nav-github:hover { opacity: 1; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 120px 32px 60px;
  display: flex; align-items: center; justify-content: center;
  gap: 60px;
  max-width: 1200px; margin: 0 auto;
}
.hero-content { max-width: 520px; flex-shrink: 0; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(155, 123, 240, 0.1);
  color: #9b7bf0; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px; font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #ff8a5b, #f06192 40%, #9b7bf0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px; line-height: 1.6;
  color: #5c4a7a; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 20px; font-size: 13px; color: #8e7aa8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  transition: transform 150ms, box-shadow 150ms;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #ff8a5b, #f06192);
  color: white;
  box-shadow: 0 8px 24px rgba(240, 97, 146, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(240, 97, 146, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: #5c4a7a;
  border: 1px solid rgba(155, 123, 240, 0.15);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 16px; }

/* ===== Hero Floating Cards ===== */
.hero-visual { flex: 1; min-width: 0; position: relative; }
.hero-cards-scene {
  position: relative; width: 100%; height: 400px;
  perspective: 800px;
}
.float-card {
  position: absolute;
  border-radius: 16px; padding: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.45);
  animation: float 6s ease-in-out infinite;
  width: 220px;
}
.float-card-1 {
  background: linear-gradient(160deg, #FFE4D6, #FFC8A8);
  top: 10px; left: 10%;
  animation-delay: 0s;
}
.float-card-2 {
  background: linear-gradient(160deg, #EDE4FF, #D4C2FF);
  top: 60px; left: 45%;
  animation-delay: -2s;
}
.float-card-3 {
  background: linear-gradient(160deg, #D8F5E3, #A8E6C1);
  top: 200px; left: 20%;
  animation-delay: -4s;
  width: 190px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.fc-title { font-size: 13px; font-weight: 700; }
.fc-pin { font-size: 12px; }
.fc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 7px; font-size: 12px;
  margin-bottom: 3px;
}
.fc-check {
  width: 14px; height: 14px; border-radius: 4px;
  background: rgba(255,255,255,0.55); border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.fc-check.checked {
  background: rgba(0,0,0,0.2); border-color: transparent;
}
.fc-item.done { opacity: 0.5; text-decoration: line-through; }

/* ===== Section Layout ===== */
.section-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
}
.section-title {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 12px;
}
.section-desc {
  font-size: 17px; color: #5c4a7a; text-align: center;
  max-width: 500px; margin: 0 auto 48px;
  line-height: 1.5;
}

/* ===== Features ===== */
.features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(155, 123, 240, 0.08);
  transition: transform 200ms, box-shadow 200ms;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(43, 28, 80, 0.08);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--fi-color) 12%, transparent);
  color: var(--fi-color);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: #5c4a7a; line-height: 1.5;
}

/* ===== Themes ===== */
.themes { padding: 100px 0; }
.theme-showcase { margin-bottom: 48px; }
.showcase-label {
  font-size: 14px; font-weight: 600; color: #7a6a8f;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px; text-align: center;
}

.color-pills {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.color-pill {
  width: 90px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pill-from), var(--pill-to));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 200ms;
}
.color-pill:hover { transform: translateY(-4px) scale(1.05); }
.color-pill span { font-size: 10px; font-weight: 600; opacity: 0.7; }

.app-themes-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.app-theme-card {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.app-theme-card span { font-size: 12px; font-weight: 600; color: #5c4a7a; }
.atc-preview {
  width: 100%; aspect-ratio: 3/4; border-radius: 14px;
  padding: 12px 10px; display: flex; flex-direction: column;
  gap: 6px; align-items: flex-start; justify-content: flex-end;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 200ms;
  overflow: hidden;
}
.atc-preview:hover { transform: translateY(-4px) scale(1.03); }
.atc-accent {
  width: 60%; height: 14px; border-radius: 7px;
}
.atc-bar {
  width: 80%; height: 8px; border-radius: 4px;
}
.atc-bar.short { width: 50%; }

/* ===== Shortcuts ===== */
.shortcuts {
  padding: 100px 0;
  background: rgba(155, 123, 240, 0.03);
}
.shortcut-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; max-width: 700px; margin: 0 auto;
}
.shortcut-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(155, 123, 240, 0.08);
}
.key-combo {
  display: flex; align-items: center; gap: 4px;
}
.key-combo span { color: #8e7aa8; font-size: 12px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(155, 123, 240, 0.1);
  font-family: 'Inter', monospace; font-size: 12px; font-weight: 600;
  color: #3b1f66;
  border: 1px solid rgba(155, 123, 240, 0.15);
  box-shadow: 0 2px 0 rgba(155, 123, 240, 0.1);
}
.shortcut-action {
  font-size: 14px; font-weight: 500; color: #5c4a7a;
}

/* ===== Tech Stack ===== */
.tech { padding: 80px 0; }
.tech-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 800px; margin: 0 auto;
}
.tech-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(155, 123, 240, 0.06);
}
.tech-icon { font-size: 28px; }
.tech-item strong { font-size: 14px; }
.tech-item span { font-size: 12px; color: #7a6a8f; }

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta-title {
  font-size: 40px; font-weight: 900; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 18px; color: #5c4a7a; margin-bottom: 36px;
}
.cta-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.cta-info {
  margin-top: 20px;
  display: flex; gap: 8px; justify-content: center;
  font-size: 13px; color: #8e7aa8;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(155, 123, 240, 0.08);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: #2a2140;
}
.footer-links {
  display: flex; gap: 24px; font-size: 13px; color: #7a6a8f;
}
.footer-links a:hover { color: #f06192; }
.footer-copy {
  font-size: 13px; color: #8e7aa8; width: 100%; text-align: center;
  margin-top: 8px;
}
.footer-copy a { color: #f06192; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column; text-align: center;
    padding-top: 100px; gap: 40px;
  }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 38px; }
  .hero-cards-scene { height: 300px; }
  .float-card { width: 180px; transform: scale(0.9); }
  .float-card-2 { left: 35%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .app-themes-grid { grid-template-columns: repeat(3, 1fr); }
  .shortcut-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-github) { display: none; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .app-themes-grid { grid-template-columns: repeat(3, 1fr); }
  .color-pills { gap: 8px; }
  .color-pill { width: 72px; height: 48px; }
  .tech-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 30px; }
  .footer-links { gap: 16px; }
}
