/* Modern Reset & Base Design Variables */
:root {
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-lg: 20px;
  --radius-md: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 95px;
}

/* Fixed Top Navigation Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  display: flex;
  justify-content: center;
}

.top-bar-inner {
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-inner a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.top-bar-logo {
  height: 36px;
  width: auto;
  transition: transform 0.2s ease;
}

.top-bar-inner a:hover .top-bar-logo {
  transform: scale(1.08);
}

/* Inline Cookie Popup Box (Above Container) */
.cookie-popup {
  position: relative; /* <-- Make sure this is relative (NOT fixed) */
  width: 90%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 auto 20px auto; /* Centers it and adds space before #container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

.cookie-popup.hidden {
  display: none !important;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cookie-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Main Container */
#container {
  width: 90%;
  max-width: 900px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin: 0 auto 40px auto;
}

/* Content Typography */
.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Pillars Feature Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0) 0%, rgba(226, 232, 240, 1) 50%, rgba(226, 232, 240, 0) 100%);
  margin: 32px 0;
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* Grid Layout for Apps & Tools */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 16px 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-icon-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.app-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.app-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  line-height: 1.2;
}

.app-card:hover .app-label {
  color: var(--accent-color);
}

/* Footer Styles */
.site-footer {
  width: 100%;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-inner a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--accent-color);
}

/* Responsive Design Adjustments */
@media (max-width: 640px) {
  body {
    padding-top: 85px;
  }
  .top-bar-inner a {
    font-size: 1.35rem;
  }
  .top-bar-logo {
    height: 36px;
  }
  .cookie-popup {
    width: 95%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
  }
  .cookie-btn {
    width: 100%;
    padding: 10px;
  }
  #container {
    padding: 24px 18px;
    width: 95%;
    margin-bottom: 30px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
  }
  .app-card {
    padding: 12px 6px;
  }
  .app-icon-wrapper {
    width: 42px;
    height: 42px;
  }
  .app-label {
    font-size: 0.78rem;
  }
  .footer-inner {
    gap: 16px;
  }
}