/* ============================================
   Microsoft Surface Landing Page
   Inspired by microsoft.com/da-dk/surface/business
   ============================================ */

:root {
  --ms-blue: #0078d4;
  --ms-blue-dark: #005a9e;
  --ms-blue-light: #50e6ff;
  --surface-dark: #1a1a2e;
  --surface-darker: #0f0f1a;
  --text-primary: #1a1a1a;
  --text-secondary: #605e5c;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --bg-light: #faf9f8;
  --bg-muted: #f3f2f1;
  --gradient-peach: linear-gradient(135deg, #ffb4a2 0%, #ffcdb2 40%, #e8d5c4 100%);
  --gradient-hero: linear-gradient(160deg, #fdf6f0 0%, #ffe8dc 35%, #ffd4c4 70%, #ffc4b0 100%);
  --gradient-ai: linear-gradient(135deg, #0078d4 0%, #005a9e 50%, #003d6b 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --container: 1200px;
  --header-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 22px;
  height: 22px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.nav__cta {
  background: var(--ms-blue) !important;
  color: #fff !important;
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--ms-blue-dark) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--ms-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ms-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn--secondary:hover {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.btn--outline {
  background: transparent;
  color: var(--ms-blue);
  border: 2px solid var(--ms-blue);
  padding: 10px 20px;
  font-size: 14px;
}

.btn--outline:hover {
  background: var(--ms-blue);
  color: #fff;
}

.btn--large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 80px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.hero__image {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---- Intro ---- */
.intro {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.intro__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-primary);
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-light);
}

.section--gradient {
  background: var(--gradient-ai);
  color: var(--text-light);
}

.section--muted {
  background: var(--bg-light);
}

.section__header {
  margin-bottom: 56px;
}

.section__header--center {
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.section--dark .section__desc,
.section--gradient .section__desc {
  color: var(--text-muted);
  margin: 0 auto;
}

.section__header--center .section__desc {
  margin: 0 auto;
}

/* ---- Carousel ---- */
.carousel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.carousel__slide-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel__icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.carousel__slide-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.carousel__slide-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.carousel__slide-visual {
  min-height: 300px;
  background: var(--bg-muted);
  overflow: hidden;
}

.carousel__slide-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__btn:hover {
  border-color: var(--ms-blue);
  color: var(--ms-blue);
  background: rgba(0, 120, 212, 0.06);
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel__dot.is-active {
  background: var(--ms-blue);
  width: 28px;
  border-radius: 5px;
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Feature Cards ---- */
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.security-showcase {
  margin-bottom: 48px;
  text-align: center;
}

.security-showcase__image {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.security-layers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.security-layer {
  padding: 10px 20px;
  background: rgba(0, 120, 212, 0.2);
  border: 1px solid rgba(0, 120, 212, 0.4);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-blue-light);
}

/* ---- AI Cards ---- */
.ai-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.ai-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.15);
}

.ai-card .ai-card__badge,
.ai-card h3,
.ai-card p {
  margin-left: 28px;
  margin-right: 28px;
}

.ai-card .ai-card__badge {
  margin-top: 20px;
}

.ai-card p {
  margin-bottom: 28px;
}

.ai-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.ai-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.ai-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ai-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ai-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-stat {
  text-align: center;
}

.ai-stat__value {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.ai-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Products ---- */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.product-tabs__btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg-muted);
  border: 2px solid transparent;
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.product-tabs__btn:hover {
  color: var(--text-primary);
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.product-tabs__btn.is-active {
  background: var(--ms-blue);
  color: #fff;
  border-color: var(--ms-blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card.is-hidden {
  display: none;
}

.product-card__image-wrap {
  background: linear-gradient(160deg, #fdf6f0 0%, #ffe8dc 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-card__image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.product-card__body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card--featured {
  border-color: var(--ms-blue);
  background: linear-gradient(180deg, rgba(0, 120, 212, 0.04) 0%, #fff 40%);
}

.product-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--ms-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card__subtitle {
  font-size: 14px;
  color: var(--ms-blue);
  font-weight: 600;
  margin-bottom: 16px;
}

.product-card__specs {
  margin-bottom: 20px;
  flex: 1;
}

.product-card__specs li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.product-card__specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ms-blue);
  font-weight: 700;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
}

.highlight strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.highlight p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: """;
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 64px;
  color: var(--ms-blue);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial footer strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.testimonial footer span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Management Cards ---- */
.mgmt-card {
  text-align: center;
  padding: 40px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.mgmt-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mgmt-card__icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.mgmt-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.mgmt-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- FAQ ---- */
.faq__item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ms-blue);
  font-weight: 400;
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  background: var(--bg-light);
}

.faq__item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
  background: var(--gradient-peach);
  text-align: center;
}

.cta__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.cta__content p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta__content p a {
  color: var(--ms-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta__content p a:hover {
  color: var(--ms-blue-dark);
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--surface-darker);
  color: var(--text-muted);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand p {
  font-size: 14px;
}

.footer__legal {
  font-size: 12px;
  line-height: 1.6;
  max-width: 700px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: 100px 24px 40px;
    text-align: center;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    padding: 20px 24px 60px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel__slide {
    grid-template-columns: 1fr;
  }

  .carousel__slide-visual {
    min-height: 200px;
  }

  .carousel__slide-content {
    padding: 32px;
  }

  .ai-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    width: 100%;
    padding: 14px 16px;
  }

  .grid--2x2,
  .grid--3,
  .product-grid,
  .testimonials,
  .highlights {
    grid-template-columns: 1fr;
  }

  .product-tabs {
    gap: 6px;
  }

  .product-tabs__btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .ai-stats {
    flex-direction: column;
    gap: 24px;
  }

  .security-layers {
    gap: 8px;
  }

  .security-layer {
    font-size: 12px;
    padding: 8px 14px;
  }
}
