:root {
  /* Color Palette */
  --color-primary: rgb(22, 47, 58);
  --color-bg: rgb(252, 244, 239);
  --color-accent: rgb(147, 73, 250);
  --color-gradient-start: rgb(30, 152, 253);
  --color-gradient-end: rgb(255, 0, 247);

  /* Design Tokens */
  --border-radius: 24px;
  --border-weight: 3px;
  --font-main: "Montserrat", sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.5;
  overflow-x: hidden;
  /* Noise Texture Effect */
  background-image: 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)' opacity='0.05'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Overrides for 'Blitz' feel */
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  /* Tighter tracking for bold feel */
}

/* Utility Classes */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-sm);
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--color-gradient-start),
    var(--color-gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  border-radius: 50px;
  border: var(--border-weight) solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0px var(--color-primary);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-primary);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--color-primary);
}

.btn-outline {
  background: transparent;
  border: var(--border-weight) solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  box-shadow: 4px 4px 0px var(--color-primary);
  transform: translate(-2px, -2px);
  background: white;
}

.btn-outline:active {
  transform: translate(0px, 0px);
  box-shadow: 0px 0px 0px var(--color-primary);
}

/* Glow Effect for Individual Objects */
.hover-glow {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.hover-glow::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -20px;
  right: -20px;
  bottom: -15px;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--color-gradient-start),
    var(--color-gradient-end),
    var(--color-gradient-start)
  );
  background-size: 200% auto;
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 100px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

@keyframes glowPan {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

@media (min-width: 1024px) {
  .hover-glow:hover::before {
    opacity: 0.45;
    animation: glowPan 4s linear infinite;
  }
}

/* Neo-Brutalism Bounding Box Styles */
.card {
  background: var(--color-bg);
  border: var(--border-weight) solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

/* Reusable brutalist hover for specific cards & mockups */
.brutalist-hover {
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

.brutalist-hover:hover {
  transform: translate(-4px, -4px) !important;
  box-shadow: 12px 12px 0px var(--color-primary) !important;
}

/* Decorative Elements */
.decoration-arrow {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 10;
  pointer-events: none;
}

.decoration-wave {
  position: absolute;
  z-index: 5;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Layout Grid */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
}

/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
  }
}

.hero-card {
  min-height: 80vh;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
  overflow: visible;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile: up to 767px */
@media (max-width: 767px) {
  /* Nav */
  nav.container {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 1rem !important;
  }

  nav .nav-links {
    display: none !important;
  }

  nav .btn {
    padding: 10px 20px !important;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 2rem 1rem !important;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-card h1 {
    font-size: clamp(3rem, 12vw, 4.5rem) !important;
    letter-spacing: -2px !important;
    margin-bottom: 1.5rem;
  }

  .hero-card p {
    font-size: 1.1rem !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-image-wrapper {
    max-width: 100% !important;
    width: 100%;
    box-shadow: 5px 5px 0px var(--color-primary);
  }

  .hero-card .btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  /* All grid items → full width on mobile to prevent 12-col overflow */
  .grid-layout > * {
    grid-column: span 1 !important;
  }

  /* Quote section */
  section[style*="color: white"] {
    flex-direction: column !important;
    text-align: center;
    gap: 1.5rem;
  }

  section[style*="color: white"] > div:first-child {
    padding-right: 0 !important;
  }

  section[style*="color: white"] h3 {
    font-size: 1.3rem !important;
  }

  /* App section */
  section[style*="linear-gradient(135deg"] {
    flex-direction: column !important;
    text-align: center;
  }

  section[style*="linear-gradient(135deg"] > div:last-child {
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  section[style*="linear-gradient(135deg"] > div:last-child > div {
    width: 180px !important;
    height: 300px !important;
  }

  /* Footer */
  footer > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem;
  }

  footer > div > div:last-child {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-card {
    flex-direction: column !important;
    padding: 3rem !important;
    text-align: center;
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card h1 {
    font-size: clamp(3.5rem, 8vw, 6rem) !important;
  }

  .hero-image-wrapper {
    max-width: 80% !important;
    margin: 0 auto;
  }

  .grid-layout > * {
    grid-column: span 1 !important;
  }

  section[style*="color: white"] h3 {
    font-size: 1.5rem !important;
  }
}

/* Marquee Claims Section */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-content span {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3rem;
  color: var(--color-primary);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Dialog Backdrop styling */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
