/* ============================================================
   hinagiku.quest — Translucent Frost Design System
   Colors: #F7F9FC, #4A5168, #2C3345, #EAF0F7, #D6DCF0,
           #C8D0E0, #8A93A8, #E8D5D8
   Fonts: DM Sans (300, 400), DM Mono (400)
============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #F7F9FC;
  background-image: radial-gradient(circle, #C8D0E0 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  /* 18% opacity for dot-grid via RGBA overlay on #F7F9FC */
  color: #4A5168;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Dot-grid at 18% opacity using pseudo-element on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #C8D0E0 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  color: #2C3345;
  letter-spacing: -0.02em;
}

/* ---- Layout Container ---- */
.header-inner,
.section-inner,
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER
============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 0.5px solid #E8EDF2;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-name {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: #2C3345;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #8A93A8;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color 250ms ease;
}

.nav-link:hover {
  color: #4A5168;
}

/* ============================================================
   HERO SECTION
============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 56px;
}

/* ---- Blob Background ---- */
.blob-container {
  position: absolute;
  inset: 0;
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Blob A — top-right */
.blob-a {
  width: 320px;
  height: 280px;
  top: 10%;
  right: 8%;
  background: linear-gradient(135deg, #D6DCF0 0%, #EAF0F7 100%);
  animation: blobMorphA 20s ease-in-out infinite;
}

/* Blob B — lower-left, 40% opacity */
.blob-b {
  width: 260px;
  height: 220px;
  bottom: 15%;
  left: 5%;
  background: linear-gradient(135deg, #EAF0F7 0%, #D6DCF0 100%);
  opacity: 0.4;
  animation: blobMorphB 14s ease-in-out infinite;
}

@keyframes blobMorphA {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%  { border-radius: 50% 60% 30% 40% / 40% 50% 60% 50%; }
  75%  { border-radius: 40% 50% 60% 30% / 60% 40% 50% 40%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes blobMorphB {
  0%   { border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
  33%  { border-radius: 70% 30% 40% 60% / 60% 40% 60% 40%; }
  66%  { border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%; }
  100% { border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
}

/* ---- Frosted Hero Panel ---- */
.hero-panel {
  position: relative;
  z-index: 2;
  max-width: 540px;
  width: calc(100% - 48px);
  padding: 48px 52px;
  background: rgba(247, 249, 252, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.daisy-accent {
  opacity: 0.7;
}

.hero-heading {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2C3345;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #4A5168;
  max-width: 400px;
}

/* ---- Scroll Cue ---- */
.scroll-cue {
  margin-top: 8px;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%   { opacity: 0.4; transform: translateY(0); }
  50%  { opacity: 1;   transform: translateY(4px); }
  100% { opacity: 0.4; transform: translateY(0); }
}

/* ============================================================
   CONTENT SECTIONS
============================================================ */
.content-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

/* Section left-edge accent */
.section-inner {
  position: relative;
}

.section-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E8D5D8;
  opacity: 0.3;
  border-radius: 1px;
}

.section-overline {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: #8A93A8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #2C3345;
  margin-bottom: 48px;
}

/* ============================================================
   CARDS
============================================================ */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(180, 190, 210, 0.25);
}

.card-meta {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #8A93A8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #2C3345;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-body {
  font-size: 15px;
  line-height: 1.75;
  color: #4A5168;
  margin-bottom: 16px;
}

.card-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: #8A93A8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #C8D0E0;
  border-radius: 4px;
  padding: 3px 8px;
}

/* ============================================================
   DAISY SECTION DIVIDER
============================================================ */
.section-divider {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
}

/* ============================================================
   MID-PAGE BLOB
============================================================ */
.blob-mid-container {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.blob-c {
  position: absolute;
  width: 200px;
  height: 180px;
  bottom: -100px;
  left: -60px;
  background: linear-gradient(135deg, #D6DCF0 0%, #EAF0F7 100%);
  opacity: 0.4;
  filter: blur(32px);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorphB 18s ease-in-out infinite 4s;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-text {
  font-size: 17px;
  line-height: 1.75;
  color: #4A5168;
  margin-bottom: 20px;
  max-width: 580px;
}

.about-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.about-separator {
  font-family: 'DM Mono', monospace;
  color: #C8D0E0;
  font-size: 14px;
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  position: relative;
  z-index: 2;
  border-top: 0.5px solid #E8EDF2;
  padding: 64px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-daisy {
  opacity: 0.6;
  margin-bottom: 4px;
}

.footer-name {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: #4A5168;
  letter-spacing: 0.05em;
}

.footer-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8A93A8;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    padding: 0 20px;
  }

  .content-section {
    padding: 80px 0;
  }

  .hero-panel {
    padding: 36px 28px;
  }

  .card {
    padding: 22px 24px;
  }

  .site-nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 11px;
  }

  .hero-panel {
    padding: 28px 20px;
    width: calc(100% - 32px);
  }
}
