:root {
  --cream: #F7F4EF;
  --warm-white: #FDFCFA;
  --gold: #B8882A;
  --gold-faint: rgba(184,136,42,0.12);
  --ink: #1C1914;
  --ink-60: rgba(28,25,20,0.72);
  --ink-30: rgba(28,25,20,0.50);
  --ink-12: rgba(28,25,20,0.14);
  --ink-06: rgba(28,25,20,0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100%;
  padding: 80px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(184,136,42,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(184,136,42,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 0%   85%,  rgba(3,105,161,0.07)  0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 20%  10%,  rgba(184,136,42,0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28,25,20,0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 10%, transparent 80%);
}

.deco-topline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,136,42,0.5) 50%, transparent 100%);
  z-index: 2;
}

.deco-bottomline {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,136,42,0.2) 50%, transparent 100%);
  z-index: 2;
}

.deco-svg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.deco-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: leafFloat 20s ease-in-out infinite;
}
.deco-leaf:nth-child(1) { top: 8%;  right: 6%;  width: 120px; animation-delay: 0s;   animation-duration: 18s; }
.deco-leaf:nth-child(2) { top: 55%; left: 3%;   width: 80px;  animation-delay: 4s;   animation-duration: 22s; }
.deco-leaf:nth-child(3) { top: 78%; right: 10%; width: 60px;  animation-delay: 8s;   animation-duration: 16s; }

@keyframes leafFloat {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg); }
  15%  { opacity: 0.06; }
  50%  { opacity: 0.09; transform: translateY(-18px) rotate(6deg); }
  85%  { opacity: 0.06; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg); }
}

.deco-scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(28,25,20,0.012) 3px,
    rgba(28,25,20,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  opacity: 0;
  animation: fade 1s 0.1s ease forwards;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-30);
  border: 1px solid var(--ink-12);
  border-radius: 2px;
  padding: 3px 10px;
}

.icon-block {
  margin-bottom: 52px;
  opacity: 0;
  animation: fade 1s 0.25s ease forwards;
  position: relative;
  display: inline-block;
}

.icon-block::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: radial-gradient(ellipse at 50% 50%, rgba(184,136,42,0.10) 0%, transparent 70%);
  animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.7; }
}

.icon-block img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.08),
    0 20px 60px rgba(184,136,42,0.14);
}

.hero {
  margin-bottom: 64px;
  opacity: 0;
  animation: fade 1s 0.4s ease forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-60);
  max-width: 340px;
  letter-spacing: 0.01em;
}

.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-faint) 0%, var(--ink-06) 60%, transparent 100%);
  margin-bottom: 40px;
  opacity: 0;
  animation: fade 1s 0.55s ease forwards;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade 1s 0.65s ease forwards;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 4px 24px rgba(184,136,42,0.07),
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -1px 0 rgba(28,25,20,0.04);
  position: relative;
  overflow: hidden;
}

.specs-bg {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backdrop-filter: blur(18px) saturate(1.6) brightness(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.04);
  background: rgba(255,255,255,0.22);
  pointer-events: none;
  z-index: 0;
}

.specs::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 60%, transparent 100%);
  pointer-events: none;
}

.specs::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.spec {
  padding: 20px 0 20px 20px;
  border-right: 1px solid rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
}

.spec:last-child { border-right: none; }
.spec:first-child { padding-left: 20px; }

.spec-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-30);
  font-weight: 400;
  margin-bottom: 8px;
}

.spec-value {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.dl-wrap {
  opacity: 0;
  animation: fade 1s 0.8s ease forwards;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 28px;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn:hover {
  background: #2E2A24;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(184,136,42,0.15);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--ink-60);
  border: 1px solid var(--ink-12);
  margin-bottom: 16px;
}
.btn-secondary:hover {
  background: var(--ink-06);
  color: var(--ink);
  border-color: var(--ink-30);
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-secondary:active { transform: translateY(0); }

.btn-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.hint {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(28,25,20,0.45);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 0;
}

.marquee-wrap {
  overflow: hidden;
  margin-bottom: 64px;
  opacity: 0;
  animation: fade 1s 0.95s ease forwards;
  border-top: 1px solid var(--ink-06);
  border-bottom: 1px solid var(--ink-06);
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(28,25,20,0.45);
  white-space: nowrap;
  padding: 0 32px;
}

.marquee-track span.dot {
  color: var(--gold);
  padding: 0;
  letter-spacing: 0;
  opacity: 0.5;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.foot {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-30);
  opacity: 0;
  animation: fade 1s 1s ease forwards;
}

.foot a {
  color: var(--ink-30);
  text-decoration: none;
  transition: color 0.2s;
}
.foot a:hover { color: var(--gold); }

.foot-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-60) !important;
  border: 1px solid var(--ink-12);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  transition: color 0.2s, border-color 0.2s, background 0.2s !important;
}
.foot-github:hover {
  color: var(--ink) !important;
  border-color: var(--ink-30);
  background: var(--ink-06);
}
.foot-github svg { flex-shrink: 0; opacity: 0.7; }

@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  body { padding: 40px 24px 60px; justify-content: flex-start; }
  .brand { margin-bottom: 40px; }
  .icon-block { margin-bottom: 32px; }
  .icon-block img { width: 80px; height: 80px; border-radius: 18px; }
  .hero { margin-bottom: 32px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5rem); line-height: 1.0; }
  .hero-desc { font-size: 1rem; max-width: 100%; line-height: 1.6; }
  .specs { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1px; 
    background: var(--ink-06);
    border: none;
    box-shadow: none;
    border-radius: 12px;
  }
  .specs-bg { display: none; }
  .spec { 
    padding: 24px 16px; 
    background: var(--warm-white);
    border: none;
  }
  .spec-label { font-size: 0.7rem; margin-bottom: 4px; }
  .spec-value { font-size: 1.1rem; font-weight: 400; }
  .dl-wrap { margin-top: 8px; }
  .btn { padding: 22px 24px; border-radius: 12px; }
  .btn span { font-size: 0.95rem; }
  .btn-right { gap: 8px; }
  .btn-secondary { margin-top: 4px; }
  .foot { flex-direction: column; gap: 20px; text-align: center; margin-top: 48px; }
}

@media (max-width: 360px) {
  body { padding: 32px 16px 48px; }
  .hero h1 { font-size: 3.5rem; }
  .btn { padding: 20px 18px; }
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}
@keyframes iconShake {
  0%,100% { transform: rotate(0deg) scale(1); }
  15%      { transform: rotate(-8deg) scale(1.08); }
  30%      { transform: rotate(8deg)  scale(1.08); }
  45%      { transform: rotate(-6deg) scale(1.05); }
  60%      { transform: rotate(6deg)  scale(1.05); }
  75%      { transform: rotate(-3deg) scale(1.02); }
  90%      { transform: rotate(3deg)  scale(1.02); }
}
