/* Space Grotesk Webfont Definitions */
@font-face {
  font-family: 'Space Grotesk';
  src: url('./font/spacegrotesk-light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./font/spacegrotesk-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./font/spacegrotesk-medium-webfont.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./font/spacegrotesk-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: #FFFFFF;
  color: #111111;
  letter-spacing: -0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings keep Courier New */
h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, .font-courier, .font-heading {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.02em;
}

/* Body and UI elements use Space Grotesk by default */
body, p, li, span, button, a, input, textarea, select {
  font-family: var(--font-body);
}

/* Paragraphs & lists standard readability weight */
p, li {
  font-weight: 400;
  color: #222222;
}

/* Specific monospace utility override if needed */
.font-mono {
  font-family: var(--font-heading) !important;
}

/* Subtle Japanese Grid Pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Subtle Dot Pattern */
.bg-dot-pattern {
  background-image: radial-gradient(rgba(0, 70, 222, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #0046de;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0036ad;
}

/* Custom Border styling */
.border-japan {
  border-color: #e5e7eb;
}

/* Japanese Hanko Stamp effect */
.hanko-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dc2626;
  color: #dc2626;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Pulse animation for CTA */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 70, 222, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 70, 222, 0);
  }
}

.cta-pulse {
  animation: subtle-pulse 2.5s infinite;
}

/* Custom Card Hover */
.card-hover-effect {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-effect:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 70, 222, 0.15);
}

/* Ensure Primary Blue Color (#0046DE) overrides DaisyUI defaults */
.badge-primary, .btn-primary, .bg-primary {
  background-color: #0046DE !important;
  border-color: #0046DE !important;
  color: #FFFFFF !important;
}

.text-primary {
  color: #0046DE !important;
}

/* Fluid Responsive Keywords Matrix for Hero - Fits 100% on All Mobile Screens */
.hero-keywords-matrix {
  font-size: clamp(9.6px, 2.5vw, 15px);
  letter-spacing: -0.015em;
}

@media (min-width: 640px) {
  .hero-keywords-matrix {
    font-size: clamp(13px, 1.4vw, 17px);
    letter-spacing: 0.01em;
  }
}

/* Responsive iframe and images */
img {
  image-rendering: -webkit-optimize-contrast;
}
