/* ==========================================================================
   Galleree Minimalist Showcase Landing Page
   Auto Light/Dark Theme (Matches system prefers-color-scheme like Galleree Web)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* Font Tokens */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', var(--font-sans);

  /* Light Theme Defaults */
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text: #52525b;
  --text-muted: #71717a;
  --text-h: #09090b;

  --border: #e4e4e7;
  --border-active: #a1a1aa;

  --accent: #6366f1;
  --accent-light: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-bg: rgba(99, 102, 241, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

  --max-width: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Overrides */
    --bg: #09090b;
    --bg-card: #121216;
    --bg-subtle: #18181c;
    --bg-glass: rgba(18, 18, 22, 0.85);

    --text: #a1a1aa;
    --text-muted: #71717a;
    --text-h: #f4f4f5;

    --border: #202024;
    --border-active: #3f3f46;

    --accent: #818cf8;
    --accent-light: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --accent-bg: rgba(129, 140, 248, 0.12);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-h);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-h);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-h);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-active);
}

/* Hero Section */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 660px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-image-frame {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Clean Feature Grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-feature:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* Simple Dual Spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.spotlight-img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.spotlight-img img {
  width: 100%;
  height: auto;
  display: block;
}

.spotlight-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-h);
  margin-bottom: 12px;
}

.spotlight-text p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 16px;
}

.spotlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.spotlight-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: bold;
}

/* Simple Simulator */
.sim-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sim-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  gap: 16px;
  align-items: center;
}

.sim-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-h);
  font-size: 0.9rem;
  outline: none;
}

.sim-input:focus {
  border-color: var(--accent);
}

.sim-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 380px;
}

.sim-grid-wrap {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-content: start;
}

.sim-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sim-item.selected,
.sim-item:hover {
  border-color: var(--accent);
}

.sim-thumb {
  height: 100px;
  background-size: cover;
  background-position: center;
}

.sim-info {
  padding: 8px 10px;
}

.sim-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-side {
  border-left: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 16px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-side-h {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-h);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* Minimal Stack List */
.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stack-name {
  font-weight: 600;
  color: var(--text-h);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.stack-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .spotlight,
  .sim-layout {
    grid-template-columns: 1fr;
  }
}
