:root {
  --color-primary: #0057b7;
  --color-secondary: #0a2a43;
  --color-accent: #00c4b3;
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #1f2a37;
  --color-muted: #5d6b7d;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --border-radius: 12px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  white-space: nowrap;
}

.tagline {
  font-size: 0.9rem;
  color: var(--color-muted);
}

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

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  color: var(--color-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 3.5rem;
  background: radial-gradient(circle at top right, rgba(0, 87, 183, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.95));
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 196, 179, 0.12);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 3.2vw + 1rem, 3.5rem);
  line-height: 1.15;
  margin: 1.5rem 0 1rem;
  color: var(--color-secondary);
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.button,
.contact-form button,
.subscribe-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus,
.contact-form button:hover,
.contact-form button:focus,
.subscribe-form button:hover,
.subscribe-form button:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  background: transparent;
}

.hero-visual::after {
  content: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  visibility: hidden;
}

.hero-slider .slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  visibility: visible;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Carousel slide animations --- */
.hero-slider .slide {
  will-change: transform, opacity;
}

.hero-slider .slide.slide-in-right {
  animation: slideInRight 0.6s ease both;
}

.hero-slider .slide.slide-out-left {
  animation: slideOutLeft 0.6s ease both;
}

.hero-slider .slide.slide-in-left {
  animation: slideInLeft 0.6s ease both;
}

.hero-slider .slide.slide-out-right {
  animation: slideOutRight 0.6s ease both;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

.slider-controls {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  pointer-events: none;
  z-index: 3;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}

.slider-arrow::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.slider-arrow.prev::before {
  transform: rotate(225deg);
}

.slider-arrow:hover,
.slider-arrow:focus {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.slider-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  z-index: 3;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.slider-dots .dot.is-active,
.slider-dots .dot:focus {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1.75rem;
}

.section-alt {
  background-color: var(--color-surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.grid article,
.timeline article,
.callout,
.contact-form,
.subscribe-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
}

.grid article:hover,
.timeline article:hover,
.callout:hover,
.contact-form:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.6);
}

.grid article::before:hover,
.timeline article::before:hover {
  opacity: 1;
  transform: scaleX(1);
}

.grid article:hover::after {
  opacity: 0.8;
  transform: scale(1.1);
}

.grid article h3,
.timeline article h3 {
  margin-top: 0;
  color: var(--color-secondary);
  font-size: 1.15rem;
  position: relative;
}

.grid article h3::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  transition: all 0.3s ease;
}

.grid article:hover h3::before {
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.grid article p,
.timeline article p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.callout ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--color-muted);
}

.callout {
  margin-top: 2rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea,
.subscribe-form input {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.subscribe-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.18);
}

.site-footer {
  background-color: var(--color-secondary);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .main-nav ul {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .main-nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 4.5rem;
  }

  .site-header .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-visual {
    min-height: 260px;
  }

  .slider-controls {
    padding: 0 0.75rem;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }

  .slider-dots {
    bottom: 0.75rem;
    gap: 0.5rem;
  }

  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }
}
