﻿/* ========== APPLE-INSPIRED DESIGN ========== */
:root {
  --primary: #0071e3;
  --primary-dark: #0056b3;
  --text-primary: #1d1d1d;
  --text-secondary: #666;
  --bg: #ffffff;
  --bg-light: #f5f5f7;
  --border: #d2d2d7;
  --shadow: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, ''Segoe UI'', ''Helvetica Neue'', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

/* ========== HERO SECTION ========== */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeIn 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-hero {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.4);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  animation: slideInRight 0.8s ease-out;
}

.hero-card {
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 100%);
  padding: 3rem;
  border-radius: 20px;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.hero-card:nth-child(3) {
  grid-column: 1 / -1;
}

/* ========== FEATURES SECTION ========== */
.features {
  background: var(--bg-light);
  padding: 6rem 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== SPOTLIGHT SECTIONS ========== */
.spotlight {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.spotlight-alt {
  grid-template-columns: 1fr 1fr;
}

.spotlight-alt > div:first-child {
  order: 2;
}

.spotlight-alt > div:last-child {
  order: 1;
}

.spotlight-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.spotlight-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.link-arrow {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.link-arrow:hover {
  transform: translateX(4px);
}

.ai-preview {
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chat-preview {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.msg {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.msg.user {
  background: var(--primary);
  color: white;
  text-align: right;
}

.msg.ai {
  background: var(--bg-light);
  color: var(--text-primary);
}

.upload-preview {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== FOR-SCHOOLS SECTION ========== */
.for-schools {
  background: white;
  padding: 6rem 2rem;
}

.for-schools h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.benefits-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.benefit {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  padding-top: 4rem;
}

.benefit-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.benefit h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section p {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== FAQ SECTION ========== */
.faq {
  background: var(--bg-light);
  padding: 6rem 2rem;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: white;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }
  
  .hero-content h1 { font-size: 2.5rem; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-card:nth-child(3) { grid-column: auto; }
  
  .spotlight, .spotlight-alt { grid-template-columns: 1fr; }
  .spotlight-alt > div { order: initial !important; }
  
  .features h2, .faq h2, .for-schools h2 { font-size: 1.8rem; }
}
