/* SynapTree Marketing — Core Styles */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-forest-green);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 620px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  padding: 0.8em 1.6em;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-amber-glow);
  color: var(--color-deep-navy);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-amber-glow-dark);
  box-shadow: var(--shadow-glow-amber);
}

.btn--primary:focus-visible {
  outline: 3px solid var(--color-amber-glow-light);
  outline-offset: 2px;
}

.btn--secondary {
  background: transparent;
  color: var(--color-forest-green);
  border: 2px solid var(--color-forest-green);
}

.btn--secondary:hover {
  background: var(--color-forest-green);
  color: var(--color-white);
}

.btn--secondary:focus-visible {
  outline: 3px solid var(--color-forest-green-light);
  outline-offset: 2px;
}

.btn--large {
  font-size: var(--font-size-lg);
  padding: 1em 2em;
  border-radius: var(--radius-lg);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-deep-navy);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-4) 0;
  background: transparent;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(26, 43, 61, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-forest-green);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-forest-green);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--color-forest-green);
  outline-offset: 4px;
  border-radius: 2px;
}

.btn-nav-cta {
  margin-left: var(--space-4);
  font-size: var(--font-size-sm) !important;
  padding: 0.6em 1.4em;
  background: var(--color-forest-green);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-nav-cta:hover {
  background: var(--color-forest-green-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-deep-navy);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
  padding-top: calc(80px + var(--section-padding));
  padding-bottom: var(--section-padding);
  background: linear-gradient(180deg, var(--color-soft-sage-light) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-6);
}

.hero-title .accent {
  color: var(--color-forest-green);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-illustration {
  width: 100%;
  max-width: 560px;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------
   Features
   ------------------------------------------------ */
.features {
  background: var(--color-white);
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.features-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  gap: var(--space-8);
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-medium-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  color: var(--color-forest-green);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ------------------------------------------------
   Interactive Demo
   ------------------------------------------------ */
.demo {
  background: var(--color-light-gray);
}

.demo-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.demo-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.demo-svg-container {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-medium-gray);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.demo-svg-container svg {
  width: 100%;
  height: auto;
}

.demo-hint {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.demo-tooltip {
  position: absolute;
  background: var(--color-deep-navy);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-tooltip);
  white-space: nowrap;
}

.demo-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-deep-navy);
}

/* ------------------------------------------------
   Themes Showcase
   ------------------------------------------------ */
.themes {
  background: var(--color-white);
}

.themes-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.themes-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.themes-grid {
  display: grid;
  gap: var(--space-8);
  max-width: 960px;
  margin: 0 auto;
}

.theme-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: default;
}

.theme-card-header {
  padding: var(--space-4) var(--space-6);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-card-preview {
  padding: var(--space-6);
  min-height: 200px;
  position: relative;
}

/* Light theme */
.theme-light .theme-card-header {
  background: #F0F2F5;
  color: #333;
}
.theme-light .theme-card-preview {
  background: #FFFFFF;
}

/* Dark theme */
.theme-dark .theme-card-header {
  background: #1E2A3A;
  color: #E0E0E0;
}
.theme-dark .theme-card-preview {
  background: #0F1923;
}

/* Nature theme */
.theme-nature .theme-card-header {
  background: #2E6B47;
  color: #D5E8E0;
}
.theme-nature .theme-card-preview {
  background: #1A3A2A;
}

/* Mini mind map nodes inside theme previews */
.mini-node {
  position: absolute;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.mini-connection {
  position: absolute;
  height: 2px;
  transform-origin: left center;
}

/* Light theme preview nodes */
.theme-light .mini-node {
  background: var(--color-soft-sage);
  color: var(--color-deep-navy);
  border: 1px solid #B8D4C8;
}
.theme-light .mini-node.root {
  background: var(--color-forest-green);
  color: var(--color-white);
  border: none;
}
.theme-light .mini-connection {
  background: #B8D4C8;
}

/* Dark theme preview nodes */
.theme-dark .mini-node {
  background: #253D54;
  color: #C4D6E8;
  border: 1px solid #3A5572;
}
.theme-dark .mini-node.root {
  background: #3A8F6A;
  color: #FFFFFF;
  border: none;
}
.theme-dark .mini-connection {
  background: #3A5572;
}

/* Nature theme preview nodes */
.theme-nature .mini-node {
  background: #1F4D35;
  color: #A8D5BC;
  border: 1px solid #2E6B47;
}
.theme-nature .mini-node.root {
  background: #E8A838;
  color: #1A3A2A;
  border: none;
}
.theme-nature .mini-connection {
  background: #2E6B47;
}

/* ------------------------------------------------
   Pricing
   ------------------------------------------------ */
.pricing {
  background: var(--color-light-gray);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.pricing-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  gap: var(--space-8);
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 2px solid var(--color-medium-gray);
  display: flex;
  flex-direction: column;
}

.pricing-card.is-featured {
  border-color: var(--color-forest-green);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-forest-green);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-deep-navy);
  margin-bottom: var(--space-2);
}

.pricing-price .currency {
  font-size: var(--font-size-xl);
  vertical-align: super;
  font-weight: var(--font-weight-bold);
}

.pricing-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-forest-green);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------
   Download
   ------------------------------------------------ */
.download {
  background: var(--color-deep-navy);
  color: var(--color-white);
  text-align: center;
}

.download .section-title {
  color: var(--color-white);
}

.download-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  margin-bottom: var(--space-8);
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.download-meta svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
  background: var(--color-deep-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-12) 0 var(--space-8);
  color: rgba(255, 255, 255, 0.5);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

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

.footer-links a:focus-visible {
  outline: 2px solid var(--color-forest-green-light);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
}

.footer-made-with {
  color: rgba(255, 255, 255, 0.35);
}
