:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --bg: #faf8ff;
  --bg-gradient: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 40%, #f0f9ff 100%);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --border: rgba(148, 163, 184, 0.22);
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-hover: 0 12px 40px rgba(124, 58, 237, 0.14);

  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-bg: #ede9fe;
  --sky: #38bdf8;
  --sky-bg: #e0f2fe;
  --mint: #34d399;
  --mint-bg: #d1fae5;
  --amber: #fbbf24;
  --amber-bg: #fef3c7;

  --gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c084fc 100%);
  --gradient-soft: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 50%, #fae8ff 100%);

  --error: #f43f5e;
  --success: #10b981;

  --blob-1: rgba(139, 92, 246, 0.32);
  --blob-2: rgba(167, 139, 250, 0.28);
  --blob-3: rgba(56, 189, 248, 0.22);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-gradient: linear-gradient(145deg, #13111c 0%, #1a1033 45%, #0f172a 100%);
  --surface: rgba(30, 32, 44, 0.75);
  --surface-solid: #1e2030;
  --border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.18);

  --violet-bg: rgba(139, 92, 246, 0.15);
  --sky-bg: rgba(56, 189, 248, 0.12);
  --mint-bg: rgba(52, 211, 153, 0.1);
  --amber-bg: rgba(251, 191, 36, 0.1);

  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(167, 139, 250, 0.1) 50%, rgba(56, 189, 248, 0.08) 100%);

  --blob-1: rgba(139, 92, 246, 0.16);
  --blob-2: rgba(167, 139, 250, 0.14);
  --blob-3: rgba(56, 189, 248, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: float 18s ease-in-out infinite;
}

.blob-1 { width: 420px; height: 420px; background: var(--blob-1); top: -8%; right: -5%; }
.blob-2 { width: 360px; height: 360px; background: var(--blob-2); bottom: 10%; left: -8%; animation-delay: -6s; }
.blob-3 { width: 280px; height: 280px; background: var(--blob-3); top: 45%; left: 55%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -20px) scale(1.05); }
  66% { transform: translate(-16px, 14px) scale(0.97); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.theme-toggle {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  color: var(--violet);
  border-color: rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

.theme-icon--light { display: none; }
[data-theme="dark"] .theme-icon--dark { display: none; }
[data-theme="dark"] .theme-icon--light { display: block; }

.main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
  animation: fade-up 0.7s ease both;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--violet-bg);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-badge { color: var(--violet-light); }

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.hero-gradient {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.connect-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  animation: fade-up 0.7s ease 0.08s both;
}

.connect-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.connect-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--violet-bg);
  color: #7c3aed;
}

[data-theme="dark"] .connect-icon { color: var(--violet-light); }

.connect-title {
  font-size: 1.1rem;
  font-weight: 700;
}

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

.connect-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.connect-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-solid);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.connect-row dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 5.5rem;
}

.connect-row dd {
  font-size: 0.95rem;
}

.connect-row code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9rem;
  padding: 0.15rem 0.45rem;
  background: var(--violet-bg);
  color: #6d28d9;
  border-radius: 6px;
}

[data-theme="dark"] .connect-row code { color: var(--violet-light); }

.connect-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.features {
  margin-bottom: 2.5rem;
  animation: fade-up 0.7s ease 0.16s both;
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  padding: 1.25rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.65rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  animation: fade-up 0.7s ease 0.24s both;
}

.info-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card--benefits {
  background: var(--mint-bg);
  border-color: rgba(52, 211, 153, 0.25);
}

.info-card--consider {
  background: var(--amber-bg);
  border-color: rgba(251, 191, 36, 0.3);
}

.info-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}

.info-list strong {
  color: var(--text);
  font-weight: 600;
}

.audience {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fade-up 0.7s ease 0.32s both;
}

.audience-intro {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.audience-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}

.contact {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-up 0.7s ease 0.4s both;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.contact-emoji {
  font-size: 2rem;
  line-height: 1;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.contact-form {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-solid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-light);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.submit-btn {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--gradient);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
}

.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.form-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
  font-weight: 500;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover { text-decoration: underline; }

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .main { padding-top: 1.75rem; }
  .field-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .connect-row { flex-direction: column; gap: 0.25rem; }
  .connect-row dt { min-width: unset; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
