/* Landing page design system — リーガルAI窓口 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --color-primary-50: #fff7ed;
  --color-primary-100: #ffedd5;
  --color-primary-200: #fed7aa;
  --color-primary-300: #fdba74;
  --color-primary-400: #fb923c;
  --color-primary-500: #f97316;
  --color-primary-600: #ea580c;
  --color-primary-700: #c2410c;
  --color-primary-800: #9a3412;
  --color-primary-900: #7c2d12;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
}

/* Base typography */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Password gate overlay */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-50), white);
}

.password-gate.hidden {
  display: none;
}

.password-form {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 100%;
  margin: 1rem;
  text-align: center;
}

.password-form h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.password-form p {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.password-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.password-form input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.password-form button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: linear-gradient(to right, var(--color-primary-600), var(--color-primary-500));
  color: white;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.password-form button:hover {
  opacity: 0.9;
}

.password-form .error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ffffff 50%, var(--color-primary-100) 100%);
}

/* Card hover effect */
.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Icon container */
.icon-box {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Step connector (horizontal line between steps) */
@media (min-width: 768px) {
  .step-connector {
    position: relative;
  }
  .step-connector::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: var(--color-gray-200);
  }
  .step-connector:last-child::after {
    display: none;
  }
}

/* Browser chrome frame for screenshots */
.browser-frame {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.browser-frame-header {
  background: var(--color-gray-100);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.browser-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--color-gray-300);
}

.browser-frame-body {
  position: relative;
  background: var(--color-gray-50);
}

.browser-frame-body img {
  width: 100%;
  display: block;
}

/* Screenshot placeholder (when no actual screenshot exists) */
.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  padding: 2rem;
}

/* CTA gradient section */
.cta-gradient {
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-500) 100%);
}

/* Step number badge */
.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
