/* ─── KIPPU HOME — Premium Dark Editorial ─────────────────────────────────── */

/* ── Reset & Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090B;
  --bg-2:        #111113;
  --bg-3:        #18181B;
  --bg-card:     #1C1C1F;
  --text:        #F2EDE6;
  --text-soft:   #C8C0B4;
  --text-mute:   #76706A;
  --accent:      #b98672;
  --accent-2:    #d4a088;
  --accent-dim:  rgba(185,134,114,0.15);
  --accent-glow: rgba(185,134,114,0.3);
  --gold:        #C9A45A;
  --gold-dim:    rgba(201,164,90,0.15);
  --line:        rgba(242,237,230,0.08);
  --r:           16px;
  --r-sm:        10px;
  --trans:       0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.d-hide { display: none; }
@media (min-width: 768px) { .d-hide { display: inline; } }

/* ── Splash ── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashOut 0.6s ease 2.2s forwards;
  pointer-events: none;
}
.splash-logo-img {
  height: 80px;
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  animation: kpulse 1.6s ease-in-out infinite;
}
@keyframes kpulse { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes splashOut { to { opacity:0; visibility:hidden; } }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 32px;
  padding: 10px clamp(20px,5vw,60px);
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo-img {
  height: 96px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-soft);
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 99px;
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 600;
  transition: background var(--trans), transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--trans);
}

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
#mobile-menu[hidden] { display: none; }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--text-soft);
  font-size: 20px;
}
.mob-link {
  font-size: clamp(28px,6vw,40px); font-family: 'Playfair Display', serif;
  font-weight: 600; color: var(--text);
  transition: color var(--trans);
}
.mob-link:hover { color: var(--accent); }
.mob-cta { margin-top: 8px; padding: 14px 32px; font-size: 16px; }

/* ── Hero ── */
#hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px,5vw,60px) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  height: 100%; object-position: center;
  filter: saturate(0.7) brightness(0.55);
}
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(9,9,11,0.88) 0%,
    rgba(9,9,11,0.6) 50%,
    rgba(9,9,11,0.82) 100%
  );
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1;
  background: conic-gradient(
    from 200deg at 30% 60%,
    rgba(185,134,114,0.12) 0deg,
    transparent 80deg,
    rgba(185,134,114,0.06) 160deg,
    transparent 280deg
  );
  animation: meshRotate 18s linear infinite;
}
@keyframes meshRotate { to { transform: rotate(360deg) scale(1.4); } }
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.035;
  mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.hero-inner {
  position: relative; z-index: 3;
  max-width: 760px;
}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-kicker::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--accent);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 24px;
}
.hero-title em {
  font-style: italic; color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px,2vw,18px); color: var(--text-soft);
  max-width: 540px; line-height: 1.7; margin-bottom: 40px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px;
  background: var(--accent); color: var(--bg);
  font-size: 15px; font-weight: 600;
  transition: background var(--trans), transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 24px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--text-soft);
  font-size: 15px; font-weight: 500;
  transition: border-color var(--trans), color var(--trans);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,4vw,42px); font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 500;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em;
}
.stat-sep {
  width: 1px; height: 40px; background: var(--line);
}

/* ── Reveal animations (progressive enhancement) ── */
/* Content is visible by default; JS adds .js-anims to body before observing */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.js-anims .reveal {
  opacity: 0;
  transform: translateY(32px);
}
.js-anims .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Features ── */
#features {
  padding: clamp(80px,10vw,140px) 0;
  position: relative;
}
#features::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px,6vw,80px);
}
.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px,5vw,56px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 20px;
}
.section-title em {
  font-style: italic; color: var(--accent);
}
.section-sub {
  font-size: clamp(14px,1.6vw,17px); color: var(--text-soft);
  line-height: 1.7;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px,3vw,36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  cursor: default;
}
.feat-card:hover, .feat-card:focus-visible {
  border-color: rgba(185,134,114,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(185,134,114,0.15);
  outline: none;
}
.feat-card--wide { grid-column: span 2; }
.feat-card--accent {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(185,134,114,0.1) 0%, var(--bg-card) 60%);
  border-color: rgba(185,134,114,0.25);
}
.feat-card-icon { font-size: 28px; line-height: 1; }
.feat-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px,2vw,24px); font-weight: 600;
  color: var(--text);
}
.feat-card-desc {
  font-size: clamp(13px,1.2vw,15px);
  color: var(--text-soft); line-height: 1.65;
  flex: 1;
}
.feat-card-tag {
  display: inline-block; margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--accent-dim);
}

/* Reveal stagger for grid */
.js-anims .feat-grid .reveal:nth-child(1) { transition-delay: 0s; }
.js-anims .feat-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-anims .feat-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-anims .feat-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.js-anims .feat-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ── Marquee ── */
.marquee-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 32px; white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}
.marquee-track .sep { color: var(--accent); opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Pricing ── */
#pricing {
  position: relative;
  padding: clamp(80px,10vw,140px) 0;
}
.pricing-bg {
  position: absolute; inset: 0; z-index: 0;
}
.pricing-bg img {
  height: 100%; object-position: center;
  filter: saturate(0.4) brightness(0.25);
}
.pricing-tint {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(9,9,11,0.75) 40%,
    rgba(9,9,11,0.75) 60%,
    var(--bg) 100%
  );
}
#pricing .container { position: relative; z-index: 1; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: rgba(28,28,31,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px,3vw,40px);
  position: relative;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); }

.plan-card--featured {
  border-color: rgba(185,134,114,0.45);
  box-shadow: 0 0 0 1px rgba(185,134,114,0.2), 0 24px 64px rgba(0,0,0,0.5);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(185,134,114,0.4), 0 32px 80px rgba(0,0,0,0.6),
              0 0 48px rgba(185,134,114,0.12);
}
.plan-card--gold {
  border-color: rgba(201,164,90,0.3);
  background: linear-gradient(145deg, rgba(28,28,31,0.95) 0%, rgba(20,16,10,0.95) 100%);
}

.plan-badge {
  display: inline-block; margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
}
.plan-badge--free  { border: 1px solid var(--line); color: var(--text-mute); }
.plan-badge--silver { background: var(--accent-dim); border: 1px solid rgba(185,134,114,0.35); color: var(--accent); }
.plan-badge--gold  { background: var(--gold-dim); border: 1px solid rgba(201,164,90,0.35); color: var(--gold); }

.plan-header { margin-bottom: 28px; }
.plan-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px,2.5vw,30px); font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.plan-amount {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px,4vw,50px); font-weight: 700;
  color: var(--text); line-height: 1;
}
.plan-period {
  font-size: 13px; color: var(--text-mute); font-weight: 400;
}
.plan-note {
  font-size: 11px; color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
}

.plan-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  flex: 1;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-soft); line-height: 1.5;
}
.check { color: var(--text-mute); font-weight: 600; flex-shrink: 0; margin-top: 1px; }
.check--accent { color: var(--accent); }
.check--gold   { color: var(--gold); }
.feat-missing { color: var(--text-mute); opacity: 0.5; }
.feat-note {
  font-size: 12px; color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em; margin-top: 4px;
}

.plan-cta {
  display: block; width: 100%; text-align: center;
  padding: 13px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: all var(--trans);
}
.plan-cta--ghost {
  border: 1px solid var(--line); color: var(--text-soft);
}
.plan-cta--ghost:hover { border-color: var(--accent); color: var(--accent); }
.plan-cta--primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.plan-cta--primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}
.plan-cta--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a87e36 100%);
  color: var(--bg); font-weight: 700;
}
.plan-cta--gold:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Reveal stagger for pricing */
.js-anims .pricing-grid .reveal:nth-child(1) { transition-delay: 0s; }
.js-anims .pricing-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.js-anims .pricing-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ── Contact ── */
#contact {
  padding: clamp(80px,10vw,140px) 0;
  position: relative;
}
#contact::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: start;
}
.contact-text .section-title { text-align: left; }
.contact-text .section-sub { text-align: left; }
.contact-detail {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px;
  font-size: 14px; color: var(--accent);
}
.contact-icon { font-size: 18px; }
.contact-detail a { color: var(--accent); transition: opacity var(--trans); }
.contact-detail a:hover { opacity: 0.7; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px,3vw,40px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-size: 12px; font-weight: 500;
  color: var(--text-mute); letter-spacing: 0.04em;
}
.form-row label span { color: var(--accent); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px; padding: 11px 14px;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none; width: 100%; resize: vertical;
  -webkit-appearance: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-mute); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(185,134,114,0.6);
  box-shadow: 0 0 0 3px rgba(185,134,114,0.1);
}
.form-row select { cursor: pointer; }
.form-row select option { background: var(--bg-3); }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--accent); color: var(--bg);
  border: none; font-size: 15px; font-weight: 600;
  transition: background var(--trans), transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-submit:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-submit:active { transform: translateY(0); }
.submit-icon { font-size: 18px; transition: transform var(--trans); }
.btn-submit:hover .submit-icon { transform: translateX(4px); }

.form-success {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--r-sm);
  background: rgba(185,134,114,0.1);
  border: 1px solid rgba(185,134,114,0.3);
  color: var(--accent); font-size: 14px;
  animation: fadeIn 0.4s ease;
}
.form-success[hidden] { display: none; }
.success-icon {
  font-size: 18px; color: var(--accent);
  background: var(--accent-dim); border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }

/* ── Footer ── */
#footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: #000;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 13px; color: var(--text-mute);
  font-family: 'Playfair Display', serif; font-style: italic;
}
.footer-links {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-size: 12px; color: var(--text-mute);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  font-size: 11px; color: var(--text-mute); margin-top: 8px;
}
.footer-credits-note {
  font-size: 10px; color: var(--text-mute); opacity: 0.5;
  max-width: 600px; text-align: center; line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-card--wide  { grid-column: span 1; }
  .feat-card--accent { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav:not(.mob-cta) { display: none; }
  .nav-burger { display: flex; }

  .hero-stats { gap: 20px; }
  .stat-sep { display: none; }

  .feat-grid { grid-template-columns: 1fr; }
  .feat-card--wide   { grid-column: span 1; }
  .feat-card--accent { grid-column: span 1; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-text .section-title,
  .contact-text .section-sub { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
