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

:root {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-main: #1a1a1a;
  --text-sub: #666666;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --card-radius: 24px;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --card-bg: #1e1e1e;
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --accent: #818cf8;
  --accent-light: #312e81;
  --border-color: #374151;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  justify-content: center;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Layouts */
.bento-header { grid-column: span 4; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--accent); }

.bento-main {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--accent-light) 200%);
}

.bento-range { grid-column: span 2; }
.bento-feature-1 { grid-column: span 1; text-align: center; }
.bento-feature-2 { grid-column: span 1; text-align: center; }
.bento-guide { grid-column: span 2; }
.bento-contact { grid-column: span 2; }
.bento-comments { grid-column: span 4; }

/* UI Elements */
.card-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; color: var(--text-sub); margin-bottom: 1rem; text-transform: uppercase; }
.accent-icon { width: 48px; height: 48px; color: var(--accent); }
.feature-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.5rem; }

.roulette-display { font-size: 5rem; font-weight: 800; margin: 1rem 0; font-variant-numeric: tabular-nums; }
.primary-btn { background-color: var(--accent); color: white; border: none; padding: 1rem 2.5rem; border-radius: 16px; font-weight: 600; cursor: pointer; }

.range-input-wrapper { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.range-hint { font-weight: 600; font-size: 1.25rem; }
.range-unit { color: var(--text-sub); font-weight: 500; }

input[type="number"], input[type="email"], textarea {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
}

input[type="number"] { width: 80px; text-align: center; font-weight: 700; font-size: 1.25rem; }

.full-form { display: flex; flex-direction: column; gap: 0.75rem; }
textarea { min-height: 80px; resize: vertical; font-size: 0.9rem; }

.submit-btn {
  background: var(--text-main);
  color: var(--card-bg);
  border: none;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn { background: none; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 12px; cursor: pointer; color: var(--text-main); }

.faq-mini details { border-bottom: 1px solid var(--border-color); padding: 0.5rem 0; }
.faq-mini summary { font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.faq-mini p { font-size: 0.85rem; color: var(--text-sub); margin-top: 0.5rem; }

/* Animations */
.spinning { animation: bounce 0.1s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }

@media (max-width: 850px) {
  .bento-container { grid-template-columns: repeat(2, 1fr); }
  .bento-header, .bento-comments { grid-column: span 2; }
}

@media (max-width: 500px) {
  .bento-container { grid-template-columns: 1fr; }
  .card { grid-column: span 1 !important; grid-row: auto !important; }
}
