/* Yipshanks Landing Page
   Dark green / gold theme
   Mobile-first, responsive, WCAG AA */

:root {
  --c-bg: #1C2B14;
  --c-bg-alt: #243618;
  --c-bg-card: #2d4221;
  --c-primary: #2D5016;
  --c-primary-dark: #1A3409;
  --c-gold: #BFA24E;
  --c-gold-bright: #D4B85F;
  --c-gold-muted: #8C7A3A;
  --c-cream: #F5F0E1;
  --c-cream-muted: #B8B0A0;
  --c-border: rgba(140, 122, 58, 0.3);
  --c-border-strong: rgba(191, 162, 78, 0.5);

  --max-width: 1200px;
  --section-padding: clamp(48px, 8vw, 96px);
  --container-padding: clamp(20px, 4vw, 40px);

  --radius: 12px;
  --radius-lg: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(191, 162, 78, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-gold);
  color: var(--c-bg);
  padding: 12px 24px;
  font-weight: bold;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* Focus styles for keyboard users */
:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: rgba(28, 43, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}

nav[aria-label="Primary"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  border: 2px solid var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--c-cream);
  letter-spacing: 0.3px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--c-cream-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--c-gold);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .nav-links li:nth-child(3) {
    display: none;
  }
}

/* HERO */
.hero {
  padding: var(--section-padding) var(--container-padding);
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(45, 80, 22, 0.4), transparent 60%);
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(191, 162, 78, 0.1);
  border: 1px solid var(--c-border-strong);
  border-radius: 100px;
  color: var(--c-gold);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--c-cream);
}

.accent {
  color: var(--c-gold);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: normal;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-cream-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  min-height: 56px;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-bg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-gold-bright);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--c-border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(191, 162, 78, 0.1);
  border-color: var(--c-gold);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* HERO PILLARS */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--c-cream);
}

.pillar-icon {
  font-size: 16px;
}

/* SECTIONS */
.section {
  padding: var(--section-padding) var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--c-bg-alt);
  max-width: none;
}
.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--c-gold);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--c-cream);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-cream-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--c-primary);
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--c-cream);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--c-cream-muted);
  line-height: 1.6;
}

/* PRIVACY GRID */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.privacy-item {
  padding: 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.privacy-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--c-cream);
  margin-bottom: 8px;
}

.privacy-item h3 span {
  color: var(--c-gold);
  font-size: 18px;
  font-weight: bold;
}

.privacy-item p {
  color: var(--c-cream-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* BUILDER CARD */
.builder-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
}

.builder-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
}

.builder-card p {
  color: var(--c-cream-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.builder-aside {
  color: var(--c-gold) !important;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-top: 8px !important;
  opacity: 0.85;
}

.builder-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 0;
}

.builder-links a {
  color: var(--c-gold);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
}

.builder-links a:hover,
.builder-links a:focus-visible {
  text-decoration: underline;
}

.sep {
  color: var(--c-gold-muted);
}

/* CTA SECTION */
.section-cta {
  background: var(--c-primary-dark);
  max-width: none;
  text-align: center;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner > p {
  color: var(--c-cream-muted);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.download-buttons .btn {
  padding: 16px 24px;
  flex-direction: row;
  text-align: left;
}

.btn-icon {
  font-size: 22px;
}

.btn-line-1 {
  display: block;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.btn-line-2 {
  display: block;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.cta-support {
  color: var(--c-cream-muted);
  font-size: 14px;
  margin-top: 16px;
}

.cta-support a {
  color: var(--c-gold);
  text-decoration: none;
  font-weight: 600;
}

.cta-support a:hover,
.cta-support a:focus-visible {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 56px var(--container-padding) 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-brand p {
  color: var(--c-cream-muted);
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-brand a {
  color: var(--c-gold);
  text-decoration: none;
}

.footer-brand a:hover,
.footer-brand a:focus-visible {
  text-decoration: underline;
}

footer nav h3 {
  color: var(--c-gold);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

footer nav ul {
  list-style: none;
}

footer nav li {
  margin-bottom: 8px;
}

footer nav a {
  color: var(--c-cream-muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 4px 0;
  min-height: 32px;
  transition: color 0.2s;
}

footer nav a:hover,
footer nav a:focus-visible {
  color: var(--c-cream);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.footer-bottom p {
  color: var(--c-cream-muted);
  font-size: 12px;
  font-style: italic;
  margin-bottom: 6px;
}

.footer-bottom .tagline {
  color: var(--c-gold);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 12px;
  margin-bottom: 0;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
    letter-spacing: -0.5px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    justify-content: center;
  }
  .download-buttons {
    flex-direction: column;
  }
  .download-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .builder-card {
    padding: 32px 20px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
