:root {
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --success: #16a34a;
  --success-hover: #15803d;
  --secondary: #e5e7eb;
  --secondary-hover: #d1d5db;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

/* Hero section (index.html) */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 64px 24px 96px;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0;
}

.page-wrap {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  margin-top: -56px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  text-align: center;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
  word-break: break-word;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

input[type="url"],
input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="url"]:focus,
input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  background: #a5a6f0;
  cursor: not-allowed;
}

.btn-success {
  background: var(--success);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 18px;
}

.btn-success:hover {
  background: var(--success-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  width: auto;
  padding: 13px 16px;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

.link-btn {
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

.result-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.result-row {
  display: flex;
  gap: 8px;
}

.result-row input {
  flex: 1;
  margin-bottom: 0;
}

/* Step indicator */
.step-indicator {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Video container */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1115;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tutorial-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Notice / status banner */
.notice-box {
  text-align: center;
  font-size: 0.95rem;
  color: #1e3a8a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
}

/* Ad / widget placeholder slots */
.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #f9fafb,
    #f9fafb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-slot:empty::before {
  content: "Ad / Widget Placement";
}

/* Success card (final.html) */
.success-card {
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .card {
    padding: 24px 18px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero {
    padding: 48px 20px 80px;
  }
}
