:root {
  /* FORNA Brand Colors - matching Flutter app */
  --primary: #40342E;
  --primary-dark: #2A201C;
  --primary-light: #5A4A42;
  
  /* Text Colors - matching Flutter app */
  --text-primary: #1A1A1A;
  --text-secondary: #6C757D;
  --text-tertiary: #ADB5BD;
  
  /* Background Colors - matching Flutter app */
  --bg-primary: #ffffff;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F4;
  
  /* Border Colors - matching Flutter app */
  --border-light: #E9ECEF;
  --border-medium: #DEE2E6;
  
  /* Status Colors */
  --success: #6B7A6F;
  --success-light: #F0F3F1;
  --error: #DC3545;
  --error-light: #fee2e2;
  
  /* Shadows - subtle like FORNA app */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
  font-size: 0.9375rem;
}

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

.nav-link-cta {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition-base);
}

.nav-link-cta:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title-highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.icon-small {
  width: 16px;
  height: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: inherit;
  white-space: nowrap;
}

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

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 52, 46, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn-loader {
  display: inline-flex;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sections */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Section */
.features {
  background-color: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke-width: 2;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Screenshots Section */
.screenshots {
  background-color: var(--bg-secondary);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshot-item {
  flex: 0 1 320px;
  max-width: 320px;
  position: relative;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: 
    0 0 0 12px #1A1A1A,
    0 0 0 13px #E9ECEF,
    var(--shadow-xl);
  transition: var(--transition-slow);
  background: #1A1A1A;
  display: block;
}

.screenshot-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 
    0 0 0 12px #1A1A1A,
    0 0 0 13px #E9ECEF,
    0 12px 24px 0 rgba(0, 0, 0, 0.15);
}

/* Early Access Section */
.early-access {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.early-access-content {
  max-width: 600px;
  margin: 0 auto;
}

.early-access-header {
  text-align: center;
  margin-bottom: 3rem;
}

.early-access-header .section-title {
  margin-bottom: 1rem;
}

.early-access-header .section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
}

.form-wrapper {
  background-color: var(--bg-primary);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 550px;
  margin: 0 auto;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.form-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-base);
  background-color: var(--bg-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.error {
  border-color: var(--error);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  min-height: 1.25rem;
  display: block;
}

/* Platform Switch */
.platform-switch {
  display: flex;
  gap: 1rem;
  background-color: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: 12px;
}

.platform-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
}

.platform-btn:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.platform-btn.active {
  background-color: var(--bg-primary);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 20px;
  height: 20px;
}

/* Success Message */
.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background-color: var(--success-light);
  border: 2px solid var(--success);
  border-radius: 16px;
  text-align: center;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--success);
  flex-shrink: 0;
  stroke-width: 2;
}

.success-text {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.125rem;
}

.success-text strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.early-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-tagline {
  margin-top: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column {
  min-width: 120px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: white;
}

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

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    gap: 1rem;
  }
  
  .nav-link:not(.nav-link-cta) {
    display: none;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  section {
    padding: 3.5rem 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .screenshots-grid {
    gap: 1.5rem;
  }
  
  .screenshot-item {
    flex: 0 1 100%;
    max-width: 300px;
  }
  
  .form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .platform-switch {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

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

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth scroll padding for fixed header */
html {
  scroll-padding-top: 80px;
}

