/* IdeaLoom splash site */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --text: #ededed;
  --text-muted: #9a9a9a;
  --purple: #9600FF;
  --orange: #FF6B00;
  --border: #262626;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
}

/* ---------- Landing page ---------- */

.hero-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  padding: 18vh 0 4rem;
  max-width: 42rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c268ff 0%, var(--purple) 55%, #5a00b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple); /* fallback if background-clip unsupported */
}

.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text);
}

.hero-beta {
  margin-top: 0.5rem;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tagline {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: #c268ff;
}

/* ---------- Value props ---------- */

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 56rem;
  width: 100%;
  padding-bottom: 6rem;
}

.prop {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.prop-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.prop p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 12vh;
  }

  .value-props {
    grid-template-columns: 1fr;
  }
}

/* ---------- Early access form ---------- */

.form-page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #c268ff;
}

.form-title {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #c268ff 0%, var(--purple) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.form-sub {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

#access-form {
  margin-top: 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.req {
  color: var(--orange);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-error {
  color: var(--orange);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-message {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--purple);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
