/* iLARS Landing — Apple-inspired minimal, gradient purple/blue/orange */

/* Anti-flash: hide body until i18n translations are applied */
html.i18n-loading body {
  opacity: 0 !important;
  transition: none !important;
}

:root {
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff9a56 100%);
  --gradient-soft: linear-gradient(180deg, #f8f9ff 0%, #fff5f5 50%, #f0f4ff 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.98) 100%);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --white: #ffffff;
  --shadow-soft: 0 4px 24px rgba(102, 126, 234, 0.08);
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --radius-lg: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.navbar-logo:hover {
  opacity: 0.7;
}

.navbar-icon {
  width: 28px;
  height: auto;
  object-fit: contain;
}

.navbar-logo-text {
  letter-spacing: -0.02em;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.navbar-menu a:hover {
  color: #667eea;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #667eea;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.navbar-menu a:hover::after {
  transform: scaleX(1);
}

.navbar-menu a.active {
  color: #667eea;
  font-weight: 500;
}

.navbar-menu a.active::after {
  transform: scaleX(1);
}

/* Login CTA — right-aligned in navbar */
.navbar-cta {
  margin-left: auto;
}

.btn-login,
.navbar-menu a.btn-login,
.navbar-cta a.btn-login {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #667eea !important;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff9a56 100%) !important;
  background-size: 200% 200% !important;
  border: none !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.2s;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

.navbar-menu a.btn-login::after {
  display: none !important;
}

.btn-login:hover,
.navbar-menu a.btn-login:hover,
.navbar-cta a.btn-login:hover {
  color: #ffffff !important;
  background-color: #667eea !important;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff9a56 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.btn-login:focus,
.navbar-menu a.btn-login:focus,
.navbar-cta a.btn-login:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  color: #ffffff !important;
  background-color: #667eea !important;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff9a56 100%) !important;
}

.navbar-menu a.btn-login.active,
.navbar-cta a.btn-login.active {
  color: #ffffff !important;
  background-color: #667eea !important;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff9a56 100%) !important;
}

/* Log out button — orange background, black border, purple text */
.btn-logout,
.navbar-menu a.btn-logout,
.navbar-cta a.btn-logout {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5b21b6 !important;
  background-color: #fb923c !important;
  background-image: none !important;
  border: 2px solid #000 !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.5) !important;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn-logout:hover,
.navbar-menu a.btn-logout:hover,
.navbar-cta a.btn-logout:hover {
  color: #6d28d9 !important;
  background-color: #f97316 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6) !important;
}
.navbar-menu a.btn-logout::after {
  display: none !important;
}

/* Language switcher */
.navbar-lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.02);
}

.lang-btn svg {
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 130px;
  z-index: 1100;
}

.lang-dropdown.is-open {
  display: block;
}

.lang-dropdown li {
  padding: 0;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 0.45rem 1rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.lang-dropdown button:hover {
  background: rgba(102, 126, 234, 0.06);
}

.lang-dropdown button.is-active {
  color: #667eea;
  font-weight: 600;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .lang-dropdown {
    right: auto;
    left: 0;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  padding: 2rem 1.5rem;
  padding-top: calc(2rem + 60px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Smooth fade from gradient to white section below */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.03) 12%,
    rgba(255,255,255,0.12) 28%,
    rgba(255,255,255,0.28) 45%,
    rgba(255,255,255,0.5) 62%,
    rgba(255,255,255,0.72) 78%,
    rgba(255,255,255,0.9) 92%,
    #fff 100%
  );
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 100%;
  width: 100%;
  padding: 0 1rem;
}

/* Desktop: left = logo, center = text, right = iPhone — симметрия вокруг центра */
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(320px, 440px) 1fr;
    gap: 2rem 3rem;
    align-items: center;
    justify-items: center;
    max-width: 2000px;
    padding: 0 2rem;
    margin: 0 auto;
  }
  .hero-logo {
    grid-column: 1;
    justify-self: center;
    align-self: center;
  }
  .hero-content {
    grid-column: 2;
    justify-self: center;
    align-self: center;
  }
  .hero-visual {
    grid-column: 3;
    justify-self: center;
    align-self: center;
    min-height: 0;
  }
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: clamp(180px, 34vw, 320px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.hero .logo {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  margin-bottom: 0.5rem;
  width: 100%;
}

.hero .slogan {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  max-width: 360px;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.hero-email {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  max-width: 100%;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-mockup {
  width: 100%;
  max-width: min(4200px, 98vw);
  height: auto;
  max-height: min(95vh, 2800px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 64px rgba(0, 0, 0, 0.3));
  animation: heroMockupFloat 4s ease-in-out infinite;
}

@media (min-width: 900px) {
  .hero-mockup {
    max-width: 100%;
    max-height: 95vh;
  }
}

@keyframes heroMockupFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.03); }
}

/* Section common */
section {
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* App showcase — split layout on white background */
.showcase {
  background: #ffffff;
}

.intro-split {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

@media (min-width: 900px) {
  .intro-split {
    flex-direction: row-reverse;
    align-items: center;
  }
}

.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.intro-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.intro-text-card {
  border-left: 2px solid #111111;
  padding-left: 1.75rem;
}

.intro-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.intro-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.intro-mockup {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-device {
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  position: relative;
}

.intro-device::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
}

.intro-phone {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
}

/* AI section – light background, same style as rest */
.ai-section {
  background: #ffffff;
  color: var(--text-primary);
}

.ai-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(4rem, 8vw, 6rem) 1.5rem clamp(4rem, 8vw, 6rem);
}

@media (min-width: 900px) {
  .ai-inner {
    flex-direction: row;
    align-items: center;
  }
}

.ai-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ai-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.ai-metrics {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.ai-text-block {
  border-left: 2px solid rgba(255,255,255,0.8);
  padding-left: 1.75rem;
  max-width: 460px;
}

.ai-title {
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.ai-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ai-visual {
  flex: 1;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.ai-device {
  position: relative;
  width: min(320px, 80vw);
}

@media (min-width: 900px) {
  .ai-device {
    width: min(360px, 100%);
  }

/* Generic email form (used on Home and other sections) */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 380px;
}

.email-form input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form input::placeholder {
  color: var(--text-muted);
}

.email-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.email-form button {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.email-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

/* Hero: override .email-form so hero keeps compact field + liquid glass button */
.hero .hero-email input {
  width: 220px;
  max-width: 100%;
  font-size: 0.9375rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.hero .hero-email input::placeholder {
  color: rgba(255,255,255,0.75);
}
.hero .hero-email input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.18);
  box-shadow: none;
}
.hero .hero-email button {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  transform: none;
  box-shadow: none;
}
.hero .hero-email button:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: none;
  box-shadow: none;
}

/* Problem / Solution */
.problem-solution {
  background: var(--white);
}

.problem-solution .content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .problem-solution .content-block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .problem-solution .content-block:nth-child(even) .text-block {
    order: 2;
  }
  .problem-solution .content-block:nth-child(even) .mockup-block {
    order: 1;
  }
}

.text-block p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.mockup-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--gradient-card);
}

.mockup-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.mockup-placeholder-large {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8ecff 0%, #fce8f0 100%);
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2rem;
  text-align: center;
}

/* Project page: hospital image + text */
.project-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .project-layout {
    grid-template-columns: 1.1fr 1fr; /* left text, right image */
    gap: 3rem;
  }
}

.project-layout-text .section-title {
  margin-top: 0;
}

.project-image-img {
  width: 100%;
  max-width: 420px; /* a bit narrower than column */
  aspect-ratio: 3 / 4; /* taller portrait-like card */
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: block;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  background: var(--gradient-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon.tracking {
  background: linear-gradient(135deg, #667eea22, #764ba222);
  color: #667eea;
}

.feature-icon.doctor {
  background: linear-gradient(135deg, #f5576c22, #ff9a5622);
  color: #f5576c;
}

.feature-icon.ml {
  background: linear-gradient(135deg, #764ba222, #f093fb22);
  color: #764ba2;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mockup placeholder strip (for scroll sections) */
.mockup-strip {
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mockup-strip .placeholder-inner {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e8ecff 0%, #fce8f0 50%, #fff5e8 100%);
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2rem;
}

/* About section */
.about {
  background: var(--white);
  /* Reduce vertical gap before team section */
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Contact section */
.contact {
  background: #ffffff;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  align-self: flex-start;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

/* Page layout (for non-home pages) */
.page-content {
  padding-top: 60px;
  min-height: calc(100vh - 60px);
}

.page-hero {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Values list */
.values-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.values-list li {
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Feature details */
.feature-details {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-details li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 600;
}

/* Team section */
.team {
  background: #ffffff;
  /* Cancel default large section padding; rely on team-inner instead */
  padding-top: 0;
  padding-bottom: 0;
}

.team-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.team-grid {
  text-align: left;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.team-card {
  text-align: left;
}

.team-photo-wrapper {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.app-warning-box {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.app-warning-text {
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.team-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Doctor dashboard section: two mockups + text center */
.doctor-section {
  background: #ffffff;
}

.doctor-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .doctor-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 2.5rem 3rem;
  }
}

.doctor-mockup {
  display: flex;
  justify-content: center;
}

.doctor-device {
  width: min(520px, 90vw);
  border-radius: 20px;
  background: #0b0b10;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  padding: 12px;
}

.doctor-screen {
  border-radius: 14px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.doctor-text {
  text-align: left;
}

@media (min-width: 900px) {
  .doctor-mockup--top-left {
    grid-column: 1;
    grid-row: 1;
  }

  .doctor-text--top-right {
    grid-column: 2;
    grid-row: 1;
  }

  .doctor-text--bottom-left {
    grid-column: 1;
    grid-row: 2;
  }

  .doctor-mockup--bottom-right {
    grid-column: 2;
    grid-row: 2;
  }
}

.doctor-title {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.doctor-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer .logo-footer {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
