/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --navy:        #1c1c1e;
  --navy-light:  #2c2c2e;
  --accent:      #ff6a00;
  --accent-dark: #e05500;
  --gold:        #f59e0b;
  --white:       #ffffff;
  --off-white:   #f5f5f7;
  --border:      #d1d1d6;
  --text:        #1c1c1e;
  --muted:       #6e6e73;
  --error:       #dc2626;
  --success:     #16a34a;
  --info:        #0369a1;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }

/* ── Logo box ─────────────────────────────────────────────────────────────── */
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .08em;
  border-radius: 8px;
  padding: .35rem .7rem;
}
.logo-box-sm { font-size: .8rem; padding: .25rem .5rem; }

.nav-logo-wrap {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
}
.nav-logo-tagline {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-icon-img  { height: 28px; width: auto; display: block; }
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #03153f;
  letter-spacing: -.02em;
}
.footer-icon-img  { height: 22px; width: auto; display: block; }
.footer-logo-text { font-size: 1rem; font-weight: 800; color: #03153f; letter-spacing: -.02em; }
.auth-icon-img    { height: 40px; width: auto; display: block; margin: 0 auto .5rem; }
.auth-logo-text   { display: block; font-size: 1.5rem; font-weight: 800; color: #03153f; letter-spacing: -.02em; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--accent);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-sm  { font-size: .85rem; padding: .45rem 1rem; }
.btn-lg  { font-size: 1.05rem; padding: .75rem 1.75rem; }
.btn-full { width: 100%; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--off-white); border-color: var(--off-white); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-wrap { padding: .75rem 1.5rem; }
.flash {
  max-width: 1100px;
  margin: 0 auto .5rem;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
}
.flash-success { background: #dcfce7; color: #15803d; }
.flash-error   { background: #fee2e2; color: var(--error); }
.flash-info    { background: #e0f2fe; color: var(--info); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1c1c1e 0%, #3a3a3c 100%);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hero-logo-icon { height: 72px; width: auto; }
.hero-logo-text {
  font-size: 5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.04em;
  line-height: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.accent { color: var(--gold); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
  background: var(--off-white);
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: #fff3eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.feature-card p  { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.cta-inner h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-hero h1  { font-size: 2.2rem; font-weight: 700; margin-bottom: .75rem; }
.page-sub { color: var(--muted); font-size: 1.1rem; }

/* ── Content sections ─────────────────────────────────────────────────────── */
.content-section { padding: 4rem 0; }
.content-section h2 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 .75rem; }
.content-section p  { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.content-section a  { color: var(--accent); }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--off-white);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-logo { display: block; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.auth-sub { color: var(--muted); margin-bottom: 2rem; }
.auth-form { text-align: left; }
.auth-switch { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.auth-switch a { font-weight: 600; }

/* ── Form fields ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.field-row { display: flex; align-items: center; margin-bottom: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--muted); cursor: pointer; }

/* ── Tool page ────────────────────────────────────────────────────────────── */
.tool-page { padding: 3.5rem 0 5rem; }
.tool-header { margin-bottom: 2rem; }
.tool-header h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .6rem; }
.tool-header p  { color: var(--muted); font-size: 1rem; line-height: 1.65; }

.upload-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.upload-zone.drag-over {
  border-color: var(--accent);
  background: #eff6ff;
}
.upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-label { font-weight: 600; margin-bottom: .25rem; }
.upload-or { color: var(--muted); font-size: .85rem; margin: .5rem 0; }
.upload-hint { color: var(--muted); font-size: .8rem; margin-top: .75rem; }

.processing {
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  gap: 1rem;
  color: var(--muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-sub { font-size: .85rem; }

.tool-notes {
  margin-top: 2.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.tool-notes h3 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.tool-notes ul { display: flex; flex-direction: column; gap: .5rem; }
.tool-notes li { font-size: .9rem; color: var(--muted); }
.tool-notes li strong { color: var(--text); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.pricing-price { font-size: 1.6rem; font-weight: 700; color: var(--muted); margin-bottom: 1.25rem; }
.pricing-features {
  display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
  list-style: none;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--white);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-inner p { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

/* ── Security page ────────────────────────────────────────────────────────── */
.security-highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.security-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.security-highlight strong { display: block; font-size: 1rem; margin-bottom: .35rem; color: var(--text); }
.security-highlight p { color: var(--muted); font-size: .95rem; margin: 0; }

.security-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}
.security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.security-row:last-child { border-bottom: none; }
.security-row:nth-child(odd) { background: var(--off-white); }
.sec-yes { color: var(--success); font-weight: 600; }
.sec-no  { color: var(--error);   font-weight: 600; }

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-form { margin-top: 1.5rem; }
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}
.form-group textarea { resize: vertical; }
.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}
.contact-info { padding-top: 0.5rem; }

/* ── Admin panel ──────────────────────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.admin-table th {
  background: var(--off-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }
.btn-delete {
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-delete:hover { background: var(--error); color: white; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links .btn-sm { display: none; }
  .hero { padding: 4rem 1.25rem; }
  .auth-card { padding: 2rem 1.25rem; }
  .upload-card { padding: 1.5rem 1rem; }
}
