/* Marketing site — clean, professional, SEO-friendly */
:root {
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-text-muted: #5c6370;
  --color-primary: #0d6efd;
  --color-primary-hover: #0b5ed7;
  --color-accent: #198754;
  --color-border: #e2e6ea;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --container: min(1120px, 92vw);
  /* Background: soft gradient + very light blue tint (brand) */
  --bg-gradient: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 45%, #f5f7fa 100%);
  --bg-pattern: radial-gradient(circle at 20% 30%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(13, 110, 253, 0.04) 0%, transparent 45%);
  /* Alternative: plain -- background: #f5f6f8; */
  /* Alternative: cooler -- linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--bg-pattern), var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-tagline {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .header-tagline {
    display: block;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: 32px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: inline-block;
  line-height: 1.2;
}

.logo span {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .logo {
    font-size: 1rem;
  }
  .logo-img {
    height: 28px;
    width: 28px;
  }
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: transparent;
  color: var(--color-primary) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: rgba(13, 110, 253, 0.1);
  transform: scale(1.05);
}

/* Hero */
.hero {
  position: relative;
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.hero-shape-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}

.hero-shape-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(25, 135, 84, 0.06) 0%, transparent 70%);
  bottom: 20%;
  left: -40px;
}

.hero-shape-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
  bottom: -20px;
  right: 25%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-content {
  text-align: left;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.hero-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-brand span {
  color: var(--color-primary);
}

.hero-brand-underline {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn {
  display: inline-block;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.hero-scroll:hover {
  color: var(--color-primary);
  transform: translateX(-50%) translateY(4px);
}

.hero-scroll-icon {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: -8px;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-brand-underline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .hero-scroll {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
  }

  .hero-scroll:hover {
    transform: translateY(4px);
  }
}

.hero-placeholder {
  width: 100%;
  max-width: 800px;
  height: 320px;
  margin: 0 auto;
  background: linear-gradient(135deg, #e8ecf0 0%, #d4dce4 100%);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.btn-cta {
  position: relative;
  animation: btn-cta-glow 2.5s ease-in-out infinite;
}

@keyframes btn-cta-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(13, 110, 253, 0.25); }
  50% { box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4); }
}

.btn-cta:hover {
  animation: none;
  box-shadow: 0 6px 22px rgba(13, 110, 253, 0.45);
}

/* Services – custom development, consultation, integration */
.services {
  padding: 3rem 0 4rem;
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.services-content {
  text-align: left;
}

.services-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.services-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.services-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
}

.services-list li {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.services-list li strong {
  color: var(--color-text);
}

.services-cta-wrap {
  background: var(--color-bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}

.services-cta {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.services-cta-wrap .btn {
  margin-top: 0;
}

.services-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2.5rem;
}

.services-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .services {
    padding: 2rem 0 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-content {
    text-align: center;
  }

  .services-list {
    display: inline-block;
    text-align: left;
  }

  .services-visual {
    order: -1;
    margin-top: 0;
  }
}

/* Products */
.products {
  padding: 3rem 0 4rem;
  background: var(--color-surface);
}

.products h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 2rem;
  text-align: center;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.product-card:last-child {
  margin-bottom: 0;
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-visual {
  position: relative;
}

.product-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Placeholder only when image fails to load */
.product-visual img[src] ~ .product-figure {
  display: none;
}

.product-figure {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-figure-webviewer {
  background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.product-figure-worklist {
  background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}

.product-figure-dicomprint {
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
}

.product-figure-pacs {
  background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
}

.product-content h3 {
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.product-tagline {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.product-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

/* Demo / Subscribe section */
.subscribe {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.demo-section .subscribe-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.demo-section .subscribe-inner.demo-in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes demo-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subscribe-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.demo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.demo-lead {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.subscribe h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.subscribe > .container > p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.subscribe-form {
  text-align: left;
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.required {
  color: #c00;
}

.form-row input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-label:hover {
  color: var(--color-primary);
}

.form-row-submit {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.form-row-submit .btn {
  width: 100%;
  padding: 0.75rem;
}

/* Email field error styling */
.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

input.error,
input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
  background-color: #fff5f5;
}

input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-message {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--color-accent);
}

.form-message.error {
  color: #c00;
}

/* Contact */
.contact {
  padding: 3rem 0 4rem;
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}

.contact-info {
  text-align: left;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-list li a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-list li a:hover {
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-wrap {
  background: var(--color-bg);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-lead {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.contact-form .form-row input,
.contact-form .form-row select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.contact-form .form-row select {
  cursor: pointer;
  appearance: auto;
}

.contact-form .form-row input:focus,
.contact-form .form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-list li {
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-copyright {
  margin-top: 0.5rem !important;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card,
  .product-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .product-figure {
    height: 200px;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .products,
  .subscribe,
  .contact {
    padding: 2rem 0 3rem;
  }
}
