/* ═══════════════════════════════════════════
   NIZUMO — css/landing.css
   Landing page specific styles
═══════════════════════════════════════════ */

/* ── BODY ── */
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* ── BACKGROUND ── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(155,93,229,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(240,98,164,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(100,60,200,0.1) 0%, transparent 50%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(0.98); }
}
#stars-canvas { position: absolute; inset: 0; }

/* ── BRANCHES ── */
.branch {
  position: fixed; pointer-events: none; z-index: 2;
  background-size: contain; background-repeat: no-repeat;
}
.branch-tl {
  top: 40px; left: 0;
  width: 300px; height: 200px;
  background-image: url('https://i.ibb.co/CT7cZXL/file-00000000ace071fa856d2b08cbfc318d.png');
  background-position: top left;
  opacity: 0.85;
  transform-origin: top left;
  animation: swayLeft 7s ease-in-out infinite;
}
.branch-tr {
  bottom: 120px; right: 0;
  width: 220px; height: 160px;
  background-image: url('https://i.ibb.co/SXCtrG91/file-00000000933c71fa9664b327208bae49.png');
  background-position: bottom right;
  opacity: 0.75;
  transform-origin: bottom right;
  animation: swayRight 9s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes swayLeft {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(1.8deg); }
}
@keyframes swayRight {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

/* ── PETALS ── */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px; display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  background: rgba(8,5,16,0.65);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(240,98,164,0.08);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-img {
  width: 46px; height: 46px; object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(240,98,164,0.6));
  transform: scale(1.3);
}
.logo-name { font-size: 19px; font-weight: 800; color: var(--t0); letter-spacing: -0.3px; }
.logo-name span { color: var(--pink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,98,164,0.08); border: 1px solid rgba(240,98,164,0.22);
  border-radius: var(--r-full); padding: 7px 18px;
  font-size: 12px; font-weight: 600; color: var(--pink2);
  margin-bottom: 32px; animation: fadeInUp 0.7s ease forwards;
  backdrop-filter: blur(8px); box-shadow: 0 0 20px rgba(240,98,164,0.08);
}
.hero-badge-dot {
  width: 7px; height: 7px; background: var(--pink); border-radius: 50%;
  box-shadow: 0 0 10px var(--pink); animation: glowPulse 1.8s ease-in-out infinite;
}
h1 {
  font-size: clamp(36px, 9vw, 72px); font-weight: 800;
  line-height: 1.06; letter-spacing: -2.5px;
  margin-bottom: 22px; max-width: 780px;
  animation: fadeInUp 0.7s 0.1s ease both;
  padding-bottom: 8px;
}
.grad-text {
  background: linear-gradient(135deg, #f062a4, #ff8cc8, #c084fc, #f062a4);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.hero-desc {
  font-size: clamp(15px, 2.5vw, 18px); color: var(--t2);
  max-width: 480px; line-height: 1.8; margin-bottom: 44px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-desc strong { color: var(--t1); font-weight: 600; }
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 80px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

/* ── STATS ── */
.stats {
  display: flex; gap: 56px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 80px;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.stat { text-align: center; }
.stat-val {
  font-size: 36px; font-weight: 800; display: block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.stat-lbl { font-size: 12px; color: var(--t2); font-weight: 500; }

/* ── PREVIEW ── */
.preview-wrap {
  width: 100%; max-width: 740px; position: relative;
  animation: fadeInUp 0.8s 0.5s ease both;
}
.preview-glow {
  position: absolute; inset: -50px;
  background: radial-gradient(ellipse at center, rgba(240,98,164,0.12), transparent 65%);
  pointer-events: none; animation: float 4s ease-in-out infinite;
}
.preview {
  background: rgba(10,7,20,0.93); border: 1px solid rgba(240,98,164,0.18);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 80px rgba(240,98,164,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.preview:hover { transform: translateY(-4px); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 100px rgba(240,98,164,0.1); }
.preview-bar {
  background: rgba(20,14,38,0.98); padding: 13px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(240,98,164,0.08);
}
.win-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.wd-r { background: #f87171; } .wd-y { background: #fbbf24; } .wd-g { background: #4ade80; }
.preview-title { font-size: 12px; color: var(--t2); font-family: var(--mono); margin: 0 auto; }
.preview-code { padding: 24px 28px; font-family: var(--mono); font-size: 13px; line-height: 1.9; text-align: left; }
.ck{color:#c084fc;font-weight:600} .cs{color:#4ade80} .cf{color:#60a5fa}
.cn{color:#fbbf24} .cc{color:#3a3058;font-style:italic} .cp{color:#c0b8e0}

/* ── SCROLL SECTIONS ── */
.scroll-section {
  position: relative; z-index: 10;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-section.visible { opacity: 1; transform: translateY(0); }

/* ── FEATURES ── */
.features { padding: 120px 24px; max-width: 1000px; margin: 0 auto; width: 100%; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feat-card {
  background: rgba(12,8,24,0.8); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover { border-color: rgba(240,98,164,0.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.feat-icon { font-size: 36px; margin-bottom: 18px; display: block; animation: float 3s ease-in-out infinite; }
.feat-card:nth-child(2) .feat-icon { animation-delay: -1s; }
.feat-card:nth-child(3) .feat-icon { animation-delay: -2s; }
.feat-card:nth-child(4) .feat-icon { animation-delay: -0.5s; }
.feat-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feat-desc { font-size: 13px; color: var(--t2); line-height: 1.7; }

/* ── TEMPLATES ── */
.templates-section { padding: 0 24px 120px; max-width: 1000px; margin: 0 auto; width: 100%; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 36px; }
.lp-tc {
  background: rgba(12,8,24,0.8); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px; cursor: pointer;
  text-decoration: none; display: block;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden; backdrop-filter: blur(16px);
}
.lp-tc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--ac, var(--pink));
  box-shadow: 0 0 10px var(--ac, var(--pink));
}
.lp-tc:hover { border-color: rgba(240,98,164,0.35); transform: translateY(-3px); }
.lp-tc:active { transform: scale(0.98); }
.lp-tc-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.lp-tc-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--t0); }
.lp-tc-desc { font-size: 12px; color: var(--t2); line-height: 1.6; }
.templates-more { text-align: center; }
.templates-more a { font-size: 14px; color: var(--pink2); font-weight: 600; text-decoration: none; transition: all 0.2s; }
.templates-more a:hover { color: var(--pink); }

/* ── CTA ── */
.cta { position: relative; z-index: 10; text-align: center; padding: 100px 24px 140px; }
.cta-inner {
  background: rgba(12,8,24,0.7); border: 1px solid rgba(240,98,164,0.15);
  border-radius: 24px; padding: 60px 40px;
  backdrop-filter: blur(20px); max-width: 600px; margin: 0 auto;
  box-shadow: 0 0 60px rgba(240,98,164,0.05);
}
.cta h2 { font-size: clamp(26px, 5vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta p { font-size: 15px; color: var(--t2); margin-bottom: 36px; line-height: 1.7; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 10; text-align: center;
  padding: 28px; font-size: 12px; color: var(--t3);
  border-top: 1px solid var(--border);
  background: rgba(8,5,16,0.8); backdrop-filter: blur(12px);
}
footer strong { color: var(--t2); }

/* ── MOBILE ── */
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .btn-hide-mob { display: none; }
  .stats { gap: 32px; }
  .template-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-tc { padding: 14px; }
  .branch-tl, .branch-tr { width: 160px; height: 120px; }
  .cta-inner { padding: 40px 20px; }
}
