/* ============================================
   iceteam.cc — Ice × Dark Theme
   ============================================ */

:root {
  --bg: #06060c;
  --bg-card: #0d0d18;
  --bg-card-hover: #111128;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --text: #e0e0f0;
  --text-dim: #6a6a8a;
  --accent: #00d4ff;
  --accent-dim: #006680;
  --accent-glow: rgba(0,212,255,0.15);
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Space Grotesk', monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Background Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(6,6,12,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

/* ── Section ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-title {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}
.section-title::before {
  content: '// ';
  color: var(--text-dim);
  font-weight: 400;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  gap: 4rem;
}
.hero-content {
  flex: 1;
}
.hero-sub {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero-main {
  display: block;
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #fff 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 1.5rem 0 2rem;
  line-height: 2;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-gem {
  width: 200px;
  height: 200px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--accent), #004466);
  box-shadow: 0 0 80px var(--accent-glow), 0 0 160px rgba(0,212,255,0.05);
  animation: morph 8s ease-in-out infinite, pulse 3s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 80px var(--accent-glow); }
  50% { box-shadow: 0 0 140px rgba(0,212,255,0.3); }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #00e8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}
.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-4px);
}
.about-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-card h3 {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.about-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  margin: 0.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-en);
  color: var(--text-dim);
}

/* ── Works ── */
.works-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.work-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  align-items: center;
}
.work-featured {
  border-color: rgba(0,212,255,0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,212,255,0.03) 100%);
}
.work-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateX(4px);
}
.work-thumb {
  flex: 0 0 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.work-info {
  flex: 1;
}
.work-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.work-info h3 {
  font-family: var(--font-en);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.work-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.work-tags {
  margin-bottom: 0.8rem;
}
.work-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.work-link:hover {
  color: #00e8ff;
}

/* ── Downloads ── */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  transition: all 0.3s;
}
.download-card:hover {
  border-color: rgba(0,212,255,0.2);
}
.download-icon {
  font-size: 2rem;
}
.download-info h3 {
  font-family: var(--font-en);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.download-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.download-status {
  margin-left: auto;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-copy {
  margin-top: 0.3rem;
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    min-height: auto;
  }
  .hero-main {
    font-size: 3rem;
  }
  .hero-visual {
    flex: none;
  }
  .hero-gem {
    width: 140px;
    height: 140px;
  }
  .hero-actions {
    justify-content: center;
  }
  .nav {
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .work-card {
    flex-direction: column;
    text-align: center;
  }
  .work-thumb {
    flex: none;
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  .section {
    padding: 4rem 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
