/* Landing Page Styles */
:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --primary-color: #0b2b4d;
  --accent-color: #1a73e8;
  --accent-hover: #1558b0;
  --bg-light: #f8f9fa;
  --text-main: #0b2b4d;
  --text-muted: #5f6368;
  --border-color: #d0d7de;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text-main);
  background-color: #fff;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--options-bar-height);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
  background: linear-gradient(to bottom, #ffffff, #f0f4ff);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Ensure canvas doesn't overflow */
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  /* Subtle blend */
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  color: #000000;
}

.hero-logo {
  height: 1.2em;
  width: auto;
  vertical-align: bottom;
  margin-right: 0.2em;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  /* Modernized radius */
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: white;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background-color: #f8faff;
}

/* Features Grid */
.features-section {
  padding: 4rem 0;
  background-color: #fff;
}

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

.feature-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  /* Modernized radius */
  padding: 2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: #e8f0fe;
  color: var(--accent-color);
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  border-radius: 12px;
  /* Modernized radius */
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  overflow-wrap: break-word;
}

.feature-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.feature-link {
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-link::after {
  content: "→";
  transition: transform 0.2s;
}

.feature-card:hover .feature-link::after {
  transform: translateX(4px);
}

/* About Section */
.about-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.about-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  text-align: center;
  background: #fff;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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