/* CSS Variables */
:root {
  --bg: #0b0d10;
  --card: #12151a;
  --muted: #aab3c5;
  --text: #eaf0ff;
  --accent: #4d77ff;
  --accent2: #22c55e;
  --r: 14px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, Inter, Segoe UI, Roboto, Arial;
}

/* Links */
a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7aa2ff);
}

/* Hero Section */
.hero {
  margin: 28px 0;
  padding: 28px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(77, 119, 255, 0.18), rgba(34, 197, 94, 0.12));
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 40px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
}

.inner {
  padding: 20px;
}

.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 0.9em;
  margin-top: 8px;
}

/* Form Elements */
label {
  display: block;
  margin: 12px 0 6px;
  color: #cfd7eb;
}

input[type=file], 
select, 
input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1017;
  color: #eaf0ff;
}

/* Voice Choices */
.choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1017;
  color: #eaf0ff;
}

/* Call to Action */
.cta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* Buttons */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: white;
}

/* Sections */
#how,
#faq {
  margin-top: 24px;
}

/* Results and Progress */
.result-section {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.result-section h3 {
  margin: 0 0 10px 0;
  color: var(--accent);
}

.result-section p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.progress {
  font-weight: 500;
}

.error {
  font-weight: 500;
}

.results {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  margin: 32px 0;
  color: #9fb0cf;
}
