:root {
  /* Core Colors */
  --primary: #0077BE;
  --secondary: #E2725B;
  --background: #ffffff;
  --text-main: #171717;
  --text-muted: #4a4a4a;
  
  /* UI Accents */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --card-shadow: 0 8px 32px 0 rgba(0, 119, 190, 0.08);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Spacing */
  --gap: 1.5rem;
  --radius: 20px;
}

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

body {
  background-color: var(--background);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
}

/* Typography */
h1, h2, h3, .brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; color: var(--primary); }
h2 { font-size: 2.25rem; color: var(--text-main); }

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

/* Bento Grid Layout */
.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--gap);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 119, 190, 0.15);
}

/* Bento Spans */
.large { grid-column: span 2; grid-row: span 2; }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #005f99;
  box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #d15d48;
  box-shadow: 0 4px 15px rgba(226, 114, 91, 0.3);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--secondary);
}

/* Glassmorphism Navigation */
.nav-glass {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  margin: 1rem auto;
  max-width: 90%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--card-shadow);
}

/* Accents */
.accent-border {
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(0, 119, 190, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Responsive Scaling */
@media (max-width: 992px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .bento-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .large, .wide, .tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .nav-glass {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 20px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}