/* Potion Landing - Custom styles
 * Brand: see BRAND.md
 */

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

:root {
  --brand-purple: #9E4CDC;
  --brand-purple-dark: #8B3FC8;
  --logo-purple: #8330C2;
  --logo-dark: #151A30;
  --bg-off-white: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-primary: #121212;
  --text-muted: #6B7280;
  --border: #E5E5E5;
  --error: #EF4444;
  --success: #10B981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-purple-dark);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  section {
    padding: 120px 0;
  }
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
  margin-bottom: 16px;
}

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  height: 28px;
  width: auto;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 20px);
}

.hero-highlight {
  background: linear-gradient(120deg, var(--brand-purple) 0%, var(--logo-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-purple);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--brand-purple-dark);
  color: var(--bg-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(158, 76, 220, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
}

.btn-secondary:hover {
  background: var(--brand-purple);
  color: var(--bg-white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

/* ===== Use cases grid ===== */
.use-cases {
  background: var(--bg-white);
}

.use-cases-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(19, 26, 48, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--logo-purple) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== Form section ===== */
.form-section {
  background: linear-gradient(180deg, var(--bg-off-white) 0%, var(--bg-white) 100%);
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(19, 26, 48, 0.06);
}

@media (min-width: 768px) {
  .form-wrapper {
    padding: 56px 48px;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  margin-bottom: 12px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

label .required {
  color: var(--error);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-primary);
  transition: all 0.2s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(158, 76, 220, 0.15);
}

input.error,
select.error {
  border-color: var(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1;
  min-width: 140px;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.radio-option input:checked + label {
  border-color: var(--brand-purple);
  background: rgba(158, 76, 220, 0.06);
  color: var(--brand-purple);
}

.radio-option label:hover {
  border-color: var(--brand-purple);
}

.form-footnote {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--logo-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
}

.footer .logo-mark {
  display: inline-block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  height: 24px;
}

.footer p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Thank you page ===== */
.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.thank-you-content {
  max-width: 560px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--logo-purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: white;
}

.thank-you h1 {
  margin-bottom: 16px;
}

.thank-you p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
