:root {
  --orange: #f5820f;
  --orange-dark: #d66d06;
  --shadow-lg: 0 20px 80px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 30px rgba(245, 130, 15, 0.14);
  --radius-xl: 2rem;

  --bg: #f6f4f2;
  --bg-accent: #f8f6f4;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.72);
  --text: #161616;
  --muted: #5f5f67;
  --border: rgba(0, 0, 0, 0.07);
  --grid: rgba(0, 0, 0, 0.035);
  --theme-button-bg: rgba(255, 255, 255, 0.72);
  --theme-button-text: #2b2b30;
}

html[data-theme="dark"] {
  --bg: #111114;
  --bg-accent: #18181c;
  --panel: rgba(28, 28, 33, 0.8);
  --panel-solid: #1a1a1f;
  --header-bg: rgba(18, 18, 22, 0.76);
  --text: #f3f3f5;
  --muted: #b8b8c1;
  --border: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.05);
  --theme-button-bg: rgba(27, 27, 33, 0.85);
  --theme-button-text: #f3f3f5;
  --shadow-lg: 0 20px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(245, 130, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

button {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 40%, rgba(0,0,0,0.55) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, rgba(0,0,0,0.55) 70%, transparent 100%);
  opacity: 0.5;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-width: 0;
}

.brand-icon,
.showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex-shrink: 0;
}

.showcase-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  margin-bottom: 28px;
}

.brand-icon img,
.showcase-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  color: var(--orange);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.theme-toggle,
.header-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  cursor: pointer;
  position: relative;
  flex: 0 0 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover,
.header-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.theme-toggle:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.theme-icon {
  position: absolute;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.8);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.8);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.header-button,
.primary-button {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.header-button {
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.primary-button {
  min-height: 58px;
  padding: 0 32px;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.header-button:hover,
.primary-button:hover {
  box-shadow: 0 16px 35px rgba(245, 130, 15, 0.22);
  background: #eb7908;
}

.hero {
  padding-top: 110px;
  padding-bottom: 70px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 130, 15, 0.15);
  background: rgba(245, 130, 15, 0.08);
  color: var(--orange-dark);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--orange);
  margin-top: 10px;
}

.hero-copy {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

.showcase {
  padding-bottom: 90px;
}

.showcase-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.showcase-card {
  background: linear-gradient(to bottom, var(--panel-solid), var(--bg-accent));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) - 10px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 28px;
}

.showcase-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.showcase-card > p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.feature-grid {
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel-solid);
  text-align: left;
  padding: 22px 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.feature h3 {
  margin: 0;
  color: var(--orange);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 84px;
  }
}

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

  .header-inner {
    min-height: 70px;
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand {
    gap: 10px;
    flex: 1 1 auto;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .theme-icon {
    font-size: 1rem;
  }

  .header-button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .badge {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .showcase-shell {
    padding: 14px;
  }

  .showcase-card {
    min-height: 390px;
    padding: 40px 18px;
  }
}
