/* Landing Page Styles for ChatterBox */
/* nihongojouzu.club */

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

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #457b9d;
  --accent: #f4a261;
  --dark: #1d3557;
  --light: #f1faee;
  --bg: #fef9ef;
  --card: #ffffff;
  --text: #1d3557;
  --text-light: #457b9d;
  --shadow: rgba(29, 53, 87, 0.15);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.nw { white-space: nowrap; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: white;
}

.nav-cta {
  background: white;
  color: var(--primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-cta {
  display: none;
  background: white;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--primary);
}

.hero-cta {
  margin-bottom: 2rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-feature {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Dialogue Preview */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dialogue-preview {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--shadow);
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  transform: rotate(2deg);
}

.dialogue-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light);
}

.dialogue-icon {
  font-size: 1.25rem;
}

.dialogue-line {
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.dialogue-line .speaker {
  font-weight: 700;
  color: var(--secondary);
  margin-right: 0.5rem;
}

.dialogue-line .text {
  color: var(--dark);
}

.dialogue-translation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-xlarge {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

/* Features Section */
.features {
  background: linear-gradient(180deg, var(--light) 0%, var(--bg) 100%);
  padding: 5rem 0;
}

.features h2,
.how-it-works h2,
.faq h2,
.final-cta h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-center {
  text-align: center;
}

/* FAQ Section */
.faq {
  background: var(--light);
  padding: 5rem 0;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--light);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  margin-top: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, var(--dark) 0%, #0d1b2a 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.final-cta h2 {
  color: white;
}

.final-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.final-cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.final-cta-features span {
  font-weight: 600;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.footer-tagline {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-copyright {
  opacity: 0.6;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-cta {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .dialogue-preview {
    transform: none;
    max-width: 100%;
  }

  .features h2,
  .how-it-works h2,
  .faq h2,
  .final-cta h2 {
    font-size: 2rem;
  }

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

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

  .step {
    display: flex;
    text-align: left;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .final-cta-features {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-xlarge {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .dialogue-line {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .faq-item summary {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .faq-item p {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* News Feed Strip */
.news-feed-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-feed-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 0.25rem;
}

.news-chip {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.news-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.news-chip.new {
  border-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.news-chip.new:hover {
  background: rgba(230, 57, 70, 0.2);
  color: white;
}

@media (max-width: 480px) {
  .news-feed-strip {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
  }

  .news-feed-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.1rem;
  }
}
