:root {
  color-scheme: only light;
  --bg-deep: #081a26;
  --bg-mid: #0f2a3f;
  --bg-warm: #b27a1b;
  --accent: #f2c200;
  --accent-strong: #f7d24f;
  --text: #f7f1e1;
  --muted: rgba(247, 241, 225, 0.65);
  --card: rgba(11, 28, 40, 0.75);
  --shadow: rgba(4, 10, 15, 0.35);
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(120% 80% at 50% 15%, rgba(242, 194, 0, 0.18), transparent 55%),
    radial-gradient(90% 120% at 50% 110%, rgba(17, 47, 71, 0.9), transparent 60%),
    linear-gradient(165deg, var(--bg-deep), var(--bg-mid) 60%, #132f44 100%);
  color: var(--text);
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px clamp(16px, 6vw, 32px) 32px;
}

.safe-area {
  height: env(safe-area-inset-top);
  width: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 18, 28, 0.6);
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px var(--shadow);
  backdrop-filter: blur(12px);
}

.seal {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.seal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titles h1 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.sub {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero {
  display: flex;
  justify-content: center;
}

.hero-button {
  border: none;
  padding: 18px 22px 20px;
  border-radius: 22px;
  background: rgba(11, 28, 40, 0.75);
  color: var(--text);
  width: min(320px, 86vw);
  display: grid;
  gap: 12px;
  place-items: center;
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-button:active {
  transform: scale(0.98);
  box-shadow: 0 12px 26px var(--shadow);
}

.hero-logo {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.actions.wide {
  grid-template-columns: minmax(0, 1fr);
}

button {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

button.primary {
  background: linear-gradient(135deg, #f2c200, #e6a90b 70%);
  color: #1b1200;
  font-weight: 600;
  border: none;
}

button.secondary {
  background: rgba(255, 255, 255, 0.1);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(2, 8, 12, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.card-title {
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.card-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.field input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.analysis {
  font-size: 0.85rem;
  color: var(--text);
}

.results {
  display: grid;
  gap: 12px;
}

.result-card {
  background: rgba(8, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
}

.result-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.result-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.notice {
  font-size: 0.78rem;
  color: #f7d24f;
  margin-top: 6px;
}

.status {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(7, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.status.visible {
  opacity: 1;
}

.placeholder {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 720px) {
  .app {
    max-width: 520px;
    margin: 0 auto;
  }
}
