:root {
  /* SynView brand — logo squircle #0c6f7a */
  --brand-primary: #0c6f7a;
  --brand-50: #e9f5f6;
  --brand-100: #d4eaec;
  --brand-200: #a8d5da;
  --brand-300: #72bac2;
  --brand-400: #3d98a4;
  --brand-500: #158593;
  --brand-600: #0c6f7a;
  --brand-700: #0a5c65;
  --brand-800: #084a52;
  --brand-900: #063a41;
  --accent-green: #1a9e8c;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #475569;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --page-bg: #ffffff;
  --surface-muted: #f8fafc;
  --pro-bg: linear-gradient(135deg, #e9f5f6 0%, #eef7f5 55%, #f8fafc 100%);
  --shadow: 0 10px 40px rgba(12, 111, 122, 0.1);
  --shadow-btn: 0 4px 14px rgba(12, 111, 122, 0.32);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
}

/* —— Shared —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1a919f 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(12, 111, 122, 0.38);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}

.btn-secondary:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  border-color: var(--brand-300);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.actions button:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
  border-radius: 4px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo:hover {
  color: var(--text);
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* —— Landing —— */

.landing-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.landing-nav .link-text {
  padding: 10px 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.landing-nav .link-text:hover {
  color: var(--brand-700);
}

.landing-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
}

.pill-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
}

.landing-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-hero .lead {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.feature-card .icon-wrap {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pro-section {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 36px 40px;
  border-radius: 18px;
  background: var(--pro-bg);
  border: 1px solid var(--brand-200);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-700);
}

.pro-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--text);
}

.pro-section .pro-lead {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 16px;
}

.pro-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.pro-checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.landing-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— Login —— */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.login-card .subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.login-card input {
  width: 100%;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.login-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* —— App (lab demo) —— */

.app-shell {
  min-height: 100vh;
  background: linear-gradient(165deg, var(--brand-50) 0%, #f4faf9 50%, #f8fafc 100%);
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-topbar .brand-logo {
  font-size: 16px;
}

.app-topbar nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.app-topbar nav a {
  color: var(--text-soft);
  font-weight: 500;
}

.app-topbar nav a:hover {
  color: var(--brand-700);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 24px 44px;
}

.page-header {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0 0 6px;
  color: var(--brand-800);
  font-size: 34px;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-badge {
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.demo-badge {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 6px;
  color: var(--brand-800);
  font-size: 20px;
}

.card-help {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.upload-card {
  margin-bottom: 18px;
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(160px, 220px);
  gap: 14px;
}

.field-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-col label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

input[type="file"],
input[type="number"] {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.actions button {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-btn);
}

.actions button:hover {
  background: linear-gradient(180deg, #1a919f 0%, var(--brand-700) 100%);
}

.actions button:active {
  transform: translateY(1px);
}

.output {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 170px;
  max-height: 430px;
  overflow: auto;
  padding: 12px 13px;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text);
}

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

  .pro-checklist {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }
}

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

  .landing-nav .link-text {
    display: none;
  }
}
