/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav ul { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; transition: opacity .2s; }
.nav a:hover { opacity: 0.6; }

/* ===== Hero ===== */
.hero {
  padding: 180px 0 120px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}
.hero-inner { max-width: 820px; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #000; color: #fff;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero p {
  font-size: 18px;
  color: #555;
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-secondary { background: #fff; color: #000; border: 1.5px solid #000; }
.btn-secondary:hover { background: #000; color: #fff; }

/* ===== Section Heading ===== */
.section-header { margin-bottom: 60px; max-width: 680px; }
.section-label {
  font-size: 13px; font-weight: 700;
  color: #888; letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: #666; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}
.card-category {
  font-size: 12px; font-weight: 700;
  color: #888; letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-title {
  font-size: 20px; font-weight: 700;
  line-height: 1.4; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-summary { font-size: 14px; color: #666; margin-bottom: 20px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.card-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: #f3f3f3;
  border-radius: 999px;
  color: #555;
}
.card-link {
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  color: #000;
}
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ===== About / Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service {
  padding: 32px;
  background: #fafafa;
  border-radius: 16px;
}
.service h3 { font-size: 18px; margin-bottom: 12px; }
.service p { font-size: 14px; color: #666; }

/* ===== Detail Pages ===== */
.detail-hero {
  padding: 160px 0 60px;
  background: #fafafa;
}
.detail-back {
  display: inline-block;
  font-size: 14px; color: #666;
  margin-bottom: 24px;
}
.detail-back:hover { color: #000; }
.detail-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: #666; font-size: 14px; }
.detail-body { padding: 80px 0; max-width: 780px; margin: 0 auto; }
.detail-body h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.detail-body p { font-size: 16px; color: #333; margin-bottom: 16px; }
.detail-body ul { padding-left: 24px; list-style: disc; color: #333; }
.detail-body li { margin-bottom: 8px; }

/* ===== CTA ===== */
.cta {
  background: #000;
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 80px 40px;
  margin: 0 24px;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta p { font-size: 16px; color: #ccc; margin-bottom: 32px; }
.cta .btn-primary { background: #fff; color: #000; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid #eee;
  margin-top: 100px;
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  font-size: 14px; color: #888;
}
.footer a:hover { color: #000; }

/* ===== Card thumbnail ===== */
.card-thumb {
  margin: -28px -28px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 12px 12px 0 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Detail hero image ===== */
.detail-hero-image {
  margin: 0 0 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}
.detail-hero-image img { width: 100%; height: auto; display: block; }

/* ===== Video embed ===== */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== Profile photo ===== */
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 32px;
  background: #f3f3f3;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Hero stats ===== */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.stat { text-align: center; min-width: 140px; }
.stat-value { font-size: 32px; font-weight: 700; color: #000; line-height: 1.2; }
.stat-label { font-size: 13px; color: #666; margin-top: 6px; }

/* ===== Career timeline ===== */
.career-timeline {
  margin: 24px 0 40px;
  border-left: 2px solid #ddd;
  padding-left: 24px;
}
.career-item {
  position: relative;
  margin-bottom: 32px;
}
.career-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #000;
}
.career-period {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin-bottom: 4px;
}
.career-body h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.career-company {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.career-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* ===== Tools grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.tools-cat {
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
}
.tools-cat-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== Pricing table ===== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
}
.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.pricing-table th {
  font-weight: 500;
  color: #333;
  background: #fafafa;
  width: 50%;
}
.pricing-table td {
  font-weight: 600;
  color: #000;
}

/* ===== Hero photo ===== */
.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  background: #f3f3f3;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Hackathon intro section ===== */
.hackathon-intro {
  padding: 80px 0;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.hackathon-intro h2 {
  font-size: 28px;
  margin: 16px 0 20px;
  line-height: 1.5;
}
.hackathon-intro p {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
  max-width: 760px;
}

/* ===== Development steps ===== */
.dev-step {
  margin: 40px 0 56px;
  padding: 32px;
  background: #fafafa;
  border-radius: 16px;
  border-left: 4px solid #000;
}
.dev-step h3 {
  font-size: 20px;
  margin: 0 0 16px;
}
.dev-step > p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
}
.step-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.step-figure {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.step-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.step-figure figcaption {
  font-size: 13px;
  color: #666;
  padding: 12px 16px;
  line-height: 1.6;
  background: #fff;
}

/* ===== Media grid (video + PDF) ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 16px 0 32px;
}
.media-item h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #444;
}
.pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #fafafa;
  border: 2px dashed #ddd;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.pdf-card:hover {
  background: #f3f3f3;
  border-color: #888;
}
.pdf-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid #eee;
  border-style: solid;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.pdf-card-image:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.pdf-cover { width: 100%; height: 100%; position: relative; }
.pdf-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.pdf-card-image:hover .pdf-cover img { transform: scale(1.04); }
.pdf-cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pdf-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.pdf-label {
  font-size: 15px;
  font-weight: 500;
}

/* ===== Live site preview cards ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 16px 0 40px;
}
.live-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  border-color: transparent;
}
.live-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}
.live-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.live-card:hover .live-card-image img { transform: scale(1.04); }
.live-card-label {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .hero { padding: 140px 0 80px; }
  .nav ul { gap: 20px; }
  .nav a { font-size: 13px; }
  .cta { padding: 60px 24px; margin: 0 16px; }
}
