/* ─────────────────────────────────────────────────
   IFMS Landing — style.css
   Design: dark, gold accent (#e8d5a3), Inter
   ───────────────────────────────────────────────── */

/* ── Variables ─────────────────────────────────── */
:root {
  --bg:          #0d0d0d;
  --bg-2:        #111111;
  --bg-3:        #161616;
  --bg-card:     #141414;
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --accent:      #e8d5a3;
  --accent-dim:  rgba(232, 213, 163, 0.08);
  --accent-dim2: rgba(232, 213, 163, 0.04);
  --border:      #252525;
  --border-2:    #2a2a2a;
  --border-card: #1e1e1e;
  --radius:      8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --transition:  0.2s ease;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

h1 em {
  font-style: normal;
  color: var(--accent);
}

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.problem    { background: var(--bg-2); }
.solution   { background: var(--bg); }
.features   { background: var(--bg-2); }
.audience   { background: var(--bg); }
.deployment { background: var(--bg-2); }
.how        { background: var(--bg); }
.faq        { background: var(--bg-2); }
.contact    { background: var(--bg); }

/* ── Section Headers ────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}
.btn-primary:hover { background: #f0dfb5; border-color: #f0dfb5; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-sm  { padding: 7px 16px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center top,
    rgba(232, 213, 163, 0.07) 0%,
    rgba(232, 213, 163, 0.02) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 213, 163, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-inner h1 {
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust span {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ── Trust Strip ─────────────────────────────────── */
.trust {
  padding: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Problem ──────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition);
}
.problem-card:hover { border-color: var(--border-2); }
.problem-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 213, 163, 0.06);
  border: 1px solid rgba(232, 213, 163, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-icon svg { width: 20px; height: 20px; }
.problem-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.problem-card p  { font-size: 0.9rem; }

/* ── Solution Pillars ─────────────────────────────── */
.solution-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.pillar:hover {
  border-color: rgba(232, 213, 163, 0.2);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 213, 163, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 20px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.pillar p  { font-size: 0.875rem; }

/* ── Features ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim2);
  border: 1px solid rgba(232, 213, 163, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; }

/* ── Audience ────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--transition);
}
.audience-card:hover { border-color: rgba(232, 213, 163, 0.15); }
.audience-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 213, 163, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.audience-card h3    { font-size: 1.1rem; margin-bottom: 12px; }
.audience-card > p   { font-size: 0.9rem; margin-bottom: 20px; }
.audience-list {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.audience-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.audience-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Deployment ──────────────────────────────────── */
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.deployment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.deployment-card:hover { transform: translateY(-3px); }
.deployment-cloud {
  border-color: rgba(232, 213, 163, 0.2);
  background: linear-gradient(135deg, #141414 0%, #161510 100%);
}
.deployment-onprem { border-color: var(--border-2); }
.deployment-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.deployment-badge-live {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
}
.deployment-badge-request {
  background: var(--accent-dim);
  border: 1px solid rgba(232, 213, 163, 0.15);
  color: var(--accent);
}
.deployment-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 213, 163, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.deployment-icon svg { width: 24px; height: 24px; }
.deployment-card h3  { font-size: 1.3rem; font-weight: 700; }
.deployment-card > p { font-size: 0.9rem; }
.deployment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.deployment-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.deployment-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.deployment-note {
  text-align: center;
  max-width: 680px;
  margin: 40px auto 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ── How It Works ────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
  font-variant-numeric: tabular-nums;
}
.step-content h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.step-content p  { font-size: 0.875rem; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--accent-dim2); }
.faq-answer {
  padding: 4px 24px 24px;
  border-top: 1px solid var(--border);
}
.faq-answer p { font-size: 0.9rem; line-height: 1.75; }

/* ── Contact ─────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.contact-text .section-label { margin-bottom: 14px; }
.contact-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.contact-text > p { font-size: 0.95rem; margin-bottom: 28px; }
.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-benefits li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.contact-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: #ef4444; }
.form-error {
  font-size: 0.8rem;
  color: #f87171;
  min-height: 1em;
}
.form-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  color: #4ade80;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.form-generic-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  color: #f87171;
  padding: 14px 16px;
  font-size: 0.9rem;
}
/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-muted); text-decoration: none; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 100%;
}

/* ── Responsive — 1024px ──────────────────────────── */
@media (max-width: 1024px) {
  .solution-pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

/* ── Responsive — 768px ───────────────────────────── */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-inner { gap: 16px; }

  .hero { padding: 80px 0 72px; }
  .hero-glow { width: 500px; height: 300px; }
  .hero-trust { gap: 16px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }

  .problem-grid   { grid-template-columns: 1fr; }
  .audience-grid  { grid-template-columns: 1fr; }
  .deployment-grid { grid-template-columns: 1fr; max-width: 480px; }
  .contact-inner  { grid-template-columns: 1fr; gap: 48px; }
  .form-row       { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-copy  { width: auto; }
}

/* ── Responsive — 480px ───────────────────────────── */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .solution-pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .deployment-card { padding: 28px 24px; }
  .audience-card { padding: 28px 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
