/* -----------------------------------------------------------------
   NEO-BRUTALIST THEME (High Contrast LPO)
   Concept: Hard Shadows, Thick Borders, Mobile-First Readability
   ----------------------------------------------------------------- */

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Color System */
  --neo-bg: #ffffff;
  --neo-text: #111827; /* Gray 900 */
  --neo-accent: #2563eb; /* Blue 600 */
  --neo-border: #000000;

  /* Identity Variables */
  --shadow-hard: 4px 4px 0 #000000;
  --shadow-hard-hover: 2px 2px 0 #000000; /* Press effect */
  --border-hard: 2px solid #000000;
  --radius-neo: 12px;

  /* Layout */
  --header-height: 64px;
  --container-max: 1080px;
}

/* -----------------------------------------------------------------
   GLOBAL RESET & TYPOGRAPHY
   ----------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--neo-bg);
  color: var(--neo-text);
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-weight: 700; /* Global Bold for Neo-Brutalist Visibility */
}

p,
span,
li,
a {
  font-weight: 700;
}

.text-xs,
.text-sm {
  font-weight: 700 !important;
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
  font-weight: 800;
  color: #000;
  line-height: 1.3;
}

h1,
.h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
h2,
.h2 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}
h3,
.h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------
   NEO-BRUTALIST UTILITIES
   ----------------------------------------------------------------- */

/* Standard Container */
.neo-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Card Style: White bg, Black border, Hard shadow */
.neo-card {
  background: #ffffff;
  border: var(--border-hard);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-neo);
  padding: 1.5rem;
  transition: all 0.15s ease;
}

.neo-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #000000;
}

/* Button Style: Black bg, White text, Hard shadow */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 999px; /* Pill shape */
  border: 2px solid #000000;
  box-shadow: var(--shadow-hard);
  transition: all 0.1s ease;
  cursor: pointer;
  text-decoration: none;
}

.neo-btn:hover {
  background: #2563eb; /* Accent on hover */
  color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
  border-color: #000000;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}

/* Secondary Button (White) */
.neo-btn-secondary {
  @apply neo-btn;
  background: #ffffff;
  color: #000000;
}
.neo-btn-secondary:hover {
  background: #f3f4f6;
  color: #000000;
}

/* Badge / Chip */
.neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: var(--border-hard);
  box-shadow: 2px 2px 0 #000;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* -----------------------------------------------------------------
   SECTION SPECIFIC OVERRIDES
   ----------------------------------------------------------------- */
.neo-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
  background-color: #ffffff; /* Pattern allowed here later */
}

.neo-metric-value {
  font-family: "Impact", sans-serif; /* Strong condensed font for numbers */
  font-size: 2.5rem;
  line-height: 1;
}

/* Legacy Support (hiding old decorations) */
.hero-legend::before,
.hero-legend::after,
.empathy-section::before,
.empathy-section::after {
  display: none !important;
}

/* Input Fields */
input,
textarea,
select {
  border: var(--border-hard) !important;
  padding: 0.75rem !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  box-shadow: 2px 2px 0 #000 !important;
}
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000 !important;
}

/* -----------------------------------------------------------------
   COMPONENT: PROJECT GRID (Brutalist Redesign)
   ----------------------------------------------------------------- */
.new-project-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem 1rem;
  padding: 1.5rem;
}
@media (max-width: 640px) {
  .new-project-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .new-project-item-head {
    width: fit-content;
    margin-top: 0.75rem;
  }
}

.new-project-item-head {
  background: #f3f4f6; /* Gray 100 */
  color: #000;
  border: 2px solid #000;
  padding: 0.25rem 0.75rem;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 2px 2px 0 #000;
  display: inline-flex;
  align-items: center;
}

.new-project-item-body {
  font-size: 1rem;
  color: #000;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* -----------------------------------------------------------------
   COMPONENT: FAQ (Brutalist Redesign)
   ----------------------------------------------------------------- */
details.neo-card {
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
}
details.neo-card summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.neo-card summary::-webkit-details-marker {
  display: none;
}
details.neo-card[open] .neo-answer {
  border-top: 2px solid #000;
  padding: 1.5rem;
  background: #f9fafb; /* Gray 50 */
}

/* -----------------------------------------------------------------
   COMPONENT: Comparison Card (Proof Section)
   ----------------------------------------------------------------- */
.neo-comparison-grid {
  display: grid;
  gap: 1.5rem;
}

.neo-comparison-card {
  background: #fff;
  border: var(--border-hard);
  box-shadow: var(--shadow-hard);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.neo-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.neo-comparison-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.neo-before {
  background: #f3f4f6; /* Gray 100 */
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4b5563; /* Gray 600 */
  border: 1px solid #e5e7eb;
}

.neo-arrow {
  font-size: 1.5rem;
  color: #000;
  font-weight: 900;
}

.neo-after {
  background: #fef9c3; /* Yellow 100 */
  padding: 1rem;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-weight: 900;
  font-size: 1.125rem;
  text-align: center;
  color: #000;
  transform: rotate(-1deg);
}

@media (max-width: 640px) {
  .neo-comparison-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .neo-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
}

/* -----------------------------------------------------------------
   COMPONENT: Voices (Refined)
   ----------------------------------------------------------------- */
.neo-stars {
  color: #fbbf24; /* Amber 400 */
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  text-shadow: 1px 1px 0 #000;
}

.neo-quote {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.6;
  background: #fdf2f8; /* Pink 50 */
  padding: 1rem;
  border-left: 4px solid #000;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------
   COMPONENT: Psychological Triggers (Phase 6)
   ----------------------------------------------------------------- */

/* Diagnosis Hook (Loss Aversion) */
.neo-diagnosis-box {
  background-color: #fff1f2; /* Red 50 */
  border: 2px solid #e11d48; /* Red 600 */
  color: #881337; /* Red 900 */
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 4px 4px 0 #9f1239; /* Red 800 */
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.neo-check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.neo-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.neo-check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #e11d48;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: 1px solid #000;
}

/* Throb Animation (Cognitive Fluency) */
@keyframes neo-throb {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.neo-pulse {
  animation: neo-throb 1.5s infinite ease-in-out;
  display: inline-block;
}

/* -----------------------------------------------------------------
   COMPONENT: CTA LEGEND (Click Machine)
   ----------------------------------------------------------------- */
@keyframes neo-shine {
  0% {
    left: -100%;
    top: -100%;
  }
  100% {
    left: 200%;
    top: 200%;
  }
}

@keyframes neo-wiggle {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.neo-btn-legend {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  /* Shape & Size */
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  border-radius: 9999px; /* Max rounded */

  /* Color: Warning Yellow (High Alert) */
  background: #ffd700; /* Gold */
  color: #000000;
  border: 3px solid #000000;

  /* Hard Shadow */
  box-shadow: 6px 6px 0 #000000;

  /* Interaction */
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;

  /* Idle Animation */
  animation: neo-wiggle 3s infinite ease-in-out;
}

/* Shine Effect */
.neo-btn-legend::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(20px);
  transform: skewX(-30deg);
  top: 0;
  left: -150%;
  animation: neo-shine 4s infinite linear;
}

/* Active State */
.neo-btn-legend:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #000000;
}

/* Secondary Legend (Line) */
.neo-btn-legend-secondary {
  background: #06c755; /* LINE Green */
  color: white;
  text-shadow: 1px 1px 0 #004d20;
}

/* -----------------------------------------------------------------
   COMPONENT: Authority Badges (Hero Stickers)
   ----------------------------------------------------------------- */
.neo-authority-sticker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 0.5rem 1rem;
  border-radius: 8px; /* Slightly rounded */
  transform: rotate(-2deg);
  position: relative;
  z-index: 10;
}

.neo-google-stars {
  color: #fbbc04; /* Google Star Yellow */
  font-size: 1.25rem;
  letter-spacing: 0.1rem;
  text-shadow: 1px 1px 0 #000;
}

.neo-sticker-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.neo-sticker-value {
  font-size: 1.125rem;
  font-weight: 900;
  color: #202124;
  line-height: 1.2;
}

/* -----------------------------------------------------------------
   COMPONENT: Google Trust Badge (Sleek - White Ver)
   ----------------------------------------------------------------- */
.neo-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff; /* White Background */
  border: 2px solid #000;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #000000; /* Black Text */
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 1.5rem;
  max-width: fit-content;
}

.neo-trust-icon {
  background: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 1px solid #e5e7eb; /* Light border for contrast */
}

.neo-trust-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.neo-trust-label {
  font-size: 0.6rem;
  color: #6b7280; /* Gray 500 */
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.neo-trust-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #000000; /* Black Strong */
}

.neo-trust-stars {
  color: #fbbc04;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  margin-left: 0.5rem;
}

/* -----------------------------------------------------------------
   UTILITY: Rainbow Text Animation
   ----------------------------------------------------------------- */
/* -----------------------------------------------------------------
   UTILITY: Rainbow Text Animation (Premium)
   ----------------------------------------------------------------- */
@keyframes neo-rainbow-flow-premium {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.neo-text-rainbow-premium {
  background: linear-gradient(
    270deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #8b00ff,
    #ff0000
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  background-size: 400% 400%;
  animation: neo-rainbow-flow-premium 4s ease infinite;
  display: inline-block;
  padding-bottom: 2px;
  line-height: inherit;
  font-weight: 900;
}

/* -----------------------------------------------------------------
   COMPONENT: Trust Badge Modifiers & Animation
   ----------------------------------------------------------------- */
@keyframes neo-float-gentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.neo-trust-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: neo-float-gentle 4s ease-in-out infinite;
}

.neo-trust-row-main {
  z-index: 10;
}

.neo-trust-row-sub {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.neo-trust-badge--hero {
  transform: scale(1.05); /* Slight emphasis */
  box-shadow: 6px 6px 0 #000; /* Deeper shadow */
  border-width: 3px;
}

.neo-trust-badge--mini {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0;
}
.neo-trust-badge--mini .neo-trust-icon {
  width: 24px;
  height: 24px;
}
.neo-trust-badge--mini .neo-trust-value {
  font-size: 0.8rem;
}
.neo-trust-badge--mini .neo-trust-label {
  font-size: 0.5rem;
}

/* Global Text Selection */
::selection {
  background: #000;
  color: #fff;
}
