:root {
  --primary: #0F172A;
  --secondary: #334155;
  --accent: #0369A1;
  --accent-light: #38BDF8;
  --bg: #F8FAFC;
  --bg-alt: #EEF2F6;
  --surface: #FFFFFF;
  --text: #020617;
  --text-muted: #475569;
  --border: #E2E8F0;
  --success: #059669;
  --warning: #D97706;

  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.10);

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-large { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--primary); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 8px;
}
.logo-text { font-size: 1.1rem; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: var(--secondary); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 0.55rem 1.2rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--accent); }

@media (max-width: 820px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* HERO */
.hero {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content h1 .accent { color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); }
.meta-num { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.meta-label { font-size: 0.85rem; color: var(--text-muted); }

/* HERO VISUAL */
.hero-visual { position: relative; height: 480px; }
.visual-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.card-main {
  top: 30px; right: 0;
  width: 320px;
  z-index: 2;
}
.card-head { display: flex; align-items: center; gap: 0.4rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.card-title { margin-left: 0.6rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.card-row { display: flex; justify-content: space-between; padding: 0.7rem 0; font-size: 0.92rem; border-bottom: 1px dashed var(--border); }
.card-row:last-child { border-bottom: none; }
.status { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 99px; }
.status.ok { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.status.proc { background: rgba(3, 105, 161, 0.1); color: var(--accent); }
.card-mini {
  top: 0; left: 0;
  width: 160px;
  text-align: center;
  z-index: 1;
}
.card-mini2 {
  bottom: 0; right: 40px;
  width: 180px;
  text-align: center;
  z-index: 3;
}
.mini-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.mini-value { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 420px; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-visual { height: 380px; }
  .card-main { width: 280px; }
  .card-mini { width: 130px; }
  .card-mini2 { width: 150px; }
}

/* TRUST */
.trust { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.trust-badges { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 0.8rem; }
.badge-mark {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.85rem;
  border-radius: 8px;
}
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-text strong { font-size: 0.95rem; color: var(--primary); }
.badge-text span { font-size: 0.8rem; color: var(--text-muted); }

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }
.feature-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.7rem;
  background: var(--bg);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

/* PROCESS GRID */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.process-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
}
.process-block h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.process-block p { color: var(--text-muted); margin-bottom: 1.5rem; }
.process-list { list-style: none; }
.process-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.process-list li:last-child { border-bottom: none; }
.proc-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 4px;
  min-width: 50px;
  text-align: center;
}

/* E-DOCS */
.edoc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.standard-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.standard-pill {
  padding: 0.5rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
}
.edoc-visual { position: relative; height: 360px; }
.doc-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 200px;
}
.doc-1 { top: 0; left: 0; transform: rotate(-6deg); }
.doc-2 { top: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.doc-3 { top: 20px; right: 0; transform: rotate(5deg); }
.doc-line { height: 10px; background: var(--border); border-radius: 4px; margin-bottom: 0.7rem; }
.doc-line.w90 { width: 90%; }
.doc-line.w80 { width: 80%; }
.doc-line.w85 { width: 85%; }
.doc-line.w75 { width: 75%; }
.doc-line.w70 { width: 70%; }
.doc-line.w60 { width: 60%; }
.doc-line.w55 { width: 55%; }
.doc-line.w50 { width: 50%; }
.doc-line.w40 { width: 40%; }
.doc-stamp {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3rem 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.doc-stamp.ok { background: var(--success); }

@media (max-width: 900px) {
  .edoc-grid { grid-template-columns: 1fr; }
  .edoc-visual { max-width: 400px; margin: 0 auto; }
}

/* WHY GRID */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.why-item { padding: 1.5rem 0; }
.why-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}
.why-item h3 { margin-bottom: 0.7rem; }
.why-item p { color: var(--text-muted); font-size: 0.95rem; }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
}
.cta-section h2 { color: #fff; max-width: 600px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-top: 0.8rem; max-width: 500px; }
.cta-section .btn-primary { background: var(--accent-light); }
.cta-section .btn-primary:hover { background: #fff; color: var(--primary); }

@media (max-width: 700px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; }
.contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.contact-value { font-size: 1.1rem; color: var(--primary); font-weight: 500; }
.contact-form { background: var(--surface); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; font-size: 0.9rem; color: var(--secondary); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1); }
.contact-form button { width: 100%; margin-top: 0.5rem; }
.form-success { margin-top: 1rem; padding: 0.8rem; background: rgba(5, 150, 105, 0.1); color: var(--success); border-radius: var(--radius-sm); font-size: 0.9rem; text-align: center; font-weight: 500; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* FOOTER */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; }
.footer-brand span { font-size: 0.85rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { font-size: 0.85rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.6s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-visual { animation: fadeUp 0.8s ease 0.4s both; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .hero-meta { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
