/* ============================================
   YOKOSO Desk — Marketing Site Styles
   Light, warm theme for Japanese hospitality
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #faf9f7;
  --bg-alt: #f3f1ed;
  --bg-card: #ffffff;
  --bg-dark: #0a0a0a;
  --border: #e8e5df;
  --border-hover: #d0cdc6;
  --text: #3d3d3d;
  --text-heading: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-dim: #9a9a9a;
  --accent: #4ecdc4;
  --accent-hover: #3db8b0;
  --accent-soft: rgba(78, 205, 196, 0.1);
  --warning: #f0b429;
  --error: #e5534b;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 12px;
  --max-width: 1120px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Japanese pages get JP font as primary */
body.lang-ja {
  font-family: var(--font-jp), var(--font-body);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Language switcher */
.lang-switch {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 20px;
  margin-left: 4px;
}

.lang-switch a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--accent);
}

.lang-switch .sep {
  margin: 0 6px;
  color: var(--border);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 580px;
}

.hero-jp {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* ============================================
   WHAT WE DO — 3-column cards
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS — 4-step flow
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

/* Connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   PRODUCTS — alternating feature blocks
   ============================================ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.product:last-child {
  margin-bottom: 0;
}

.product.reverse .product-info {
  order: 2;
}

.product.reverse .product-terminal {
  order: 1;
}

.product-label {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.25;
}

.product-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Terminal block — stays dark for contrast */
.terminal {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid #222;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: #666;
  margin-left: 8px;
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  overflow-x: auto;
  color: #ccc;
}

.terminal-body .t-time {
  color: #555;
}

.terminal-body .t-action {
  color: #ccc;
}

.terminal-body .t-success {
  color: #4ecdc4;
}

.terminal-body .t-warn {
  color: #ffd93d;
}

.terminal-body .t-error {
  color: #ff6b6b;
}

.terminal-body .t-arrow {
  color: #555;
}

/* ============================================
   RESULTS / SOCIAL PROOF
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.stat {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.case-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.case-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.case-card-oneliner {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
}

.case-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.case-card-relevance {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

.case-card-relevance strong {
  color: var(--text-muted);
}

.pilot-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.pilot-note strong {
  color: var(--text-heading);
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  text-align: center;
}

.contact .section-heading {
  margin-bottom: 24px;
}

.contact-email {
  font-size: 1.3rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent-hover);
}

.contact-location {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product.reverse .product-info {
    order: 1;
  }

  .product.reverse .product-terminal {
    order: 2;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .case-studies {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .container {
    padding: 0 16px;
  }
}
