/* Base styles */
:root {
  color-scheme: light;
  font-family: 'Arial', 'Trebuchet MS', cursive, system-ui;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f5f9fc;
  --surface: #ffffff;
  --surface-strong: #e8f1f8;
  --text-muted: #555555;
  --primary: #0066CC; /* CartoonCampus Blue */
  --primary-soft: #e6f0ff;
  --border: #d1e0f0;
  --accent: #00bfff; /* Sky Blue accent */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f5f9fc 0%, #e8f0ff 50%, #f5f9fc 100%);
  background-attachment: fixed;
}

img,
svg {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 102, 204, 0.1);
  border: 1px solid var(--border);
  z-index: 1;
  border-radius: 8px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-muted);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
}

.dropdown-content a:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 0.18rem;
  background: var(--primary);
  border-radius: 999px;
}

.hero {
  padding: clamp(5rem, 8vw, 8rem) 0 4rem;
}

.hero-content {
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--primary);
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.section {
  padding: 4rem 0;
}

.features h2,
.universes h2,
.about h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.universe-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card,
.universe-card,
.product-card,
.about-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.2);
}

.universe-card {
  text-align: center;
}

.universe-card img,
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.feature-card h3,
.universe-card h3,
.product-card h3,
.about-card h3 {
  margin-top: 0;
}

.feature-card p,
.universe-card p,
.product-card p,
.about-card p,
.contact-card p {
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.about-card li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.about-card li strong {
  color: var(--primary);
}

.contact-card {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.site-footer {
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 3px solid var(--primary);
}

.footer-inner {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 240px;
  }

  .site-nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .about-grid {
    display: block;
  }
}
