@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Design Tokens */
:root {
  --ink: #0d1a36;
  --muted: #495c78;
  --brand: #2e5eaa;
  --brand-dark: #234881;
  --brand-light: #5a83c7;
  --accent: #f7b548;
  --soft: #f3f6ff;
  --panel: #ffffff;
  --stroke: rgba(13, 26, 54, 0.12);
  --glow: rgba(46, 94, 170, 0.25);
}

* {
  box-sizing: border-box;
}

/* Base */
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #eff4ff 0%, #e8effc 45%, #f5f8ff 100%);
  overflow-x: hidden;
}

/* Page Shell */
.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.page::before,
.page::after {
  content: '';
  position: absolute;
  z-index: -1;
  filter: blur(0);
  opacity: 0.7;
}

.page::before {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(46, 94, 170, 0.25), transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.page::after {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(90, 131, 199, 0.24), transparent 70%);
  animation: float 14s ease-in-out infinite reverse;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5vw 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.header-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.header-link:hover {
  border-color: var(--accent);
}

/* Hero */
main {
  padding: 1.5rem 5vw 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.hero-content {
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.3rem, 3.3vw, 3.4rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 94, 170, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
}

/* Download Form */
.download-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(10, 27, 31, 0.12);
  border: 1px solid rgba(46, 94, 170, 0.16);
  animation: fadeUp 0.8s ease 0.15s both;
}

.download-card h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin: 0 0 0.75rem;
}

.download-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.notice {
  background: rgba(247, 181, 72, 0.15);
  border: 1px solid rgba(247, 181, 72, 0.4);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.notice strong {
  color: var(--brand-dark);
}

.notice.notice-security {
  background: rgba(46, 94, 170, 0.12);
  border-color: rgba(46, 94, 170, 0.3);
  margin-top: -0.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
}

input[type="email"] {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 27, 31, 0.2);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.download-button {
  width: 100%;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 28px rgba(46, 94, 170, 0.25);
}

.download-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.download-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.field-error {
  color: #b03b2d;
  font-size: 0.85rem;
}

.success {
  background: rgba(46, 94, 170, 0.12);
  border: 1px solid rgba(46, 94, 170, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.error-banner {
  background: rgba(176, 59, 45, 0.12);
  border: 1px solid rgba(176, 59, 45, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  color: #7a231a;
  font-weight: 600;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* Supporting Content */
.showcase {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  animation: fadeUp 0.9s ease 0.2s both;
}

.shot {
  background: linear-gradient(135deg, rgba(46, 94, 170, 0.1), rgba(255, 255, 255, 0.85));
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(10, 27, 31, 0.12);
  box-shadow: 0 18px 36px rgba(10, 27, 31, 0.12);
}

.shot img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.showcase h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-top: 0;
}

.showcase p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  animation: fadeUp 0.9s ease 0.3s both;
}

.feature-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(10, 27, 31, 0.1);
  box-shadow: 0 16px 28px rgba(10, 27, 31, 0.08);
}

.feature-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-top: 0;
  font-size: 1.1rem;
}

ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-note {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  border: 1px dashed rgba(46, 94, 170, 0.35);
  color: var(--muted);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero,
  .showcase {
    grid-template-columns: 1fr;
  }

  .download-card {
    order: 2;
  }
}
