@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* Tokens */
:root {
  --red:          #FF0000;
  --tiger-flame:  #F1592A;
  --soft-apricot: #F9DBBD;
  --space-indigo: #2C2C54;
  --black:        #000000;

  --btn-grad:  linear-gradient(135deg, #F1592A 0%, #FF0000 100%);
  --text:      #1a1a1a;
  --muted:     #8e8278;

  --nav-h:   60px;
  --nav-top: 14px;
}

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #F9DBBD 0%, #FFFFFF 100%);
  padding-top: calc(var(--nav-h) + var(--nav-top) + 12px);
  position: relative;
  isolation: isolate;
}

/* Dotted grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(44, 44, 84, 0.10) 2px, transparent 2px);
  background-size: 24px 24px;
  background-position: center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.12));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.12));
}

/* Navbar */
nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1200px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(172,172,172,0.34), rgba(255,255,255,0.14));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(110,110,110,0.32);
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  box-shadow:
    0 12px 36px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(90,90,90,0.22),
    inset 0 0 0 1px rgba(120,120,120,0.18),
    0 0 0 1px rgba(140,140,140,0.08);
}

/* top reflection */
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.30), rgba(255,255,255,0.06) 42%, transparent 100%);
  pointer-events: none;
  border-radius: 999px;
}

/* inner shading */
nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 10px 18px rgba(255,255,255,0.04), inset 0 -10px 18px rgba(0,0,0,0.04);
  pointer-events: none;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  max-width: 150px;
  object-fit: contain;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  position: relative;
  z-index: 2;
}

.nav-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: rgba(26,26,26,0.82);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
@media (max-width: 600px) {
  nav {
    border-radius: 24px;     
    padding: 0 20px;
    height: 52px;
  }

  :root { --nav-h: 52px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(110,110,110,0.20);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);

    /* collapse animation */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1rem;
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-red {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(241, 89, 42, 0.42);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(241, 89, 42, 0.55);
  filter: brightness(1.06);
}

.btn-sm {
  height: 44px;
  padding: 0 28px;
  font-size: 1.125rem;
  font-weight: 500;
}

/* footer */
footer {
  border-top: 1px solid rgba(0,0,0,0.10);
  padding: 16px 28px;
  margin-top: auto;
}
 
.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
 
.footer-logo {
  height: 24px;
  width: auto;
  display: block;
  max-width: 100px;
  object-fit: contain;
}
 
.footer-copy {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}