/* CoandaView Landing Page Styles */

:root {
  /* Apple-style colors matching CoandaCloud */
  --apple-blue: #007AFF;
  --apple-gray: #8E8E93;
  --apple-background: #000000;
  --apple-surface: rgba(255, 255, 255, 0.05);
  --apple-border: rgba(255, 255, 255, 0.1);
  --apple-text: #FFFFFF;
  --apple-accent: #30D158;
  --blur-amount: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--apple-background);
  color: var(--apple-text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--apple-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--apple-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--apple-blue);
}

.nav-auth {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero,
.btn-submit {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--apple-surface);
  color: var(--apple-text);
  border: 1px solid var(--apple-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-hero {
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

.btn-submit {
  width: 100%;
  background: var(--apple-blue);
  color: white;
  padding: 12px;
  font-size: 16px;
}

.btn-submit:hover {
  background: #0056b3;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 0, 0, 1) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-highlight {
  display: block;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--apple-gray);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  font-size: 14px;
}

.feature-badge img {
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 80px 24px;
  background: var(--apple-surface);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--apple-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 48px;
  height: 48px;
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--apple-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* About Section */
.about {
  padding: 80px 24px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--apple-gray);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 24px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--apple-gray);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--apple-text);
}

/* Auth Forms */
.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--apple-gray);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  color: var(--apple-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--apple-blue);
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--apple-gray);
}

.error-message {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  color: var(--apple-gray);
  font-size: 14px;
}

.auth-switch a {
  color: var(--apple-blue);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .nav-menu {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
