/* =========================================================================
   Kokqualh V3: 2026 Web Design Trends
   Aesthetic: Explorecore, The Visual Index, Micro-delights
========================================================================= */

:root {
  /* 60-30-10 Rule */
  --bg-base: #F7F5F0;
  /* 60%: Warm Off-white / Cream */
  --text-primary: #1F1E1D;
  /* 30%: Rich Charcoal Black */
  --text-secondary: #7A7873;
  /* Muted stone grey */
  --accent: #B89C7D;
  /* 10%: Subtle Gold/Muted Bronze */
  --border-color: rgba(31, 30, 29, 0.1);

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;

  --ease-classic: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  /* Hide default cursor for custom cursor */
}

/* Fallback if custom cursor acts up on touch devices */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ========================================
   Texture && Micrographics (2026 Trend)
======================================== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  /* Pure CSS noise trick using repeating radial gradients (performance friendly) */
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-classic), height 0.3s var(--ease-classic), background-color 0.3s ease;
  mix-blend-mode: difference;
  /* Creates a cool inverse effect on text */
}

.custom-cursor.hovered {
  width: 40px;
  height: 40px;
  background-color: #fff;
}

.micro-top-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.micro-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ========================================
   Header (Mood-based)
======================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  height: 24px;
  width: auto;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav {
  display: flex;
  gap: 3rem;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b89d7f;
  position: relative;
  overflow: hidden;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #b89d7f;
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-classic);
}

.main-nav a:hover::after {
  transform: translateX(0);
}

.header-actions {
  color: #b89d7f;
}

/* ========================================
   Deconstructed Hero (Asymmetric Overlap)
======================================== */
.hero-deconstructed {
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding: 0 4rem;
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
}

.hero-text-block {
  flex: 0 0 45%;
  z-index: 10;
  padding-right: 2rem;
}

.hero-overline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-massive {
  font-family: var(--font-serif);
  font-size: 6.5rem;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

.hero-massive i {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 400px;
  margin-bottom: 3rem;
}

.hero-explore-btn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 5px;
  transition: opacity 0.3s ease;
}

.hero-explore-btn:hover {
  opacity: 0.6;
}

.hero-image-block {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image-inner {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.parallax-zoom {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(1);
  transition: transform 1.5s var(--ease-classic);
}

.hero-image-block:hover .parallax-zoom {
  transform: scale(0.98);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  /* The overlap effect */
  z-index: 15;
}

.floating-badge span {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

/* ========================================
   The Visual Index (Bento Grid)
======================================== */
.bento-index-section {
  padding: 8rem 4rem;
  max-width: 1800px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.serif-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-style: italic;
}

/* BENTO CSS GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-cell {
  background-color: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-classic), box-shadow 0.4s var(--ease-classic);
}

.bento-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

/* Modifiers for different grid sizes */
.cell-large {
  grid-column: span 2;
}

.cell-tall {
  grid-column: span 1;
}

.cell-text-only {
  grid-column: span 3;
  background: var(--text-primary);
  color: var(--bg-base);
  padding: 0;
}

.cell-text-only .bento-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 4rem;
}

.cell-text-only .serif-quote {
  font-size: 2.2rem;
  margin: 0;
}

.cell-text-only .micro-text {
  margin: 0;
  opacity: 0.6;
}

.cell-wide {
  grid-column: span 3;
  flex-direction: row;
}

/* Bento Image & Content */
.bento-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 이미지 영역의 높이를 16:9 비율로 고정하여 내용물과 밸런스 유지 */
  overflow: hidden;
  position: relative;
}

.cell-wide .bento-image-wrap {
  flex: 0 0 50%;
}

.bento-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-classic);
}

.bento-cell:hover .bento-image-wrap img {
  transform: scale(1.03);
}

.bento-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.bento-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.bento-meta .tag {
  color: var(--accent);
}

.bento-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.bento-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.read-more {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  align-self: flex-start;
  transition: border-color 0.3s;
}

.bento-cell:hover .read-more {
  border-color: var(--text-primary);
}

/* Special styling for text-only cell */
.serif-quote {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: #fff;
}

.mt-auto {
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   The Live Price Drop Ticker UI (Marquee)
======================================== */
.ticker-section {
  padding: 0 0 4rem;
  /* Top padding removed to attach to scanner */
  background-color: var(--bg-base);
  overflow: hidden;
  position: relative;
}

.ticker-header {
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.ticker-link-wrapper {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.ticker-window {
  width: 100%;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-roll 25s linear infinite;
  will-change: transform;
}

.ticker-window:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  /* match gap */
}

.t-item {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.t-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.t-badge.flash {
  background: #ff3366;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

.t-badge.error {
  background: #ffcc00;
  color: #000;
}

.t-badge.pick {
  background: #00ff88;
  color: #000;
}

.t-drop {
  color: #00ff88;
  font-weight: 800;
}

.t-dot {
  color: rgba(255, 255, 255, 0.2);
  margin-left: 2.2rem;
}

@keyframes ticker-roll {
  from {
    transform: translateX(0);
  }

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

  /* Scrolls exactly half to loop duplicate items */
}

/* Glassmorphism Hover Overlay */
.ticker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.ticker-overlay span {
  color: #00ff88;
  font-family: var(--font-sans);
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.ticker-window:hover .ticker-overlay {
  opacity: 1;
}

.ticker-window:hover .ticker-overlay span {
  transform: translateY(0);
}

/* ========================================
   The Deal Scanner UI
======================================== */
.scanner-section {
  background-color: var(--text-primary);
  padding: 0 4rem 2rem;
  /* Bottom padding reduced */
  display: flex;
  justify-content: center;
}

.scanner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem;
  border-radius: 20px;
  transition: all 0.4s var(--ease-classic);
  color: var(--bg-base);
}

.scanner-container:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.scanner-text {
  flex: 0 0 50%;
  padding-right: 4rem;
}

.text-accent {
  color: #00ff88;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.scanner-heading {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.scanner-heading i {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.scanner-subtext {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
}

.scanner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #1a1a1a;
  background-color: #00ff88;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scanner-container:hover .scanner-cta {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  transform: scale(1.05);
}

/* Radar Visual Animation */
.scanner-visual {
  flex: 0 0 40%;
  display: flex;
  justify-content: flex-end;
}

.radar-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 136, 0.3);
}

.radar-circle.inner {
  width: 50%;
  height: 50%;
}

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  background: linear-gradient(45deg, rgba(0, 255, 136, 0.4) 0%, transparent 50%);
  transform-origin: bottom right;
  bottom: 50%;
  right: 50%;
  animation: radar-spin 4s linear infinite;
  border-radius: 100% 0 0 0;
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  opacity: 0;
  animation: dot-flash 4s infinite;
}

.dot-1 {
  top: 25%;
  left: 30%;
  animation-delay: 0.5s;
}

.dot-2 {
  top: 60%;
  left: 70%;
  animation-delay: 1.5s;
}

.dot-3 {
  top: 40%;
  left: 80%;
  animation-delay: 2.2s;
}

@keyframes dot-flash {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  10% {
    opacity: 1;
    transform: scale(1.5);
  }

  20% {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* ========================================
   Animations (Fade & Reveal) - 2026 Slow Pace
======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 1.2s var(--ease-classic), transform 1.2s var(--ease-classic);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}


/* ========================================
   Final Premium Footer
======================================== */
.site-footer {
  background-color: #b99d7e;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 0 2rem;
  color: #1a1a1a;
  margin-top: 4rem;
}

.footer-brand-wrapper {
  background-color: #7b6750;
  padding: 6rem 2rem 4rem;
  display: flex;
  justify-content: center;
}

.footer-brand {
  width: 100%;
  max-width: 1200px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 3rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #1a1a1a;
  transform: translateX(5px);
}

.social-links a:hover {
  color: #1a1a1a;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.affiliate-disclosure {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
}

.affiliate-disclosure p {
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0;
}

.affiliate-disclosure strong {
  color: #1a1a1a;
}

.copyright p {
  color: rgba(26, 26, 26, 0.5);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

/* ========================================
   Responsive Media Queries
======================================== */
@media (max-width: 1200px) {
  .hero-massive {
    font-size: 5rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell-large,
  .cell-wide,
  .cell-text-only {
    grid-column: span 2;
  }

  .cell-tall {
    grid-column: span 1;
  }

  .cell-text-only .bento-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 1.5rem;
  }

  .scanner-heading {
    font-size: 2.8rem;
  }

  .scanner-container {
    flex-direction: column;
    padding: 3rem 2rem;
  }

  .scanner-text {
    flex: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .scanner-visual {
    flex: none;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem;
  }

  .brand-logo {
    height: 31px;
    /* PC 기본 24px 대비 약 30% 더 큰 크기 설정 */
  }

  .main-nav {
    display: none;
    /* Can add hamburger menu later */
  }

  .micro-top-bar {
    display: none;
  }

  .hero-deconstructed {
    flex-direction: column;
    padding: 2rem;
    min-height: auto;
    margin-top: 2rem;
  }

  .hero-text-block {
    flex: 0 0 100%;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero-massive {
    font-size: 4rem;
  }

  .hero-image-block {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 2rem;
  }

  .floating-badge {
    bottom: 20px;
    left: 20px;
  }

  .scanner-section {
    padding: 0 1.5rem 2rem;
    /* Reduced bottom padding */
  }

  .scanner-container {
    padding: 2.5rem 1.5rem;
  }

  .scanner-heading {
    font-size: 2.2rem;
  }

  .scanner-subtext {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .radar-wrapper {
    width: 240px;
    height: 240px;
  }

  .ticker-section {
    padding: 0 0 2rem;
    /* Removed top padding */
  }

  .t-item {
    font-size: 0.95rem;
  }

  .bento-index-section {
    padding: 4rem 2rem;
  }

  .serif-title {
    font-size: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .cell-large,
  .cell-tall,
  .cell-wide,
  .cell-text-only {
    grid-column: span 1;
    grid-row: auto;
  }

  .cell-wide {
    flex-direction: column;
  }

  .cell-wide .bento-image-wrap {
    order: -1;
    height: auto;
  }

  .cell-text-only .bento-content {
    padding: 2rem;
  }

  .cell-text-only .serif-quote {
    font-size: 1.6rem;
  }

  /* Footer Mobile */
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .footer-brand-wrapper {
    padding: 4rem 1.5rem 2rem;
  }

  .footer-container {
    padding: 2rem 1.5rem 0;
  }

  .footer-logo {
    font-size: 2.2rem;
  }

  .affiliate-disclosure {
    padding: 1rem;
  }
}