/* ========================================
   Hasu Official - Portfolio v2
   Clean Blue + White + Enhanced Motion
======================================== */

:root {
  --bg: #f4f8fc;
  --bg-alt: #ffffff;
  --text: #0b1220;
  --text-muted: #5b6b7c;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --border: #e2e8f0;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
  --shadow-lg: 0 20px 50px rgba(14, 165, 233, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glass: blur(16px) saturate(1.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Background System ========== */
.bg-system {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(125, 211, 252, 0.1), transparent 50%),
    linear-gradient(180deg, #f0f7ff 0%, #f8fafc 40%, #f4f8fc 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 70%);
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(64px, 64px); }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
  top: -15%;
  right: -8%;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
  bottom: 5%;
  left: -12%;
}

.orb-c {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
  top: 45%;
  left: 45%;
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.25;
  animation: floatParticle 12s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-40px) scale(1.4); opacity: 0.45; }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== Layout ========== */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.sp-br { display: none; }
@media (max-width: 640px) {
  .sp-br { display: inline; }
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(244, 248, 252, 0.75);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.logo:hover .logo-mark {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.45);
}

.nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  color: var(--text-muted);
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.lang-current {
  color: var(--primary);
  font-weight: 600;
}

.lang-divider { opacity: 0.4; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(244, 248, 252, 0.96);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(224, 242, 254, 0.8);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.hero-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.12); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.38);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.48);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary svg {
  transition: transform 0.35s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 2px;
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.55); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Sections ========== */
section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 56px;
}

.section-number {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 480px;
}

/* ========== About ========== */
.about {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 64px;
  align-items: start;
}

.about-card {
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.about-info h3 {
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.about-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat {
  background: var(--card);
  backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
}

.stat-num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-lead {
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.85;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: rgba(224, 242, 254, 0.85);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 560;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  transition: all 0.3s var(--ease);
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========== Works ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.work-card {
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), transparent 40%, transparent 60%, rgba(56, 189, 248, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.work-card:hover::before {
  opacity: 1;
}

.work-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  position: relative;
  overflow: hidden;
}

.work-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(14, 165, 233, 0.28);
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-thumb-inner {
  transform: scale(1.12);
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.work-body {
  padding: 20px 22px 24px;
}

.work-title {
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.work-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(241, 245, 249, 0.9);
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 500;
}

/* ========== Contact ========== */
.contact-content {
  max-width: 540px;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.85;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--card);
  backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  font-weight: 550;
  transition: all 0.4s var(--ease);
}

.contact-link:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(224, 242, 254, 0.6);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), #bae6fd);
  color: var(--primary-dark);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.35s var(--ease);
}

.contact-link:hover .contact-icon {
  transform: scale(1.08);
}

/* ========== Footer ========== */
.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.7;
}

/* ========== Modal ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s var(--ease);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(14, 165, 233, 0.25);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== Announcement Bar ========== */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  color: white;
  font-size: 0.875rem;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}

.announce-bar.show {
  transform: translateY(0);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  min-height: 42px;
}

.announce-badge {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.announce-text {
  flex: 1;
  line-height: 1.4;
  font-weight: 500;
}

.announce-text a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.announce-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* header shifts down when announce is visible */
body.has-announce .header {
  top: 42px;
}

body.has-announce .hero {
  padding-top: 160px;
}

@media (max-width: 640px) {
  .announce-inner {
    padding: 10px 16px;
    gap: 8px;
  }
  .announce-text {
    font-size: 0.8rem;
  }
  body.has-announce .header {
    top: 48px;
  }
}

/* ========== Status ========== */
.status-meta {
  margin: -36px 0 28px;
}

.status-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.status-card {
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0.35;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.operational {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.status-dot.operational::after {
  background: #22c55e;
}

.status-dot.degraded {
  background: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
.status-dot.degraded::after {
  background: #eab308;
}

.status-dot.down {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: none;
}
.status-dot.down::after {
  display: none;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.6); opacity: 0.1; }
}

.status-info {
  flex: 1;
  min-width: 0;
}

.status-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.status-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-label.operational { color: #16a34a; }
.status-label.degraded { color: #ca8a04; }
.status-label.down { color: #dc2626; }

/* ========== Responsive ========== */
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 110px 0 70px; }
  .hero-title { font-size: 2.25rem; }
  .works-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

