/* Tradenova AI — aligned with iOS Theme.background + orange accent + glass surfaces */

:root {
  --bg: #121214;
  --bg-elevated: #1c1c1f;
  --text: #f5f5f7;
  --text-secondary: rgba(235, 235, 245, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --orange: #ff9f0a;
  --orange-deep: #ff5c00;
  --glass: rgba(28, 28, 32, 0.65);
  --radius-lg: 16px;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui,
    sans-serif;
    --shadow-mesh: radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255, 159, 10, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(80, 120, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 70% 60% at 40% 95%, rgba(255, 92, 0, 0.06), transparent 50%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient mesh (similar to AIAnimatedBackground in the app) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--shadow-mesh), var(--bg);
  pointer-events: none;
}

a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #ffb340;
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: auto;
  height: 40px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.brand a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand a:hover {
  color: var(--text);
  text-decoration: none;
  filter: brightness(1.05);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

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

.nav a[aria-current="page"] {
  color: var(--orange);
}

/* Hero */
.hero {
  padding: 2rem 0 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 40ch;
}

.hero-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.store-badge strong {
  color: var(--text);
  font-weight: 600;
}

/* Glass cards (glassActionLabel / PRO chip style) */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 560px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.35), rgba(255, 92, 0, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card .link {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Legal docs */
.doc-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.doc-page section {
  margin-bottom: 1.5rem;
}

.doc-page h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.doc-page p,
.doc-page li {
  font-size: 0.9375rem;
  color: rgba(235, 235, 245, 0.85);
}

.doc-page ul {
  padding-left: 1.25rem;
}

.doc-page li {
  margin-bottom: 0.35rem;
}

.entity {
  font-size: 0.875rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.entity strong {
  color: var(--text);
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.25);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Form */
.form-page h1 {
  margin: 0 0 0.5rem;
}

.form-page .sub {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 159, 10, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.15);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.95), rgba(255, 92, 0, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 16px rgba(255, 92, 0, 0.25);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn-row {
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--orange);
}

code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
