/* OneCamera Global Styles */
:root {
  --bg-primary: #0A0A0A;
  --bg-elevated: #141414;
  --bg-card: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --text-dimmer: #52525B;
  --border-subtle: #27272A;
  --accent-purple: #A855F7;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;
  --accent-amber: #FBBF24;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --gradient-brand: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --gradient-bg: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #831843 100%);
  --shadow-glow: 0 12px 32px rgba(168, 85, 247, 0.4);
}

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

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  background: transparent;
  border: none;
  color: inherit;
  outline: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  display: block;
  object-fit: contain;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gradient-brand);
}
.nav-avatar img,
.nav-avatar {
  object-fit: cover;
  display: block;
}
.nav-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-brand);
}
.nav-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

.credit-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: 16px;
  font-size: 13px;
}

.credit-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-purple);
  color: white;
}

.btn-primary:hover {
  background: #9333EA;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: white;
}

.btn-outline:hover {
  border-color: var(--text-muted);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: white;
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-ghost {
  background: transparent;
  color: white;
}

.btn-white {
  background: white;
  color: var(--bg-primary);
}

.btn-white:hover {
  background: #f4f4f5;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 120px 80px;
  gap: 32px;
  text-align: center;
  background: var(--bg-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent-purple);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.hero-title {
  font-family: 'Geist', sans-serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.05;
  max-width: 900px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stats-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.stat-num {
  font-family: 'Geist', sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

/* Section */
.section {
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent-purple);
}

.section-title {
  font-family: 'Geist', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 8px;
}

.section-text-center {
  text-align: center;
  align-items: center;
}

/* Grid */
.grid {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* API Card */
.api-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 280px;
}

.api-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.api-name {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.api-en {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent-orange);
}

.api-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.api-feature {
  font-size: 12px;
  color: var(--accent-purple);
}

/* Theme Cards (home page) */
.theme-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 284px;
  height: 120px;
  transition: all 0.2s;
}

.theme-card:hover {
  border-color: var(--accent-purple);
}

.theme-icon {
  width: 72px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.theme-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.45) 100%);
  pointer-events: none;
}

.theme-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-name {
  font-size: 16px;
  font-weight: 600;
}

.theme-en {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}

.theme-cnt {
  font-size: 12px;
  color: var(--text-dim);
}

/* Theme Library Page */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
}

.theme-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.theme-tile-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.theme-tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.theme-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  padding: 2px 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  border-radius: 4px;
  color: white;
}

.tag-hot { background: var(--accent-red); }
.tag-new { background: var(--accent-cyan); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 520px;
}

.price-card.featured {
  background: #1A0F2E;
  border: 2px solid var(--accent-purple);
}

.price-name {
  font-size: 20px;
  font-weight: 600;
}

.price-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.price-amount {
  font-family: 'Geist', sans-serif;
  font-size: 42px;
  font-weight: 700;
}

.price-divider {
  height: 1px;
  background: var(--border-subtle);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.feature-check {
  color: var(--accent-purple);
}

/* Footer */
.footer {
  background: #050505;
  padding: 60px 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-cols {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 12px;
  color: var(--text-dim);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #1F1F23;
  font-size: 12px;
  color: #52525B;
}

/* Workspace */
.workspace {
  display: grid;
  grid-template-columns: 280px 680px 480px;
  height: 1300px;
}

.ws-left {
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.ws-center {
  background: var(--bg-primary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.ws-right {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* User Center */
.user-center {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.uc-sidebar {
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sidebar-item:hover {
  background: var(--bg-card);
  color: white;
}

.sidebar-item.active {
  background: var(--accent-purple);
  color: white;
  font-weight: 500;
}

/* API Apply */
.api-apply-page {
  display: flex;
  flex-direction: column;
}

.api-hero {
  display: flex;
  padding: 80px 120px 60px;
  gap: 60px;
  align-items: center;
}

.api-form-section {
  display: flex;
  padding: 60px 120px;
  gap: 60px;
  align-items: flex-start;
}

.code-block {
  background: #0D0D0D;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.code-comment { color: var(--text-dim); }
.code-string { color: var(--accent-cyan); }

/* Responsive */
@media (max-width: 1280px) {
  .nav, .hero, .section, .footer, .api-hero, .api-form-section {
    padding-left: 60px;
    padding-right: 60px;
  }
  .grid-4, .theme-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
