/* ============================================
   Freedom Ledger Financial, Inc
   Main Stylesheet
   ============================================ */

/* CSS Custom Properties - Design System */
:root {
  /* Colors */
  --color-primary: #0A0F1E;
  --color-primary-light: #1A2332;
  --color-accent: #4F46E5;
  --color-accent-hover: #4338CA;
  --color-accent-light: #818CF8;
  
  --color-text-primary: #0A0F1E;
  --color-text-secondary: #6C757D;
  --color-text-light: #ADB5BD;
  
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F9FA;
  --color-bg-tertiary: #E9ECEF;
  
  --color-border: #DEE2E6;
  --color-border-light: #E9ECEF;
  
  /* Spacing System - 8px base */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  
  /* Container */
  --container-max-width: 1280px;
  --container-padding: var(--space-3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

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

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

ul {
  list-style: none;
}

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

/* ============================================
   Layout Components
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.main {
  min-height: 100vh;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.nav-brand {
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-1);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-base);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
}

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

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: var(--space-16) 0 var(--space-12);
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  border-radius: var(--radius-base);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Value Proposition Section
   ============================================ */

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

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-6);
  text-align: center;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.value-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.value-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================
   Projects Section
   ============================================ */

.projects-section {
  padding: var(--space-12) 0;
  background-color: var(--color-bg-secondary);
}

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

.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

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

.product-card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-4);
  min-height: 80px;
}

.product-card-logo-img {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.product-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.product-features {
  margin-bottom: var(--space-4);
  padding-left: var(--space-3);
}

.product-features li {
  list-style: disc;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.product-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

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

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.cta-text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-12) 0 var(--space-4);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.page-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.page-subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
}

/* ============================================
   Mission Section
   ============================================ */

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

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.mission-statement {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   Vision Section
   ============================================ */

.vision-section {
  padding: var(--space-12) 0;
  background-color: var(--color-bg-secondary);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.vision-card {
  background-color: var(--color-bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.vision-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.vision-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   Values Section
   ============================================ */

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

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

.value-icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-secondary);
  border-radius: 50%;
  color: var(--color-accent);
}

.value-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.value-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================
   Company Section
   ============================================ */

.company-section {
  padding: var(--space-12) 0;
  background-color: var(--color-bg-secondary);
}

.company-content {
  max-width: 900px;
  margin: 0 auto;
}

.company-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.company-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* ============================================
   Product Detail Section
   ============================================ */

.product-detail-section {
  padding: var(--space-12) 0;
}

.product-detail-section.alt-bg {
  background-color: var(--color-bg-secondary);
}

.product-detail-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.product-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.product-logo {
  max-width: 300px;
  height: auto;
  display: block;
}

.product-badge-large {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.product-detail-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.product-detail-tagline {
  font-size: 24px;
  color: var(--color-text-secondary);
}

.product-detail-main {
  max-width: 900px;
  margin: 0 auto;
}

.detail-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  margin-top: var(--space-8);
  color: var(--color-text-primary);
}

.detail-heading:first-child {
  margin-top: 0;
}

.detail-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.features-list {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.feature-item {
  padding: var(--space-4);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-base);
}

.product-detail-section.alt-bg .feature-item {
  background-color: var(--color-bg-primary);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.feature-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.technical-list {
  margin-bottom: var(--space-6);
}

.technical-list li {
  list-style: disc;
  margin-left: var(--space-4);
  padding-left: var(--space-1);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.technical-list strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.product-cta {
  margin-top: var(--space-8);
  text-align: center;
}

/* ============================================
   Contact Section
   ============================================ */

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

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Info */
.contact-info-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-base);
  color: var(--color-accent);
}

.contact-info-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.contact-info-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.contact-info-link {
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.contact-info-link:hover {
  color: var(--color-accent-hover);
}

.contact-info-section {
  margin-bottom: var(--space-6);
}

.contact-info-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.resource-link {
  font-size: 14px;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

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

/* Map Section */
.map-section {
  padding: var(--space-8) 0;
  background-color: var(--color-bg-secondary);
}

.map-placeholder {
  height: 300px;
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 18px;
  color: var(--color-text-secondary);
}

/* ============================================
   Utility Classes
   ============================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

