/* FreqPrism brand site */
:root {
  --bg: #07080d;
  --bg-panel: #0d0f17;
  --bg-input: #131625;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --text-dim: #9aa0b4;
  --text-faint: #6b7186;
  --cyan: #39d8e8;
  --violet: #8b7bf7;
  --magenta: #e86ad0;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --radius: 18px;
  --maxw: 980px;
}

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

html { scroll-behavior: smooth; }

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

.en {
  font-family: "Avenir Next", "Futura", -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

a { color: inherit; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.7);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand svg { display: block; }

.nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.nav .lang-switch {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.nav .lang-switch:hover { border-color: rgba(255, 255, 255, 0.24); }

@media (max-width: 480px) {
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 20px 12px;
    row-gap: 8px;
  }
  .nav { width: 100%; justify-content: flex-end; gap: 16px; font-size: 12.5px; }
  .nav .lang-switch { padding: 3px 9px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 36px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 320px at 30% 20%, rgba(57, 216, 232, 0.10), transparent 70%),
    radial-gradient(600px 320px at 70% 30%, rgba(139, 123, 247, 0.10), transparent 70%),
    radial-gradient(500px 300px at 50% 90%, rgba(232, 106, 208, 0.06), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.hero-badge svg { display: block; }

.hero-badge span {
  font-size: 13px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 48px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline-ja {
  margin-top: 16px;
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--text-dim);
  letter-spacing: 0.14em;
}

/* ---------- apps ---------- */
.apps {
  padding-top: 16px;
  padding-bottom: 40px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width: 760px) {
  .apps-grid { grid-template-columns: 1fr; }
}

.app-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: var(--accent-line, var(--grad));
  opacity: 0.7;
}

.app-card .app-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
}

.app-card h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-card .app-sub {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: -8px;
}

.app-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0a0b10;
  background: var(--accent-btn, var(--grad));
  transition: filter 0.2s, transform 0.2s;
}

.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.card-otoe {
  --accent-line: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  --accent-btn: linear-gradient(100deg, var(--cyan), var(--violet));
}

.card-stemscape {
  --accent-line: linear-gradient(90deg, transparent, var(--violet), var(--magenta), transparent);
  --accent-btn: linear-gradient(100deg, var(--violet), var(--magenta));
}

/* ---------- privacy note ---------- */
/* deliberately flat (no card panel/radius) so it doesn't read as a third clickable tile next to the app cards */
.local-note {
  margin: 46px 0 26px;
}

.local-note .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 2px;
}

.local-note svg { flex-shrink: 0; }

.local-note strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.local-note p {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- static pages (about/privacy/terms/contact) ---------- */
.page {
  padding-top: 70px;
  padding-bottom: 90px;
  max-width: 720px;
}

.page h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page .page-sub {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 44px;
}

.page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.page p, .page li {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.page ul { padding-left: 22px; margin-bottom: 16px; }

.page a { color: var(--cyan); text-decoration: none; }
.page a:hover { text-decoration: underline; }

.page .updated {
  margin-top: 56px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 44px 0 54px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
}

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

.footer-links div { display: flex; flex-direction: column; gap: 8px; }

.footer-links .col-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.copyright {
  margin-top: 36px;
  font-size: 12px;
}
