:root {
  --purple: #8c55f2;
  --purple-dark: #6b3fd4;
  --pink: #e770ff;
  --bg: #ffffff;
  --bg-alt: #f6f4fc;
  --card: #ffffff;
  --border: rgba(20,10,40,0.09);
  --text: #1a1327;
  --text-dim: #665f7a;
  --radius: 1.2rem;
}

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

body {
  font-family: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
code { background: rgba(140,85,242,0.15); border: 1px solid rgba(140,85,242,0.3); padding: 0.1rem 0.45rem; border-radius: 0.4rem; font-size: 0.9em; }
strong { color: var(--text); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.2rem; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.logo span { background: linear-gradient(100deg, var(--purple) 15%, var(--pink) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-mark { height: 1.7rem; width: auto; vertical-align: middle; margin-right: 0.5rem; }
.nav nav { display: flex; gap: 2rem; }
.nav nav a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.btn-primary { background: linear-gradient(100deg, #b48dfd 0%, var(--purple-dark) 100%); color: #fff; box-shadow: inset 0 -1px 1px rgba(255,255,255,0.5), 0 8px 24px rgba(140,85,242,0.28); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 -1px 1px rgba(255,255,255,0.5), 0 12px 30px rgba(140,85,242,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-dark); }
.btn-ghost { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); padding: 0.55rem 1.3rem; }
.btn-ghost:hover { background: #ece7f9; }

.cta-row { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* hero */
.hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; text-align: center; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 40rem; background: radial-gradient(60% 60% at 50% 20%, rgba(140,85,242,0.18), transparent 70%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); background: rgba(140,85,242,0.12); border: 1px solid rgba(140,85,242,0.35); padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.grad-text { background: linear-gradient(100deg, var(--purple) 10%, var(--pink) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { max-width: 640px; margin: 1.5rem auto 0; color: var(--text-dim); font-size: 1.1rem; }

/* media placeholders */
.media-frame { border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, var(--bg-alt), #fff); box-shadow: 0 20px 60px rgba(90,60,160,0.12); overflow: hidden; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 2rem; text-align: center; color: var(--text-dim); }
.ph-icon { font-size: 2.4rem; opacity: 0.8; }
.ph-label { color: var(--text); font-weight: 600; }
.ph-sub { font-size: 0.85rem; color: var(--text-dim); }
.dropdown-mock { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.8rem 1rem; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }
.dropdown-mock .hl { color: var(--purple-dark); font-weight: 700; }

.video-frame { aspect-ratio: 16/9; margin-top: 3rem; max-width: 900px; width: 100%; }
.device-frame { aspect-ratio: 16/9; margin: 2.5rem 0; }
.device-frame.small { aspect-ratio: 4/3; margin: 0; }
.vertical-frame { aspect-ratio: 9/16; }

/* name decode */
.decode { text-align: center; padding: 1.5rem 0 2.5rem; }
.decode-inner { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; font-size: 1.4rem; font-weight: 700; }
.decode-source { color: var(--text-dim); font-weight: 600; }
.decode-source b { color: var(--purple-dark); font-weight: 800; }
.decode-arrow { color: var(--text-dim); font-weight: 400; opacity: 0.6; }
.decode-tag { letter-spacing: 0.08em; background: var(--bg-alt); border: 1px solid var(--border); padding: 0.3rem 0.9rem; border-radius: 0.6rem; color: var(--purple-dark); }
.decode-name { background: linear-gradient(100deg, var(--purple) 10%, var(--pink) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.decode-name i { font-style: normal; opacity: 0.5; -webkit-text-fill-color: var(--text-dim); }
.decode-caption { margin-top: 1rem; color: var(--text-dim); font-size: 0.95rem; }

/* strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 1.4rem 0; }
.strip-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; color: var(--text-dim); }

/* sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.kicker { color: var(--purple); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
.section-sub { color: var(--text-dim); max-width: 700px; font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 6px 20px rgba(90,60,160,0.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(100deg, var(--purple), var(--pink)); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; max-width: 700px; }
.ba-col { display: flex; flex-direction: column; gap: 0.8rem; }
.ba-tag { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }
.ba-before { background: rgba(255,99,99,0.15); color: #ff8f8f; border: 1px solid rgba(255,99,99,0.3); }
.ba-after { background: rgba(120,220,150,0.15); color: #8ff0ab; border: 1px solid rgba(120,220,150,0.3); }

.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 6px 20px rgba(90,60,160,0.06); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-dim); font-size: 0.95rem; }

.story p + p { margin-top: 1.1rem; }
.story { max-width: 800px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li { color: var(--text-dim); padding-left: 1.6rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final h2 { max-width: 600px; margin: 0 auto; }

/* about + contact */
.about-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(90,60,160,0.18); }
.about-copy .section-sub { margin-top: 0.5rem; }
.about-links { margin-top: 1rem; font-size: 0.95rem; }
.about-links a { color: var(--purple-dark); text-decoration: none; font-weight: 600; }
.about-links a:hover { text-decoration: underline; }
.about-links .sep { color: var(--text-dim); margin: 0 0.5rem; }

.contact-form { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 30px rgba(90,60,160,0.08); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.form-row input, .form-row textarea {
  font: inherit; padding: 0.7rem 0.9rem; border-radius: 0.6rem; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--purple); background: #fff; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
.contact-status { font-size: 0.9rem; color: var(--text-dim); }
.contact-status.success { color: #1c9a5b; }
.contact-status.error { color: #d64545; }

@media (max-width: 700px) {
  .about-wrap { grid-template-columns: 1fr; text-align: center; }
  .about-photo img { width: 140px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-dim); font-size: 0.85rem; }
.footer-inner a { color: var(--purple-dark); text-decoration: none; font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .nav nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; max-width: 380px; }
  .faq-list { grid-template-columns: 1fr; }
}
