/* ==========================================================================
   YOH-TECH Corporation — shared design system
   ========================================================================== */

:root {
  --bg: #0a0c12;
  --bg-soft: #10131c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #edf0f7;
  --text-dim: #9aa3b8;
  --text-faint: #6b7385;
  --accent: #7c5cff;
  --accent-2: #34d6c9;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #34d6c9 100%);
  --danger: #ff6b6b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --max-width: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", "Hiragino Sans", sans-serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

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

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

button {
  font-family: inherit;
}

/* Background ambience -------------------------------------------------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.bg-glow::before {
  top: -20vmax;
  left: -10vmax;
  background: #7c5cff;
}

.bg-glow::after {
  bottom: -25vmax;
  right: -15vmax;
  background: #34d6c9;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}

/* Layout ----------------------------------------------------------------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 18, 0.65);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-gradient);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: var(--bg);
  clip-path: polygon(0 0, 55% 0, 100% 100%, 45% 100%);
}

.logo small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0a0c12;
  box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px -8px rgba(124, 92, 255, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  padding: 110px 0 90px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #ffffff 20%, #b8bfd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.08rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections ---------------------------------------------------------------*/

section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

/* Cards -------------------------------------------------------------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-strong);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #0a0c12;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.app-icon.lg {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-size: 2.2rem;
  margin: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(52, 214, 201, 0.1);
  border: 1px solid rgba(52, 214, 201, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-top: 10px;
}

/* About / feature list -------------------------------------------------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature-list .item h4 {
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list .item h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.feature-list .item p {
  font-size: 0.92rem;
  margin: 0;
}

/* CTA banner --------------------------------------------------------- */

.cta-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(52, 214, 201, 0.1));
  padding: 56px 40px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 14px;
}

.cta-banner p {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Breadcrumb ------------------------------------------------------------ */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--text);
}

/* Support page header --------------------------------------------------- */

.support-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 56px 0 40px;
  flex-wrap: wrap;
}

.support-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 6px;
}

.support-hero .lead {
  margin: 0;
  color: var(--text-dim);
}

.quick-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 0;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quick-links a:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.18);
}

/* FAQ accordion ----------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-question .icon::before,
.faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
  transition: opacity 0.2s ease;
}

.faq-question .icon::before {
  width: 9px;
  height: 1.5px;
}

.faq-question .icon::after {
  width: 1.5px;
  height: 9px;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
  border-color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
  font-size: 0.94rem;
}

/* Contact box ------------------------------------------------------- */

.contact-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 40px;
  text-align: center;
}

.contact-box .btn {
  margin-top: 8px;
}

.contact-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.info-grid .item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface);
}

.info-grid .item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.info-grid .item .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Legal / policy content ------------------------------------------------- */

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.legal ul {
  color: var(--text-dim);
}

.legal .updated {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.callout {
  border: 1px dashed rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 24px 0;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.copyright {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* App message (support pages) ------------------------------------------- */

.app-message {
  position: relative;
  max-width: 760px;
  margin: 8px 0 36px;
  padding: 26px 28px 22px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.app-message::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent-gradient);
}

.app-message p {
  line-height: 1.95;
}

.app-message-lead {
  font-family: "Space Grotesk", "Inter", "Hiragino Sans", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--text) !important;
  line-height: 1.5 !important;
  margin-bottom: 0.8em;
}

.app-message-close {
  color: var(--text) !important;
  font-weight: 600;
  margin-bottom: 0.6em;
}

.app-message-link {
  font-size: 0.88rem;
  color: var(--accent-2);
}

.app-message-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .app-message { padding: 20px 18px 18px 22px; }
  .app-message br { display: none; }
}

/* Utility ----------------------------------------------------------- */

.reveal {
  animation: fade-up 0.7s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(10, 12, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  nav.main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav.main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 72px 0 60px;
  }

  section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
