/* Duckflow Landing — Warm, editorial, organic */

:root {
  --bg: #0d0c0a;
  --bg-elevated: #161412;
  --text: #f5f2ed;
  --text-muted: #a39e94;
  --accent: #e8a838;
  --accent-dim: rgba(232, 168, 56, 0.15);
  --accent-hover: #f0bc50;
  --border: rgba(245, 242, 237, 0.08);
  --radius: 12px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

/* Main */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* Hero */
.hero {
  margin-bottom: 4rem;
}

.hero-tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
}

/* How it works */
.how-it-works {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 2rem;
  color: var(--text);
}

.flow-cards {
  display: grid;
  gap: 1.5rem;
}

.flow-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.flow-card:hover {
  border-color: rgba(232, 168, 56, 0.25);
  transform: translateY(-2px);
}

.flow-card-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.flow-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.flow-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Features */
.features {
  margin-bottom: 4rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* Video */
.video-section {
  margin-bottom: 4rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* CTA */
.cta-section {
  margin-bottom: 4rem;
}

.cta-box {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: var(--radius);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.beta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.beta-input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.beta-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.beta-input:focus {
  border-color: var(--accent);
}

.beta-btn {
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.beta-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.beta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.form-message--success {
  color: #4ade80;
}

.form-message--error {
  color: #f87171;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .main {
    padding: 5rem 1.25rem 3rem;
  }

  .beta-form {
    flex-direction: column;
  }

  .beta-input {
    min-width: 100%;
  }

  .beta-btn {
    width: 100%;
  }
}
