/* 
  CONFIGURATION
  brandName = "GlassNord"
  accentColor = #3B5B76 (Nordic blue)
  partnerName = "Assemble-IT"
*/

:root {
  /* Brand Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f8;
  --text-primary: #1a1df2;
  /* Just a placeholder for dark text, let's use a nice dark grey */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-on-dark: #ffffff;
  --accent-blue: #3B5B76;
  --accent-light: #e0e7ff;

  /* Glassmorphism Enhancements for Smart Glass feel */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 12px 48px rgba(30, 41, 59, 0.08);
  /* Softer, wider, slightly deep shadow */
  --glass-blur: blur(24px);
  /* Stronger frosted effect */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 120px 5%;
  --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img,
video {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section 0: Sticky Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--glass-shadow);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 96px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.lang-sep {
  opacity: 0.5;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Section 1: Hero */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-on-dark);
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-partnership {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  opacity: 0.8;
}

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

/* Section 1.5: Smart Privacy Demo */
.smart-privacy-demo {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.demo-toggle-wrapper {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.demo-image-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-panels-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.glass-panels-overlay.is-active {
  opacity: 1;
}

.glass-panel-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Section 2: The Opportunity */
.opportunity {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.carousel-wrapper {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 300px;
  height: 400px;
  scroll-snap-align: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Section 3: Smart Comparison Slider */
.smart-comparison {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.comparison-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  cursor: ew-resize;
  /* Indicate horizontal dragging */
  /* Define CSS variable for the percentage of the split. 50% default. */
  --exposure: 50%;
}

/* We want the container to size itself based on the image inside */
.comparison-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* prevent dragging the image */
  user-select: none;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* The Before layer acts as the base, so it can be relative to set height */
.comparison-before {
  position: relative;
  z-index: 1;
}

/* The After layer is positioned absolutely on top and clipped */
.comparison-after {
  z-index: 2;
  /* clip-path masks the image to only show the right side, starting from --exposure */
  clip-path: polygon(var(--exposure) 0, 100% 0, 100% 100%, var(--exposure) 100%);
  -webkit-clip-path: polygon(var(--exposure) 0, 100% 0, 100% 100%, var(--exposure) 100%);
}

.comparison-label {
  position: absolute;
  top: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 10;
}

.label-before {
  left: 1.5rem;
}

.label-after {
  right: 1.5rem;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--exposure);
  width: 0;
  /* The handle is centered on the exposure line */
  z-index: 20;
  pointer-events: none;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: white;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-secondary);
}

.handle-button svg {
  width: 16px;
  height: 16px;
}

/* Section 4: How It Works */
.how-it-works {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.diagram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 4rem auto;
}

.diagram-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

@media (max-width: 768px) {
  .diagram-nodes {
    flex-direction: column;
  }
}

.node {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  flex: 1;
  position: relative;
}

.node-arrow {
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  margin-top: 8px;
}

/* Section 5: Scroll Transformation */
.scroll-transformation {
  height: 300vh;
  /* space for scrolling */
  position: relative;
  background: var(--bg-primary);
}

.sticky-glass-container {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1572025442646-866d16c84a54?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.scroll-glass-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2;
  transition: all 0.5s ease-out;
}

.scroll-label {
  position: relative;
  z-index: 3;
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
}

.scroll-label.active {
  opacity: 1;
}

/* Section 6: Use Cases */
.use-cases {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.use-case-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.use-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(30, 41, 59, 0.12);
}

.use-case-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.use-case-content {
  padding: 1.5rem;
}

.use-case-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Section 7: Before/After Comparison */
.comparison {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.comparison-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  align-items: center;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-secondary);
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider-round {
  background-color: var(--accent-blue);
}

input:checked+.slider-round:before {
  transform: translateX(26px);
}

.comparison-frames {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .comparison-frames {
    flex-direction: column;
  }
}

.frame {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.frame-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10;
}

.smart-glass-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
  object-fit: cover;
}

.smart-glass-layer.is-active {
  opacity: 1;
}

.benefit-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.chip {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Section 8: Partnership */
.partnership {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.columns {
  display: flex;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
    gap: 2rem;
  }
}

.col {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 3.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.col:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(30, 41, 59, 0.12);
}

.col:hover::before {
  opacity: 1;
}

.col h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partnership-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.partnership-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.partnership-list li:hover {
  color: var(--text-primary);
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-blue);
  margin-top: 2px;
}

.partner-logo-small {
  height: 24px;
  opacity: 0.8;
}

/* Section 9: Process */
.process {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.timeline {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 4rem auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bg-secondary);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  padding: 0 1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline::before {
    display: none;
  }
}

/* Section 10: CTA / Form */
.cta-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 3.5rem;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #fafafa;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #fff;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

.trust-line {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* Section 11: Footer */
.footer {
  background: #111827;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 144px;
  width: auto;
}

.footer-details {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-partnership {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

/* Base Responsive Styles for Mobile */
@media (max-width: 768px) {

  /* Header Fixes */
  .nav-links,
  .header-cta {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  /* Hero Fixes */
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-partnership {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-top: 2rem;
  }
}