/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8f9fa;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #1e293b;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.accent {
  color: #14919b;
}

.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.icon-small {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.lang-switcher .icon-small {
  vertical-align: -0.2em;
  filter: brightness(0) saturate(100%) invert(48%) sepia(7%) saturate(928%) hue-rotate(177deg) brightness(93%) contrast(89%);
}

.lang-switcher:hover .icon-small {
  filter: brightness(0) saturate(100%) invert(53%) sepia(33%) saturate(1043%) hue-rotate(138deg) brightness(91%) contrast(91%);
}

.inline-icon {
  width: 18px;
  height: 18px;
  vertical-align: -0.2em;
  display: inline;
  filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(907%) hue-rotate(177deg) brightness(93%) contrast(89%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.lang-switcher:hover {
  color: #14919b;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14919b;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: #17a2ae;
}

.icon-nav {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero {
  background: white;
  padding: 80px 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 64px;
}

.hero-logo {
  width: 72px;
  height: 72px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.hero-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14919b;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #17a2ae;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #56657a;
  padding: 14px 28px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}

.btn-secondary img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(9%) saturate(850%) hue-rotate(177deg) brightness(94%) contrast(89%);
}

.btn-secondary:hover img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(10%) saturate(843%) hue-rotate(177deg) brightness(95%) contrast(90%);
}

.hero-note {
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-system-requirements {
  margin: 16px 0;
}

.hero-system-requirements table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
}

.hero-system-requirements td {
  padding: 4px 0;
  font-size: 0.75rem;
}

.hero-system-requirements td:first-child {
  color: #94a3b8;
  width: 40%;
}

.hero-system-requirements td:last-child {
  color: #64748b;
  font-weight: 500;
}

.hero-preview {
  position: relative;
}

.preview-image {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #f8fafc;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: #dcfaf5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: #14919b;
}

.feature-card p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
  background: #f8f9fa;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.screenshot-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.screenshot-img {
  cursor: pointer;
  transition: all 0.2s;
}

.screenshot-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.screenshot-caption {
  margin-top: 12px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #14919b;
}

#modalCaption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

/* How to Use Section */
.how-to-use {
  padding: 80px 0;
  background: white;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #14919b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content p {
  color: #64748b;
  line-height: 1.7;
}

/* Download Section */
.download {
  padding: 80px 0;
  background: #dcfaf5;
}

.download-container {
  text-align: center;
}

.download-version {
  margin-bottom: 48px;
  color: #64748b;
  line-height: 1.8;
}

.system-requirements {
  display: inline-block;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
  text-align: left;
  max-width: 500px;
  width: 100%;
}

.system-requirements h3 {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.system-requirements table {
  width: 100%;
  border-collapse: collapse;
}

.system-requirements td {
  padding: 12px 0;
  font-size: 0.9375rem;
}

.system-requirements td:first-child {
  color: #64748b;
  width: 40%;
}

.system-requirements td:last-child {
  font-weight: 500;
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.download-instructions {
  max-width: 500px;
  width: 100%;
  text-align: left;
}

.instructions-title {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #334155;
}

.download-instructions ol {
  margin: 0 0 12px 20px;
  padding: 0;
}

.download-instructions li {
  padding: 4px 0;
  color: #334155;
  line-height: 1.6;
}

.download-instructions .note {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}


.download-note {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  color: #14919b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

footer a:hover {
  color: #17a2ae;
}

footer a img {
  filter: brightness(0) saturate(100%) invert(53%) sepia(33%) saturate(1043%) hue-rotate(138deg) brightness(91%) contrast(91%);
}

footer a:hover img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(25%) saturate(1200%) hue-rotate(138deg) brightness(95%) contrast(95%);
}

footer p {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features,
  .screenshots,
  .how-to-use,
  .download {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}