/* ========================================
   MARKSMITH PRO - WEBSITE STYLES
   Clean, professional, accessible
   ======================================== */

/* ========== CSS RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== THEME VARIABLES ========== */
:root {
  /* Brand Colors - matching app accent scheme */
  --accent: #2E8B57;           /* SeaGreen - Primary */
  --accent-light: #7FD1AE;     /* Mint - Secondary */
  --accent-hover: #267046;     /* Darker green for hover */
  
  /* Neutral Colors */
  --bg: #F9FBFF;               /* Subtle blue-white background */
  --surface: #FFFFFF;          /* Pure white cards */
  --text: #0A1724;             /* Near-black text */
  --text-muted: #495967;       /* Muted text */
  
  /* Borders & Lines */
  --border-light: #E8EDF2;
  --border: #C6D3E3;
  --border-strong: #A0B0C0;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.06);
  --shadow: 0 4px 16px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 42, 67, 0.12);
  
  /* Interactive States */
  --focus-ring: 0 0 0 3px rgba(46, 139, 87, 0.2);
  
  /* Layout */
  --max-width: 1100px;
  --section-padding: 3rem 1.5rem;
}

/* ========== SKIP LINK (Accessibility) ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.app-frame {
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.center-float {
  width: 100%;
  max-width: 1000px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-bottom: 2px solid transparent;
}

.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  text-decoration: none;
}

.brand:hover {
  color: white;
  text-decoration: none;
  opacity: 0.95;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-badge img {
  width: 22px;
  height: 22px;
  display: block;
}

.menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Sticky nav shadow effect */
.nav.inset {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.center-float.is-stuck {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.center-float.is-stuck .nav.inset {
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(13, 27, 45, 0.08);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 2px solid var(--border-light);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-padding);
}

.section + .section {
  border-top: 2px solid var(--border-light);
}

.section h2 {
  margin-bottom: 1.5rem;
}

.section .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section .kicker {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: white;
  border-color: var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

/* ========== CARDS & GRIDS ========== */
.card {
  background: var(--surface);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card.iconed h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card .icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  flex-shrink: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========== LISTS ========== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps .bubble {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ========== RIBBON / BADGE ========== */
.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
}

/* ========== SCREENSHOTS ========== */
.screenshot-wrapper {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.screenshot-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: auto;
  border-top: 2px solid var(--border-light);
  padding: 2rem 1.5rem;
  background: var(--surface);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

.icon-img {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  object-fit: contain;
}

.icon-img.sm {
  width: 14px;
  height: 14px;
}

.icon-img.lg {
  width: 24px;
  height: 24px;
}

.rotate-45 {
  transform: rotate(45deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .hero .actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero .actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .menu {
    width: 100%;
    justify-content: center;
  }
  
  .nav .inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .brand {
    font-size: 1.25rem;
  }
  
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .nav,
  .footer,
  .hero .actions {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .center-float {
    border: none;
    box-shadow: none;
  }
}
