/* ========================================
   micro Landing Page
   Aesthetic: Dark utility, Japanese precision
   Accent: #E87040 (warm orange)
   ======================================== */

:root {
  --bg: #08060A;
  --bg-card: #0F0D11;
  --bg-card-hover: #141218;
  --accent: #E87040;
  --accent-soft: rgba(232, 112, 64, 0.12);
  --accent-glow: rgba(232, 112, 64, 0.06);
  --text: #E8E4E0;
  --text-dim: rgba(232, 228, 224, 0.5);
  --text-dimmer: rgba(232, 228, 224, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(232, 112, 64, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-mono: 'DM Mono', 'Space Mono', monospace;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
kbd.key {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
}

kbd.key--sm {
  padding: 2px 8px;
  font-size: 0.78em;
  border-bottom-width: 2px;
}

.key-plus {
  display: inline-block;
  margin: 0 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(232, 112, 64, 0), 0 2px 8px rgba(0,0,0,0.3);
}

.btn--primary:hover {
  background: #F08050;
  box-shadow: 0 0 24px rgba(232, 112, 64, 0.25), 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  text-decoration: none;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 112, 64, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* App name */
.hero-app-name {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.7s ease-out both;
}

.title-line--1 { animation-delay: 0.1s; }
.title-line--2 { animation-delay: 0.25s; }

.title-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-dimmer);
  line-height: 2;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease-out 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease-out 0.6s both;
}

/* Hero Video */
.hero-visual {
  display: none;
}

@media (min-width: 1080px) {
  .hero {
    flex-direction: row;
    gap: 80px;
    padding: 80px 60px;
  }

  .hero-content {
    text-align: left;
    flex-shrink: 0;
    max-width: 50%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    display: block;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
  }
}

.hero-video-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(232, 112, 64, 0.05);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature video containers */
.feature-video-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  max-width: 100%;
}

.feature-video-container--youtube {
  margin-top: 20px;
  border-radius: var(--radius);
}

.feature-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Keystroke Hint */
.keystroke-hint {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.keystroke-keys {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(15, 13, 17, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(232, 112, 64, 0.1);
}

.keystroke-key {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-width: 3px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}

.keystroke-key.pressed {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 0 12px rgba(232, 112, 64, 0.3);
}

.keystroke-plus {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dimmer);
}


/* ========================================
   PAIN SECTION
   ======================================== */
.pain {
  padding: 80px 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pain-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s;
}

.pain-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pain-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.pain-text strong {
  color: #fff;
}

.pain-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dimmer);
}

.pain-solution {
  text-align: center;
  padding: 40px 0 0;
}

.pain-arrow {
  margin-bottom: 16px;
}

.pain-solution-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}


/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: 60px 0 80px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.heading-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.heading-text {
  font-size: 28px;
  font-weight: 700;
}

.feature-row {
  margin-bottom: 16px;
}

.feature-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 680px) {
  .feature-row--two {
    grid-template-columns: 1fr;
  }
}

.feature-block {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
  min-width: 0;
  overflow: hidden;
}

.feature-block:hover {
  border-color: rgba(255,255,255,0.1);
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 24px;
}

/* Demo steps for shortcut feature */
.feature-demo-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
}

.demo-step-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.demo-step-arrow {
  color: var(--text-dimmer);
  font-family: var(--font-mono);
}

/* Capture visual */
.feature-visual-capture {
  position: relative;
}

.capture-screen {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.capture-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.capture-selection {
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  bottom: 20px;
  border: 2px solid var(--accent);
  background: rgba(232, 112, 64, 0.05);
  animation: captureFlash 3s ease-in-out infinite;
}

.capture-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}

.capture-corner--tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; }
.capture-corner--tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; }
.capture-corner--bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; }
.capture-corner--br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; }

/* Selection demo visual */
.feature-visual-selection {
  display: flex;
  justify-content: center;
}

.selection-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selection-text {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dimmer);
  line-height: 1.7;
}

.selection-highlight {
  background: rgba(232, 112, 64, 0.18);
  border-radius: 2px;
  padding: 1px 0;
  color: var(--text-dim);
}

.selection-shortcut {
  text-align: center;
  padding: 6px 0;
}

.selection-result {
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}


/* ========================================
   HOW / USE CASES SECTION
   ======================================== */
.how {
  padding: 60px 0 80px;
}

.use-cases {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.use-case {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.use-case:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.use-case:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.use-case:hover {
  border-color: rgba(255,255,255,0.1);
}

.use-case-scene {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 60px;
}

.use-case-emoji {
  font-size: 24px;
}

.use-case-when {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}

.use-case-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.9;
}

@media (max-width: 580px) {
  .use-case {
    flex-direction: column;
    gap: 12px;
  }
  .use-case-scene {
    flex-direction: row;
    width: auto;
    gap: 8px;
  }
}


/* ========================================
   SPECS SECTION
   ======================================== */
.specs {
  padding: 60px 0 80px;
}

.specs-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 680px) {
  .specs-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.spec-value--text {
  font-size: 28px;
}

.spec-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 2px;
}

.spec-label {
  font-size: 12px;
  color: var(--text-dimmer);
}

.spec-card--highlight {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--bg-card) 100%);
}

.pricing-plan-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.spec-card--highlight .pricing-plan-name {
  color: var(--accent);
}

.pricing-features {
  list-style: none;
  margin-top: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.pricing-common {
  font-size: 13px;
  color: var(--text-dimmer);
  text-align: center;
  margin-bottom: 32px;
}

.specs-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  font-size: 13px;
}

.spec-detail-label {
  color: var(--text-dimmer);
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}

.spec-detail-value {
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 580px) {
  .spec-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .spec-detail-value {
    text-align: left;
  }
}


/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.download {
  padding: 60px 0 100px;
}

.download-card {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}

.download-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
}

.download-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 32px;
}

.download-actions {
  margin-bottom: 20px;
}

.download-note {
  font-size: 12px;
  color: var(--text-dimmer);
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.footer-sep {
  color: var(--text-dimmer);
}

.footer-tagline {
  color: var(--text-dimmer);
}


/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes captureFlash {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
