@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --red: #E8220B;
  --red-soft: #FF3D2E;
  --red-glow: rgba(232, 34, 11, 0.12);
  --ink: #1A1715;
  --ink-light: #4A4642;
  --ink-faint: #8A8580;
  --paper: #FAF8F5;
  --paper-warm: #F4F0EB;
  --card: #FFFFFF;
  --card-border: rgba(0,0,0,0.04);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAV ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 20px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--red);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }

/* ---- MAIN ---- */
main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 80px;
  width: 100%;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero-icon-wrap {
  position: relative;
}
.hero-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-icon {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(232, 34, 11, 0.18), 0 4px 12px rgba(0,0,0,0.08);
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-icon:hover {
  transform: rotate(0deg) scale(1.04);
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--red);
}
.hero-text p {
  font-size: 18px;
  color: var(--ink-light);
  max-width: 380px;
  line-height: 1.6;
}
.hero-text .store-note {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
  padding: 6px 14px;
  background: var(--paper-warm);
  border-radius: 6px;
}

/* ---- DIVIDER ---- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border) 20%, rgba(0,0,0,0.06) 50%, var(--card-border) 80%, transparent);
  margin: 0 0 64px;
}

/* ---- FEATURES ---- */
.features-header {
  margin-bottom: 40px;
}
.features-header span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}
.features-header h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: -0.5px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.feature:nth-child(2) { transform: translateY(12px); }
.feature:nth-child(2):hover { transform: translateY(9px); }
.feature:nth-child(4) { transform: translateY(12px); }
.feature:nth-child(4):hover { transform: translateY(9px); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--paper-warm);
}
.feature h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.feature-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--paper-warm);
  color: var(--ink-light);
  border-radius: 999px;
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ---- LOAD ANIMATIONS ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero { animation: fade-up 0.7s ease-out both; }
.section-divider { animation: fade-up 0.7s ease-out 0.15s both; }
.features-header { animation: fade-up 0.7s ease-out 0.25s both; }
.feature:nth-child(1) { animation: fade-up 0.6s ease-out 0.35s both; }
.feature:nth-child(2) { animation: fade-up 0.6s ease-out 0.45s both; }
.feature:nth-child(3) { animation: fade-up 0.6s ease-out 0.55s both; }
.feature:nth-child(4) { animation: fade-up 0.6s ease-out 0.65s both; }

/* ---- CONTENT PAGES ---- */
.content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px 44px;
  margin-top: 20px;
  animation: fade-up 0.6s ease-out both;
}
.content h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.content h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.content p, .content li {
  font-size: 15.5px;
  color: var(--ink-light);
  line-height: 1.7;
}
.content p + p { margin-top: 12px; }
.content ul {
  padding-left: 20px;
  margin-top: 10px;
}
.content li { margin-bottom: 8px; }
.content a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.content a:hover { border-bottom-color: var(--red); }
.updated {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

/* ---- FORM ---- */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--sans);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232, 34, 11, 0.2);
}
.submit-btn:hover {
  background: #D01E08;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 34, 11, 0.25);
}
.submit-btn:active {
  transform: translateY(0);
}
.form-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-faint);
}
.form-note a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.form-note a:hover { border-bottom-color: var(--red); }

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { padding: 20px 20px 16px; }
  main { padding: 0 20px 60px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 40px 0 56px;
  }
  .hero-icon-wrap { justify-self: center; }
  .hero-text h1 { font-size: 38px; }
  .hero-text p { max-width: 100%; margin: 0 auto; }
  .hero-text .store-note { margin-top: 16px; }

  .features-header { margin-bottom: 28px; }
  .features-header h2 { font-size: 26px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature:nth-child(2),
  .feature:nth-child(4) { transform: none; }
  .feature:nth-child(2):hover,
  .feature:nth-child(4):hover { transform: translateY(-3px); }

  .content { padding: 32px 24px; }
  .content h1 { font-size: 28px; }
}
