/* ========================================
   Rato Lab
   ======================================== */
:root {
  --bg: #080b12;
  --bg-secondary: #0e131d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text: #f4f6fb;
  --text-secondary: #a8afbd;
  --accent: #766cff;
  --accent-light: #a69fff;
  --radius: 24px;
}
/* ========================================
   Base
   ======================================== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(93, 77, 255, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(194, 64, 255, 0.11),
      transparent 25%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.7;
}
a {
  text-decoration: none;
}
/* ========================================
   Navigation
   ======================================== */
.navbar {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-brand {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.navbar-brand:hover {
  color: #fff;
}
.nav-link {
  color: var(--text-secondary);
  margin-left: 20px;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: #fff;
}
/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content {
  max-width: 850px;
}
.hero-label,
.section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.hero h1 {
  margin-bottom: 25px;
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.07em;
  background: linear-gradient(
    120deg,
    #ffffff 20%,
    #bbb7ff 70%,
    #e2b7ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 700px;
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* ========================================
   Buttons
   ======================================== */
.btn {
  border-radius: 100px;
  padding: 12px 24px;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #887fff;
  border-color: #887fff;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-light:hover {
  color: #111;
  background: #fff;
}
/* ========================================
   Sections
   ======================================== */
.apps-section,
.about-section,
.contact-section {
  padding: 100px 0;
}
.section-heading {
  margin-bottom: 50px;
}
.section-heading h2,
.about-section h2,
.contact-section h2 {
  margin-bottom: 15px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.05em;
}
.section-heading p,
.about-section p,
.contact-section p {
  color: var(--text-secondary);
}
/* ========================================
   App Cards
   ======================================== */
.app-card {
  height: 100%;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}
.app-card:hover {
  transform: translateY(-7px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.app-icon-link {
  display: inline-block;
  margin-bottom: 28px;
  border-radius: 23%;
}
.app-icon {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 23%;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.app-icon-link:hover .app-icon {
  transform: scale(1.04);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36);
}
.app-card-body {
  display: flex;
  flex-direction: column;
  min-height: 225px;
}
.app-category {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}
.app-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}
.app-link:hover {
  gap: 14px;
  color: var(--accent-light);
}
/* ========================================
   About
   ======================================== */
.about-box {
  padding: clamp(32px, 6vw, 70px);
  background:
    linear-gradient(
      135deg,
      rgba(118, 108, 255, 0.10),
      rgba(255, 255, 255, 0.03)
    );
  border: 1px solid var(--border);
  border-radius: 32px;
}
.about-stats {
  display: grid;
  gap: 16px;
}
.stat {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.stat strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1.3rem;
}
.stat span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
/* ========================================
   GitHub
   ======================================== */
.github-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.github-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.github-links a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
/* ========================================
   Contact
   ======================================== */
.contact-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-mail {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 650;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.contact-mail:hover {
  color: var(--accent-light);
}
/* ========================================
   Footer
   ======================================== */
footer {
  margin-top: 60px;
  padding: 55px 0 30px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-brand strong {
  color: #fff;
  font-size: 1.2rem;
}
.footer-brand p {
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}
.copyright {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #717988;
  font-size: 0.8rem;
}
/* ========================================
   Accessibility / Selection
   ======================================== */
::selection {
  color: #fff;
  background: rgba(118, 108, 255, 0.65);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}
/* ========================================
   Mobile
   ======================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    padding-top: 18px;
  }
  .nav-link {
    margin-left: 0;
  }
  .hero {
    min-height: 620px;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 170px;
    padding-bottom: 100px;
  }
  .hero h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }
  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .apps-section,
  .about-section,
  .contact-section {
    padding: 75px 0;
  }
  .app-card {
    padding: 24px;
  }
  .app-icon {
    width: 88px;
    height: 88px;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
/* ========================================
   Privacy Page
   ======================================== */
.privacy-hero {
  padding-top: 190px;
  padding-bottom: 70px;
}
.privacy-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(
    120deg,
    #ffffff 20%,
    #bbb7ff 70%,
    #e2b7ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.privacy-lead {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.privacy-section {
  padding: 20px 0 100px;
}
.privacy-content {
  max-width: 920px;
  margin: 0 auto;
}
.privacy-content h2 {
  margin-top: 60px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.privacy-content p {
  color: var(--text-secondary);
}
.privacy-list {
  padding-left: 1.3rem;
  color: var(--text-secondary);
}
.privacy-list li {
  margin-bottom: 8px;
}
/* App privacy links */
.privacy-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.privacy-app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.privacy-app-card:hover {
  transform: translateY(-3px);
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.privacy-app-card img {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 16px;
}
.privacy-app-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
}
.privacy-app-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
/* Mail */
.privacy-mail {
  color: var(--accent-light);
  font-weight: 600;
}
.privacy-mail:hover {
  color: #fff;
}
/* Updated */
.privacy-updated {
  margin-top: 70px;
  padding-top: 24px;
  color: #737b89;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
/* Privacy mobile */
@media (max-width: 767px) {
  .privacy-hero {
    padding-top: 150px;
    padding-bottom: 50px;
  }
  .privacy-section {
    padding-bottom: 75px;
  }
  .privacy-content h2 {
    margin-top: 45px;
  }
  .privacy-app-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   App Detail Pages
   Shared by all 8 app pages
   ======================================== */
.app-detail-hero {
  padding-top: 165px;
  padding-bottom: 70px;
}
.app-detail-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.app-detail-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.app-detail-icon {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.app-detail-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.app-detail-title {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  background: linear-gradient(120deg, #fff 20%, #bbb7ff 70%, #e2b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-detail-lead {
  max-width: 700px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.detail-btn:hover { transform: translateY(-2px); }
.detail-btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.detail-btn-primary:hover {
  color: #fff;
  background: #887fff;
  border-color: #887fff;
}
.detail-btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}
.detail-btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}
.app-detail-section { padding: 25px 0 90px; }
.detail-panel {
  padding: clamp(26px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
}
.detail-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.detail-panel p,
.detail-panel li { color: var(--text-secondary); }
.detail-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.detail-features li {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 17px;
}
.detail-features strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}
.detail-note {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--text-secondary);
  background: rgba(166, 159, 255, 0.06);
  border: 1px solid rgba(166, 159, 255, 0.18);
  border-radius: 16px;
  font-size: 0.92rem;
}
.app-detail-back {
  display: inline-flex;
  margin-top: 26px;
  color: var(--accent-light);
  font-weight: 650;
}
@media (max-width: 767px) {
  .app-detail-hero {
    padding-top: 140px;
    padding-bottom: 50px;
  }
  .app-detail-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .app-detail-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }
  .app-detail-actions { flex-direction: column; }
  .detail-btn { width: 100%; }
  .detail-features { grid-template-columns: 1fr; }
}
