@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --sugar-bg-main: #eef2f5;
  --sugar-surface-card: #eef2f5;
  --sugar-tone-accent: #00a896;
  --sugar-tone-hover: #028090;
  --sugar-tone-contrast: #e63946;
  --sugar-tone-light-bg: #f8fafc;
  --sugar-ink-primary: #1e293b;
  --sugar-ink-secondary: #64748b;
  --sugar-shadow-raised: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
  --sugar-shadow-inset: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
  --sugar-shadow-float: 12px 12px 24px #c2cbd8, -12px -12px 24px #ffffff;
  --sugar-gradient-accent: linear-gradient(135deg, #00a896 0%, #028090 100%);
  --sugar-gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--sugar-bg-main);
  color: var(--sugar-ink-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scroll-driven Progress Bar */
.glu-scroll-tracker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sugar-tone-accent);
  transform-origin: 0% 50%;
  z-index: 10000;
  animation: glu-grow-bar auto linear;
  animation-timeline: scroll(root);
}

@keyframes glu-grow-bar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Scroll View Animations */
.glu-reveal-view {
  animation: glu-fade-up auto linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes glu-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Component */
.glu-header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--sugar-bg-main);
  box-shadow: 4px 4px 12px #d1d9e6, -4px -4px 12px #ffffff;
  padding: 1.2rem 2rem;
}

.glu-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glu-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--sugar-ink-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.glu-brand-icon {
  width: 38px;
  height: 38px;
  background: var(--sugar-bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sugar-shadow-raised);
  color: var(--sugar-tone-accent);
}

.glu-nav-holder {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.glu-nav-link {
  text-decoration: none;
  color: var(--sugar-ink-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.glu-nav-link:hover, .glu-nav-link.glu-active-state {
  box-shadow: var(--sugar-shadow-inset);
  color: var(--sugar-tone-accent);
}

.glu-nav-cta {
  background: var(--sugar-tone-accent);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  box-shadow: 4px 4px 10px #c2cbd8, -4px -4px 10px #ffffff;
}

.glu-nav-cta:hover {
  background: var(--sugar-tone-hover);
  box-shadow: var(--sugar-shadow-inset) !important;
}

/* Mobile Nav Toggle */
.glu-burger-check {
  display: none;
}

.glu-burger-label {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--sugar-shadow-raised);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.glu-burger-label span {
  width: 20px;
  height: 2px;
  background-color: var(--sugar-ink-primary);
  transition: 0.3s ease;
}

/* Hero Section (Preset G) */
.glu-hero-stage {
  padding: 8dvh 2rem 6dvh;
  max-width: 1200px;
  margin: 0 auto;
}

.glu-hero-split {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.glu-hero-content {
  flex: 0 0 55%;
  position: relative;
}

.glu-hero-visual {
  flex: 0 0 45%;
  position: relative;
}

.glu-hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--sugar-ink-primary);
  margin-bottom: 1.2rem;
}

.glu-hero-subtitle {
  font-size: 1.1rem;
  color: var(--sugar-ink-secondary);
  margin-bottom: 2rem;
  max-width: 90%;
}

.glu-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--sugar-gradient-accent);
  border: none;
  border-radius: 16px;
  box-shadow: var(--sugar-shadow-raised);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glu-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sugar-shadow-float);
}

.glu-badge-float {
  position: absolute;
  bottom: -20px;
  right: 10px;
  background: var(--sugar-surface-card);
  padding: 1rem 1.25rem;
  border-radius: 20px;
  box-shadow: var(--sugar-shadow-float);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glu-badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sugar-tone-accent);
}

.glu-badge-lbl {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sugar-ink-primary);
}

.glu-media-frame {
  width: 100%;
  border-radius: 32px;
  padding: 12px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-raised);
}

.glu-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: cover;
}

/* Problem / Solution Component */
.glu-ps-wrapper {
  padding: 6dvh 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.glu-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.glu-ps-box {
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--sugar-shadow-raised);
}

.glu-ps-box.glu-prob-pane {
  background: #fdf2f2;
}

.glu-ps-box.glu-sol-pane {
  background: #e6f4f1;
}

.glu-ps-head {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glu-prob-pane .glu-ps-head { color: var(--sugar-tone-contrast); }
.glu-sol-pane .glu-ps-head { color: var(--sugar-tone-accent); }

.glu-ps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glu-ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.glu-banner-overlay-box {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--sugar-shadow-raised);
}

.glu-banner-overlay-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glu-banner-text-cover {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #ffffff;
}

.glu-banner-text-cover h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.glu-banner-text-cover p {
  max-width: 700px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* Neumorphic Features Component */
.glu-feat-stage {
  padding: 8dvh 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.glu-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.glu-section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sugar-ink-primary);
}

.glu-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glu-feat-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-inset);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glu-feat-card:hover {
  box-shadow: var(--sugar-shadow-raised);
  transform: translateY(-4px);
}

.glu-feat-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--sugar-tone-accent);
}

.glu-feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--sugar-ink-primary);
}

.glu-feat-card p {
  font-size: 0.925rem;
  color: var(--sugar-ink-secondary);
}

/* Stepper Component */
.glu-step-stage {
  padding: 6dvh 2rem 8dvh;
  max-width: 1200px;
  margin: 0 auto;
}

.glu-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.glu-stepper-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed #cbd5e1;
  z-index: 1;
}

.glu-step-pill-item {
  position: relative;
  z-index: 2;
  background: var(--sugar-bg-main);
  border-radius: 999px;
  padding: 0.8rem 2rem;
  box-shadow: var(--sugar-shadow-raised);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.glu-step-digit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sugar-tone-accent);
}

.glu-step-word {
  font-weight: 700;
  font-size: 0.95rem;
}

.glu-step-desc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glu-step-desc-card {
  padding: 1.5rem;
  background: var(--sugar-bg-main);
  border-radius: 20px;
  box-shadow: var(--sugar-shadow-raised);
  font-size: 0.925rem;
  color: var(--sugar-ink-secondary);
}

/* CTA Strip Component */
.glu-cta-strip-zone {
  padding: 6dvh 2rem;
}

.glu-cta-card-centered {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-float);
  text-align: center;
}

.glu-cta-card-centered h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--sugar-ink-primary);
}

.glu-cta-card-centered p {
  color: var(--sugar-ink-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Stats Component (Expert) */
.glu-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto 4rem;
}

.glu-stat-tile {
  padding: 2rem;
  border-radius: 20px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-raised);
  text-align: center;
}

.glu-stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sugar-tone-accent);
  margin-bottom: 0.5rem;
}

.glu-stat-lbl {
  font-size: 0.9rem;
  color: var(--sugar-ink-secondary);
  font-weight: 600;
}

/* Form Card Component (Reserve) */
.glu-form-wrapper {
  max-width: 620px;
  margin: 3rem auto;
  padding: 3rem 2.5rem;
  border-radius: 28px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-float);
}

.glu-form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.glu-form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sugar-ink-primary);
}

.glu-form-input, .glu-form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: none;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-inset);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--sugar-ink-primary);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.glu-form-input:focus, .glu-form-textarea:focus {
  box-shadow: inset 2px 2px 5px #c2cbd8, inset -2px -2px 5px #ffffff, 0 0 0 2px var(--sugar-tone-accent);
}

.glu-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--sugar-ink-secondary);
}

.glu-checkbox-row input {
  margin-top: 0.2rem;
  accent-color: var(--sugar-tone-accent);
}

.glu-faq-stack {
  max-width: 800px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glu-faq-item {
  padding: 1.75rem 2rem;
  border-radius: 20px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-raised);
}

.glu-faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--sugar-tone-accent);
}

.glu-faq-item p {
  font-size: 0.925rem;
  color: var(--sugar-ink-secondary);
}

/* Educational Info Cards (Reserve) */
.glu-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 3rem auto;
}

.glu-edu-card {
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--sugar-bg-main);
  box-shadow: var(--sugar-shadow-raised);
}

.glu-edu-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--sugar-ink-primary);
}

.glu-edu-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.glu-edu-card li {
  font-size: 0.875rem;
  color: var(--sugar-ink-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glu-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sugar-tone-accent);
}

/* Footer Component */
.glu-footer-shell {
  margin-top: auto;
  background: var(--sugar-bg-main);
  box-shadow: 0 -4px 12px #d1d9e6;
  padding: 3rem 2rem 1.5rem;
}

.glu-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.glu-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2rem;
}

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

.glu-footer-links a {
  text-decoration: none;
  color: var(--sugar-ink-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.glu-footer-links a:hover {
  color: var(--sugar-tone-accent);
}

.glu-disclaimer-box {
  background: var(--sugar-surface-card);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--sugar-shadow-inset);
  font-size: 0.825rem;
  color: var(--sugar-ink-secondary);
  text-align: center;
}

.glu-copyright-text {
  text-align: center;
  font-size: 0.825rem;
  color: var(--sugar-ink-secondary);
}

/* Cookie Banner */
.glu-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--sugar-bg-main);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.8);
}

.glu-cookie-btn-group {
  display: flex;
  gap: 1rem;
}

.glu-cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.glu-cookie-accept {
  background: var(--sugar-tone-accent);
  color: #ffffff;
  box-shadow: var(--sugar-shadow-raised);
}

.glu-cookie-decline {
  background: var(--sugar-bg-main);
  color: var(--sugar-ink-secondary);
  box-shadow: var(--sugar-shadow-raised);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .glu-hero-split {
    flex-direction: column;
  }
  .glu-hero-content, .glu-hero-visual {
    flex: 1 1 100%;
    width: 100%;
  }
  .glu-ps-grid, .glu-feat-grid, .glu-step-desc-grid, .glu-edu-grid {
    grid-template-columns: 1fr;
  }
  .glu-stepper-row {
    flex-direction: column;
    gap: 1rem;
  }
  .glu-stepper-line {
    display: none;
  }
  .glu-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .glu-burger-label {
    display: flex;
  }
  .glu-nav-holder {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sugar-bg-main);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }
  .glu-burger-check:checked ~ .glu-nav-holder {
    display: flex;
  }
  .glu-hero-title {
    font-size: 2rem;
  }
  .glu-cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}