/* --- Color Palette & Base --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #6366f1;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e5e7eb;
  --shadow: 0 4px 24px 0 rgba(37, 99, 235, 0.08);
}

/* Base styles */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Default link styling */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Global container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
nav {
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  height: 4rem;
}

.nav-left {
  display: flex;
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 2rem;
  width: auto;
  margin-right: 0.5rem;
}

.site-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: none;
  margin-left: 1.5rem;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
}

.nav-item:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
  border-radius: 4px 4px 0 0;
}

.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 4px 4px 0 0;
}

.nav-right {
  display: none;
  align-items: center;
  margin-left: 1.5rem;
}

@media (min-width: 640px) {
  .nav-right {
    display: flex;
  }
}

.request-access-btn {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
}

.request-access-btn:hover {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

/* Hero Section */
.hero {
  padding: 6rem 1rem 4rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--background) 100%);
}

.hero-logo {
  max-width: 140px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3.2rem; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 4rem; }
}

.hero-text {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.search-console-info {
  background-color: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 40rem;
  color: #1e40af;
  font-size: 0.875rem;
  text-align: center;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #111827;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Features Section */
.features {
  background: none;
  padding: 3rem 0 2rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.14);
  transform: translateY(-4px) scale(1.03);
}

.feature-icon {
  margin-bottom: 1.2rem;
}

.feature-icon .iconify {
  color: var(--primary);
  background: #f0f4ff;
  border-radius: 1rem;
  padding: 0.7rem;
  font-size: 3.5rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #4b5563;
}

/* Search Console Integration Section */
.search-integration {
  padding: 5rem 1rem;
  background-color: white;
}

.search-integration h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  color: #111827;
  margin-bottom: 1rem;
}

.integration-description {
  text-align: center;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.integration-description a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.approval-note {
  text-align: center;
  color: #1e40af;
  background-color: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto 3rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.integration-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .integration-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #2563eb;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

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

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: #4b5563;
  line-height: 1.6;
}

.screenshot-container {
  max-width: 60rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.integration-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.screenshot-caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.integration-notes {
  background-color: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  color: #1e40af;
  font-size: 0.875rem;
  text-align: center;
}

/* Demo Analytics Section */
.demo-analytics {
  padding: 5rem 1rem;
  background-color: #f9fafb;
}

.demo-analytics h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  color: #111827;
  margin-bottom: 1rem;
}

.demo-description {
  text-align: center;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.demo-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 32rem;
}

.demo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #2563eb;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.demo-link:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.demo-note {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

.demo-note a {
  color: #4F46E5;
  text-decoration: underline;
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 1rem;
}

.portfolio h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  color: #111827;
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.site-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.site-link:hover {
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.75rem;
  width: 36px;
  height: 36px;
  background-color: #EBF5FF;
  border-radius: 50%;
  color: #2563eb;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #2563eb;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem 0;
  color: var(--text-muted);
  box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.04);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.copyright {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.copyright p {
  color: #4b5563;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--primary);
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Usage Restrictions Section */
.usage-restrictions {
  background-color: #f8fafc;
  padding: 3rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.usage-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 1rem;
}

.restriction-note {
  text-align: center;
  color: #ef4444;
  font-weight: 500;
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 0.75rem 1rem;
  background-color: #fff1f2;
  border: 1px solid #fee2e2;
  border-radius: 0.5rem;
}

.deployment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .deployment-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.option h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.option p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}

.option a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.option a:hover {
  color: #1d4ed8;
}

body:not(.home) .hero-logo {
  margin-top: 3rem;
}

@media (max-width: 639px) {
  .nav-links,
  .nav-right {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 1rem;
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(248,250,252,0.98);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5rem;
    gap: 2rem;
    box-shadow: 0 4px 24px rgba(37,99,235,0.08);
  }
  .mobile-menu.open {
    display: flex;
  }
  .mobile-menu .nav-item {
    font-size: 1.3rem;
    color: var(--primary);
    border: none;
    padding: 1rem 0;
    background: none;
    width: 100vw;
    text-align: center;
  }
  .mobile-menu .request-access-btn {
    font-size: 1.1rem;
    width: 80vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
} 