:root {
  /* Brand Colors */
  --primary: #4F46E5; /* Indigo 600 */
  --primary-hover: #4338CA; /* Indigo 700 */
  --secondary: #10B981; /* Emerald 500 */
  --accent: #F59E0B; /* Amber 500 */
  --dark: #111827; /* Gray 900 */
  --light: #F9FAFB; /* Gray 50 */
  --white: #ffffff;
  
  /* Text Colors */
  --text-main: #1F2937; /* Gray 800 */
  --text-muted: #6B7280; /* Gray 500 */
  --text-light: #9CA3AF; /* Gray 400 */

  /* Borders & Shadows */
  --border-color: #E5E7EB; /* Gray 200 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing & Sizing */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --container-width: 1200px;
  --header-height: 80px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2.5rem; letter-spacing: -0.025em; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); }

a { text-decoration: none; color: inherit; transition: color 0.2s; }

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

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.section { padding: 5rem 0; }
.text-center { text-align: center; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #E0E7FF;
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.navbar.navbar-app {
  height: 60px;
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}
.nav-container-fluid {
  max-width: 100%;
  padding: 0 1.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-icon {
  width: 3rem;
  height: 3rem;
  background: #E0E7FF;
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* App Interface Mockup */
.doc-ul { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.doc-li { margin-bottom: 0.5rem; }
.toolbar-divider { width: 1px; height: 20px; background: var(--border-color); margin: 0 4px; }
.toolbar-btn-text { width: auto; padding: 0 8px; }
.app-interface {
  height: calc(100vh - var(--header-height));
  display: flex;
  background: var(--white);
  overflow: hidden;
}
.sidebar {
  width: 260px;
  background: var(--light);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.sidebar-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.sidebar-item:hover, .sidebar-item.active {
  background: #E0E7FF;
  color: var(--primary);
}
.sidebar-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.main-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.editor-toolbar {
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--white);
}
.toolbar-actions {
  display: flex;
  gap: 1rem;
}
.toolbar-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.toolbar-btn:hover {
  background: var(--light);
  color: var(--dark);
}

.editor-content {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.doc-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  border: none;
  outline: none;
  width: 100%;
  margin-bottom: 1.5rem;
}
.doc-body {
  font-size: 1.125rem;
  color: var(--text-main);
  line-height: 1.8;
  outline: none;
}
.placeholder-line {
  height: 1rem;
  background: #F3F4F6;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 1rem 0;
}
.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.features-list {
  margin: 2rem 0;
  list-style: none;
  text-align: left;
  width: 100%;
}
.features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.check-icon {
  color: var(--secondary);
  font-weight: bold;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}
.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
}
.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Placeholders for icons/images */
.placeholder-avatar {
  width: 48px;
  height: 48px;
  background: #E5E7EB;
  border-radius: 50%;
}

/* Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.text-xl { font-size: 1.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }

/* Mockup Specifics */
.mockup-container {
  background: #F3F4F6;
  border-radius: 8px;
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .sidebar { display: none; }
  .editor-content { padding: 2rem; }
  
  .navbar { height: auto; padding: 1rem 0; }
  .nav-container { flex-direction: column; gap: 1rem; height: auto; }
  .nav-links { flex-direction: column; gap: 1rem; width: 100%; text-align: center; }
  .nav-links .btn { width: 100%; }
}
