/* ============================================================
   EC Way MedTech — Marketing Website
   marketing-site/styles.css
   Static, self-contained. No dependency on frontend/ or backend/.
   ============================================================ */

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, ui-sans-serif, sans-serif;
  color: #172033;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --green-900: #1b4332;
  --green-700: #2d6a4f;
  --green-500: #40916c;
  --green-200: #b7ddc4;
  --green-50:  #f0faf2;
  --text:      #172033;
  --text-mid:  #3d5166;
  --text-muted:#5a7184;
  --text-faint:#8fa3b2;
  --border:    #dde8ee;
  --surface:   #f5f9fc;
  --white:     #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 8px 28px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);
  --wrap: 1080px;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .12s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green-700);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}
.logo-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
}
.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .08em;
  text-transform: uppercase;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
nav.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--green-900) 0%, var(--green-700) 52%, #52a67d 100%);
  padding: 88px 0 80px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 35%, rgba(100,190,140,.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 4px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(28px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 auto 22px;
  max-width: 760px;
  letter-spacing: -.03em;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mock dashboard preview */
.hero-visual {
  margin: 60px auto 0;
  max-width: 800px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.mock-window {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.mock-titlebar {
  background: var(--green-900);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.mock-dot:nth-child(1) { background: #ff6b6b; }
.mock-dot:nth-child(2) { background: #ffd93d; }
.mock-dot:nth-child(3) { background: #6bcb77; }
.mock-tab {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  padding: 3px 14px;
  border-radius: 5px;
}

.mock-body {
  background: #f3f7fb;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mock-card {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.mock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.mock-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--green-700);
}
.mock-hint {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}
.mock-row {
  grid-column: span 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mock-pill {
  background: var(--green-50);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 20px;
}
.mock-pill-grey {
  background: #edf1f5;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 20px;
}

/* ── Sections shared ─────────────────────────────────────────── */
section { padding: 76px 0; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.022em;
  line-height: 1.18;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 50px;
  line-height: 1.65;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Product cards ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
  transform: translateY(-3px);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.card-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-500);
  background: var(--green-50);
  border-radius: 5px;
  padding: 3px 10px;
}

/* ── Workflow section ────────────────────────────────────────── */
.section-tinted { background: #f0faf3; }

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 50px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 168px;
  padding: 8px 10px;
}
.flow-bubble {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(45,106,79,.3);
}
.flow-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.flow-step p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.flow-arrow {
  font-size: 24px;
  color: var(--green-500);
  flex-shrink: 0;
  padding: 0 4px;
  margin-bottom: 44px;
  opacity: .7;
}

/* ── Security section ────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.security-list {
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.sec-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sec-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.sec-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.trust-box {
  background: var(--green-700);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  color: var(--white);
}
.trust-box h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--white);
  letter-spacing: -.015em;
}
.trust-box p {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  margin: 0 0 24px;
  line-height: 1.65;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badge {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
}
.trust-note {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255,255,255,.52);
  font-style: italic;
  line-height: 1.5;
}

/* ── Contact / Demo section ──────────────────────────────────── */
.contact-section {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -.015em;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.65;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.contact-details a {
  color: var(--green-700);
  font-weight: 500;
}
.contact-details a:hover { text-decoration: underline; }
.c-icon {
  width: 33px; height: 33px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.contact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.contact-card > p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fafdfe;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-500);
  background: var(--white);
}
.field input::placeholder,
.field textarea::placeholder { color: #b8c9d4; }

.phi-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
}
.phi-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.phi-warning p {
  margin: 0;
  font-size: 12px;
  color: #6d4c00;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #12202e;
  padding: 42px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.015em;
}
.footer-logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.38);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 3px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .security-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  nav.nav-links { display: none; }
}
@media (max-width: 620px) {
  section { padding: 52px 0; }
  .hero { padding: 60px 0 48px; }
  .flow-step { flex: 0 0 130px; }
  .mock-body { grid-template-columns: 1fr 1fr; }
  .mock-row { grid-column: span 2; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
