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

:root {
  --bg-1: #f4fbff;
  --bg-2: #ffffff;
  --bg-3: #fff7ef;
  --bg-mesh-1: rgba(56, 189, 248, 0.18);
  --bg-mesh-2: rgba(249, 115, 22, 0.16);
  --bg-mesh-3: rgba(99, 102, 241, 0.12);

  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;

  --card: rgba(255, 255, 255, 0.8);
  --card-solid: #ffffff;
  --border: rgba(255, 255, 255, 0.75);
  --border-soft: rgba(148, 163, 184, 0.16);

  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;

  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);

  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --container: 1280px;
  --header-height: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, var(--bg-mesh-1), transparent 30%),
    radial-gradient(circle at 90% 15%, var(--bg-mesh-2), transparent 26%),
    radial-gradient(circle at 75% 70%, var(--bg-mesh-3), transparent 28%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
  max-width: 920px;
}

.section-text {
  margin-top: 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: var(--header-height);
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.header-inner {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  background: #ffffff;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-text span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 800;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-menu a {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.hero {
  padding: 84px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
  max-width: 820px;
}

.hero-copy p {
  margin-top: 22px;
  max-width: 680px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p strong {
  color: var(--text);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topic-list {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
}

.topic-item {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 700;
  color: #334155;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-box {
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.stat-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.categories-grid,
.posts-grid,
.shop-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.categories-grid {
  margin-top: 34px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card,
.post-card,
.shop-card,
.comment-card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.post-card:hover,
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.category-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(249, 115, 22, 0.18));
  font-size: 30px;
  box-shadow: var(--shadow-sm);
}

.category-card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.posts-top,
.shop-top,
.comment-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.posts-top--stacked {
  display: block;
}

.posts-heading {
  max-width: 900px;
}

.posts-top--stacked .search-box {
  margin-top: 24px;
  min-width: 0;
  max-width: 520px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 440px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
}

.search-box input::placeholder {
  color: #94a3b8;
}

.posts-grid {
  margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.post-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
}

.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.post-body h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.post-body p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.post-actions {
  margin-top: auto;
  padding-top: 22px;
}

.comments-wrap {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.comment-form,
.comment-list {
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.comment-item + .comment-item {
  margin-top: 16px;
}

.comment-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #eef2ff;
}

.comment-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.comment-item p {
  color: var(--muted);
  line-height: 1.7;
}

.shop-grid {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-card {
  padding: 30px 28px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.shop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-card h3 {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.shop-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.shop-price {
  display: block;
  margin-top: 20px;
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.footer {
  padding: 84px 0 36px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  align-items: start;
}

.footer p,
.footer li,
.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.footer h4 {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.social-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-floating a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-floating a:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy,
  .hero-copy p,
  .section-title,
  .section-text {
    max-width: 100%;
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .posts-grid,
  .shop-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .section {
    padding: 80px 0;
  }

  .header-inner {
    min-height: 80px;
  }

  .brand-text span {
    letter-spacing: 0.14em;
    white-space: normal;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(100%, calc(var(--container) - 32px));
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    text-align: center;
  }

  .posts-grid,
  .shop-grid,
  .categories-grid,
  .comments-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    min-width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
  font-size: clamp(34px, 7.8vw, 56px);
}

  .social-floating {
    right: 14px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    min-height: 76px;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text span {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero {
    padding: 62px 0 28px;
  }

.hero-copy h1 {
  font-size: clamp(30px, 8.4vw, 46px);
  line-height: 1;
}

  .hero-copy p {
    font-size: 17px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 28px;
  }

  .hero-image {
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .post-body,
  .comment-form,
  .comment-list,
  .shop-card {
    padding: 22px;
  }

  .post-body h3,
  .shop-card h3 {
    font-size: 22px;
  }

  .topic-list {
    gap: 10px;
  }

  .topic-item {
    width: 100%;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .social-floating {
    left: 50%;
    right: auto;
    bottom: 16px;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .social-floating a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .footer {
    padding-bottom: 100px;
  }
}

.shop-buy-btn {
    width: 100%;
    justify-content: center;
}