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

:root {
  --purple: #2a7d8c;
  --coral: #d4896a;
  --dark: #0c1922;
  --bg: #faf8f4;
  --white: #FFFFFF;
  --gray: #4a6572;
  --light-gray: #f0ebe0;
  --border: #ddd8ce;
  --success: #68b8b0;
  --code-bg: #163347;
  --code-text: #a8d8d3;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

/* ── HERO ────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(145deg, #0c1922 0%, #163347 60%, #1a4a5c 100%);
  color: white;
}

.mac-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 48px;
  color: rgba(255,255,255,0.75);
}

.hero h1 {
  font-size: clamp(60px, 11vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
  background: linear-gradient(140deg, #ffffff 30%, #a8d8d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: white;
  text-decoration: none;
  padding: 16px 44px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108,71,255,0.45);
}

/* ── SHARED LAYOUT ───────────────────── */
.section-intro { max-width: 640px; }
.section-intro.centered { margin: 0 auto 56px; text-align: center; }
.section-intro h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin-bottom: 12px; }
.section-intro p { color: var(--gray); font-size: 18px; line-height: 1.7; }

/* ── FEATURES ────────────────────────── */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.features .section-intro { margin-bottom: 48px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.feature-icon { font-size: 34px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.65; }

/* ── SETUP ───────────────────────────── */
.setup {
  background: var(--white);
  padding: 100px 24px;
}

.progress-bar-wrap {
  background: var(--light-gray);
  border-radius: 100px;
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--coral));
  border-radius: 100px;
  transition: width 0.45s ease;
}
.progress-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
}

.steps {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: var(--white);
}
.step.completed { border-color: var(--success); background: #f0fdf4; }
.step.open .step-body { display: flex; }
.step-body { display: none; flex-direction: column; gap: 14px; padding: 0 28px 28px 76px; }

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
}
.step-toggle { margin-left: auto; color: var(--gray); font-size: 18px; transition: transform 0.25s; }
.step.open .step-toggle { transform: rotate(180deg); }

.step-title { display: flex; align-items: center; gap: 12px; flex: 1; }
.step-title h3 { font-size: 17px; font-weight: 700; }

.step-num {
  width: 30px; height: 30px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.step.completed .step-num { background: var(--success); }

.step-body p { color: var(--gray); line-height: 1.75; font-size: 15px; }
.step-body a { color: var(--purple); }

.tip {
  background: #e8f4f5;
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #1a5a66;
}

/* Checkbox */
.checkbox-wrap {
  position: relative;
  display: inline-block;
  width: 22px; height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.checkmark {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}
.checkbox-wrap input:checked ~ .checkmark { background: var(--success); border-color: var(--success); }
.checkbox-wrap input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Code */
.code-block {
  background: var(--code-bg);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.code-block code {
  color: var(--code-text);
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.copy-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border: none; border-radius: 6px;
  padding: 5px 12px; font-size: 12px;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.18); }
.copy-btn.copied { color: #86efac; }

kbd {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: monospace;
}

/* Numbered list */
.numbered-list {
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--gray); font-size: 15px;
}
.numbered-list li { line-height: 1.7; }
.numbered-list ul { margin-top: 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* ── BUILDER ─────────────────────────── */
.builder { padding: 100px 24px; max-width: 860px; margin: 0 auto; }

.builder-wrap { display: flex; flex-direction: column; gap: 40px; }
.builder-step h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.builder-hint { color: var(--gray); margin-bottom: 24px; font-size: 15px; }

.feature-options { display: flex; flex-direction: column; gap: 14px; }

.feature-option {
  display: flex; align-items: flex-start; gap: 14px;
  border: 2px solid var(--border);
  border-radius: 14px; padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.feature-option:has(input:checked) { border-color: var(--purple); background: #e8f4f5; }
.feature-option input { margin-top: 3px; accent-color: var(--purple); width: 17px; height: 17px; flex-shrink: 0; }
.feature-option-content { display: flex; gap: 14px; align-items: flex-start; }
.feature-option-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.feature-option strong { display: block; font-size: 15px; margin-bottom: 4px; }
.feature-option p { color: var(--gray); font-size: 13px; line-height: 1.55; margin: 0; }

/* Forms */
.builder-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.builder-form h3 { font-size: 19px; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-group .hint { font-weight: 400; color: var(--gray); font-size: 12px; }
.form-group code { background: var(--light-gray); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="time"] {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group textarea:focus,
.form-group input:focus { border-color: var(--purple); }
.form-group textarea { resize: vertical; font-family: 'Menlo', monospace; font-size: 13px; }
.form-group p.hint { margin-top: 6px; font-size: 12px; color: var(--gray); }

/* Download */
.download-section {
  background: linear-gradient(145deg, #0c1922 0%, #163347 100%);
  border-radius: 22px;
  padding: 44px;
  color: white;
}
.download-header h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.download-header p { color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 28px; }
.download-header strong { color: rgba(255,255,255,0.8); }

.combine-option {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.combine-option .hint { color: rgba(255,255,255,0.4); }

/* Toggle */
.toggle-wrap { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-wrap input:checked + .toggle { background: var(--purple); }
.toggle-wrap input:checked + .toggle::before { transform: translateX(18px); }

.download-cards { display: flex; flex-direction: column; gap: 14px; }

.download-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.download-card-info strong { display: block; font-size: 15px; margin-bottom: 3px; }
.download-card-info p { color: rgba(255,255,255,0.45); font-size: 13px; margin: 0; }

.btn-download {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-download:hover { opacity: 0.85; transform: translateY(-1px); }

.hidden { display: none !important; }

/* ── FAQ ─────────────────────────────── */
.faq {
  background: var(--white);
  padding: 100px 24px;
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.faq-item p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 15px;
}

/* ── CONTACT ─────────────────────────── */
.contact {
  background: var(--bg);
  padding: 100px 24px;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.btn-submit {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-submit:hover { opacity: 0.85; transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 640px) {
  .step-body { padding: 0 16px 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .download-section { padding: 28px 20px; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .btn-download { width: 100%; text-align: center; }
}
