/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #b06de5;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;

  --bg: #ffffff;
  --bg-alt: #f8f5fc;
  --text: #1a1a2e;
  --text-muted: #555568;
  --border: #e5e5ef;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.85);

  --accent: var(--purple-500);
  --accent-hover: var(--purple-600);
  --accent-light: var(--purple-100);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #161625;
    --text: #e8e8f0;
    --text-muted: #9a9ab0;
    --border: #2a2a3d;
    --card-bg: #1c1c2e;
    --header-bg: rgba(15, 15, 26, 0.85);
    --accent-light: var(--purple-900);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.logo-link:hover { text-decoration: none; }

.logo { border-radius: 6px; }

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* === Hero === */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}
.btn-secondary:hover { background: var(--purple-200); }
@media (prefers-color-scheme: dark) {
  .btn-secondary { color: #fff; }
  .btn-secondary:hover { background: var(--purple-800); }
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--card-bg);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Sections === */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* === Grid & Cards === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* === Prompt Buttons === */
.prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* === Footer === */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.footer-logo { border-radius: 8px; }

.footer-contact h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav a { font-size: 0.8rem; }
  .logo-text { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
