/* PhotoNeat — adapted from WiboWalls site.css */

:root {
  --bg: #0c1222;
  --bg-elevated: #121a2e;
  --text: #e8ecf4;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 14px;
  --max: 720px;
  --font: ui-sans-serif, system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.site-header .inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a.active {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(14, 165, 233, 0.12);
}
.nav-links a:hover {
  text-decoration: none;
  color: var(--text);
}

.lang-select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent-dim);
  color: var(--text);
}
.lang-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--muted);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Wrap */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 28px 0 40px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0 auto 28px;
}

/* Features */
.features h2,
.tech-stack h2,
.download-section h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tech Stack */
.tech-stack {
  margin-bottom: 48px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tech-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.tech-item strong {
  color: var(--text);
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 48px 0;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.app-store-badge:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.app-store-badge .badge-icon {
  font-size: 28px;
}
.app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.app-store-badge .badge-subtitle {
  font-size: 11px;
  opacity: 0.9;
}
.app-store-badge .badge-title {
  font-size: 17px;
  font-weight: 600;
}
.app-store-badge.disabled {
  opacity: 0.4;
  pointer-events: none;
  background: linear-gradient(135deg, #475569, #334155);
}

/* Legal Pages */
.legal {
  max-width: var(--max);
  margin: 0 auto;
}
.legal h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal p,
.legal li {
  color: #cbd5e1;
  font-size: 0.98rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal ul li {
  margin-bottom: 6px;
}
.legal a {
  color: var(--accent);
}
.legal strong {
  color: var(--text);
}
.legal .back-link {
  display: inline-block;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px;
    gap: 8px;
    z-index: 99;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
