/* ============================================================
   NeoPadio — interactive minimal landing
   Tokens: #F7F7F5 / #111111 / #0F6E56
   ============================================================ */

:root {
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --border: #E6E6E1;
  --border-md: rgba(0, 0, 0, 0.09);
  --ink: #111111;
  --ink-2: #5F5F5A;
  --ink-3: #A6A6A0;
  --green: #0F6E56;
  --green-lt: #EAF3EF;
  --green-glow: rgba(15, 110, 86, 0.14);
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px -14px rgba(17, 17, 17, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1080px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; }

::selection { background: var(--green); color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

/* ============================================================
   CURSOR GLOW — follows the mouse across the hero
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease;
  will-change: transform;
  mix-blend-mode: normal;
}
.cursor-glow.active { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
  display: block;
  transition: box-shadow 0.3s ease;
}
.brand:hover .brand-logo {
  box-shadow: inset 0 0 0 1px var(--green), 0 0 16px var(--green-glow);
}
.brand-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ============================================================
   HERO / PRELUDE
   ============================================================ */
.prelude {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* ambient orbs — slow organic movement */
.prelude-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.prelude-orb--1 {
  top: -200px; left: 45%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.065) 0%, transparent 68%);
  animation: orb-drift-1 20s ease-in-out infinite alternate;
}
.prelude-orb--2 {
  top: -80px; left: 55%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.04) 0%, transparent 68%);
  animation: orb-drift-2 26s ease-in-out infinite alternate;
  animation-delay: -8s;
}
.prelude-orb--3 {
  top: 60px; left: 40%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.03) 0%, transparent 68%);
  animation: orb-drift-3 16s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.1); }
}
@keyframes orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -40px) scale(1.06); }
}
@keyframes orb-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.12); }
}

.prelude-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding: 160px 48px 80px;
  z-index: 2;
}

/* ============================================================
   HEADING — two lines, staggered entrance, subtle parallax
   ============================================================ */
.prelude-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1020px;
  color: var(--ink);
  will-change: transform;
}
.title-line {
  display: block;
  overflow: hidden;
}
.title-line--sub {
  font-weight: 300;
  color: var(--ink-2);
  font-size: 0.68em;
  letter-spacing: -0.01em;
  margin-top: 0.08em;
}
.prelude-title em {
  position: relative;
  color: var(--green);
  font-style: italic;
}

/* character reveal animation */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(55%) rotateX(-40deg);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.char.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* keep spaces from collapsing */
.char--space {
  width: 0.3em;
}

/* ============================================================
   LEAD TEXT — soft fade-in from below
   ============================================================ */
.prelude-lead {
  color: var(--ink-2);
  font-size: 18.5px;
  font-weight: 300;
  line-height: 1.85;
  max-width: 540px;
  margin-top: 48px;
  letter-spacing: 0.005em;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
  will-change: transform;
}
.prelude-lead.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   CTA — the interactive invitation
   ============================================================ */
.cta-area {
  margin-top: 68px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
  will-change: transform;
}
.cta-area.in {
  opacity: 1;
  transform: none;
}

.try-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--green);
  padding: 22px 52px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition:
    background 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 0.9, 0.35, 1),
    box-shadow 0.4s ease;
  box-shadow:
    0 2px 8px rgba(15, 110, 86, 0.18);
}
.try-btn:hover {
  background: #0d5e49;
  box-shadow:
    0 0 0 6px var(--green-glow),
    0 8px 32px rgba(15, 110, 86, 0.28);
}
.try-btn:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}

/* pulsing ring — draws the eye on load */
.try-btn-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--green);
  opacity: 0;
  animation: pulse-ring 3s cubic-bezier(0.22, 0.9, 0.35, 1) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { opacity: 0.5; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* expanding ring on hover */
.try-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 0.9, 0.35, 1);
  pointer-events: none;
}
.try-btn:hover .try-btn-ring {
  opacity: 1;
  transform: scale(1.12);
}
.try-btn:hover .try-btn-pulse {
  animation: none;
  opacity: 0;
}

.try-btn-text {
  position: relative;
  z-index: 1;
}
.try-btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 19px;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.35, 1);
  display: inline-block;
}
.try-btn:hover .try-btn-arrow {
  transform: translateX(5px);
}

.cta-hint {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.6s ease 1.6s;
}
.cta-hint.in { opacity: 1; }

/* ---------- magnetic element base ---------- */
.magnetic {
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.35, 1);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-left .brand-logo { height: 38px; border-radius: 8px; }
.footer-left .brand-word { font-size: 28px; }
.footer-tag {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.footer-base {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.footer-link {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.15);
  text-underline-offset: 2px;
  transition: color .15s, text-decoration-color .15s;
}
.footer-link:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 24px; }
  .nav { height: 64px; }
  .brand-logo { height: 38px; }
  .brand-word { font-size: 24px; }
  .prelude-inner {
    padding: 100px 24px 64px;
    min-height: auto;
    min-height: calc(100svh - 64px);
  }
  .prelude-title { font-size: clamp(34px, 10vw, 52px); line-height: 1.06; }
  .title-line--sub { font-size: 0.72em; }
  .prelude-lead { font-size: 17px; margin-top: 36px; }
  .cta-area { margin-top: 52px; }
  .try-btn { padding: 18px 42px; font-size: 16px; }
  .cursor-glow { display: none; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .prelude-inner { padding-top: 88px; }
  .prelude-title { letter-spacing: -0.015em; }
  .prelude-lead { font-size: 16.5px; line-height: 1.8; }
  .try-btn { padding: 16px 36px; font-size: 15.5px; }
  .cta-hint { font-size: 12px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .char { opacity: 1; transform: none; filter: none; }
  .prelude-lead, .cta-area, .cta-hint { opacity: 1; transform: none; }
  .prelude-orb { animation: none; }
  .cursor-glow { display: none; }
}
