/* =========================================================
   K-ART Platform Dashboard Ver.1.0
========================================================= */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #152033;
  --muted: #64748b;
  --line: #dbe3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 14px 40px rgba(30, 64, 175, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.32), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(96, 165, 250, 0.25), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #172554 55%, #0f4c75 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0 84px;
}

.eyebrow,
.section-label,
.side-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
}

.hero-button {
  display: inline-flex;
  margin-top: 32px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #06142c;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.section-block {
  margin-bottom: 48px;
}

.section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.tool-grid,
.professional-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.professional-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tool-card:hover,
.professional-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 22px 52px rgba(30, 64, 175, 0.15);
}

.tool-icon {
  height: 96px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.qr-icon {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.password-icon {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.editor-icon {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.tool-card-body {
  padding: 20px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tool-badge.free {
  color: #166534;
  background: #dcfce7;
}

.tool-badge.soon {
  color: #92400e;
  background: #fef3c7;
}

.tool-card h3,
.professional-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.tool-card p,
.professional-card p,
.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.professional-card {
  min-height: 190px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.professional-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.05));
}

.news-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-item {
  display: grid;
  grid-template-columns: 105px 80px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.news-category {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #dbeafe;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.news-item p {
  margin: 0;
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.side-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ad-space {
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  color: #94a3b8;
  background:
    linear-gradient(135deg, #f8fafc 25%, #f1f5f9 25%, #f1f5f9 50%, #f8fafc 50%, #f8fafc 75%, #f1f5f9 75%);
  background-size: 24px 24px;
  text-align: center;
}

.ad-space strong {
  color: #64748b;
  font-size: 22px;
}

.ad-space span {
  margin-top: 4px;
  font-size: 11px;
}

.product-card h2,
.company-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-card ul {
  margin: 16px 0;
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
}

.product-card a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
}

.footer-inner a {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

/* Coming soon page */
.coming-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(6,182,212,.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #172554);
}

.coming-card {
  width: min(620px, 100%);
  padding: 46px 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.coming-card h1 {
  margin: 14px 0;
  font-size: clamp(30px, 6vw, 52px);
}

.coming-card p {
  color: rgba(255,255,255,.72);
}

.coming-card a {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .side-card {
    margin-bottom: 0;
  }

  .ad-space {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .header-nav {
    display: none;
  }

  .hero-inner {
    padding: 58px 0 64px;
  }

  .tool-grid,
  .professional-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 8px;
  }

  .news-item {
    grid-template-columns: 94px 72px;
  }

  .news-item p {
    grid-column: 1 / -1;
  }

  .footer-inner {
    padding: 20px 0;
    flex-direction: column;
    justify-content: center;
  }
}
