:root {
  /* Izertis Brand Colors - Updated to match Izertis design */
  --primary-color: #00B4D8;
  --secondary-color: #011C4A;
  --accent-color: #0096C7;
  --accent-blue: #0077B6;
  --text-color: #222222;
  --text-light: #6b6c7e;
  --bg-light: #F7FBFF;
  --bg-gray: #f1f2f5;
  --white: #FFFFFF;

  /* Typography */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing system */
  --spacer-1: 0.25rem;
  --spacer-2: 0.5rem;
  --spacer-3: 1rem;
  --spacer-4: 1.5rem;
  --spacer-5: 3rem;
  --spacer-6: 4.5rem;
  --spacer-7: 6rem;
  --spacer-8: 7.5rem;

  /* Container */
  --container-max: 1248px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacer-5);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(1, 28, 74, 0.08);
  padding: var(--spacer-3) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  color: var(--secondary-color);
  letter-spacing: 0px;
}

nav {
  display: flex;
  gap: var(--spacer-5);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0096C7;
  border-color: #0096C7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 50%, var(--primary-color) 100%);
  color: var(--white);
  padding: var(--spacer-8) 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  line-height: 1.2;
  margin-bottom: var(--spacer-4);
  max-width: 900px;
  font-weight: 700;
}

.hero p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  max-width: 700px;
  opacity: 0.95;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  opacity: 0.9;
  display: block;
  margin-bottom: var(--spacer-3);
  font-weight: 700;
  color: #90E0EF;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
}

.highlight {
  color: #90E0EF;
  position: relative;
  display: inline-block;
}

/* Sections */
.section {
  padding: var(--spacer-8) 0;
  position: relative;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-intro {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: var(--spacer-6);
}

h2 {
  font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
  color: var(--secondary-color);
  margin-bottom: var(--spacer-5);
  position: relative;
  padding-bottom: var(--spacer-3);
  font-weight: 700;
  line-height: 1.2;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-blue) 100%);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--spacer-3);
}

.text-block {
  max-width: 900px;
}

.text-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: var(--spacer-4);
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: rgba(247, 251, 255, 0.5);
}

.pdf-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.pdf-link svg {
  transition: stroke 0.3s ease;
}

.pdf-link:hover svg {
  stroke: var(--white);
}

/* Grid System */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacer-5);
  margin-top: var(--spacer-6);
}

/* Cards */
.card {
  background: var(--white);
  padding: var(--spacer-5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(1, 28, 74, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bg-light) 0%, transparent 100%);
  border-radius: 0 0 0 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
  border-left-color: var(--accent-blue);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacer-3);
  display: block;
  filter: grayscale(0.2);
}

.card h3 {
  margin-bottom: var(--spacer-3);
  color: var(--secondary-color);
}

.card ul {
  list-style-type: none;
  padding-left: 0;
}

.card li {
  margin-bottom: var(--spacer-2);
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card li::before {
  content: '▸';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacer-6);
  align-items: center;
}

.content-grid p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Funding Section */
.funding-section {
  background-color: var(--bg-gray);
}

.funding-section h2::after {
  left: 0;
  transform: none;
}

.funding-logos {
  display: flex;
  justify-content: center;
  margin-top: var(--spacer-6);
  width: 100%;
}

.funding-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background-color: var(--white);
  padding: var(--spacer-4);
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: var(--spacer-6) 0;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-blue) 50%, var(--primary-color) 100%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Decorative Elements */
.pixels-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 83, 97, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    padding: 0 var(--spacer-4);
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacer-4);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacer-3);
    text-align: center;
  }

  nav {
    flex-direction: column;
    gap: var(--spacer-2);
    width: 100%;
  }

  nav a {
    display: block;
    padding: var(--spacer-2) 0;
  }

  .hero {
    padding: var(--spacer-6) 0;
  }

  .section {
    padding: var(--spacer-6) 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacer-4);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacer-3);
  }
}

@media (max-width: 480px) {
  .funding-logos {
    justify-content: center;
  }

  .logo-box {
    width: 140px;
    height: 80px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 83, 97, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(1, 28, 74, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}