:root {
  --bg: #eff3ff;
  --surface: #ffffff;
  --surface-alt: #f8f9ff;
  --primary: #3f51ff;
  --primary-dark: #313fdd;
  --primary-contrast: #ffffff;
  --text: #102a43;
  --muted: #61748d;
  --border: #d5d9ec;
  --shadow: 0 18px 40px rgba(34, 59, 123, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 53, 87, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f6fff 0%, #7286ff 100%);
  overflow: hidden;
}

.site-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #d12b2b;
}

.brand-tagline {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-tagline-link {
  color: #3f51ff;
  text-decoration: none;
  font-weight: 700;
}

.brand-tagline-link:hover {
  text-decoration: underline;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.login-link {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 14px 30px rgba(63, 81, 255, 0.18);
}

.login-link:hover {
  background: var(--primary-dark);
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  padding: 5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.home-info {
  margin-top: 2.5rem;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.75rem;
  background: var(--surface-alt);
  border: 1px solid rgba(101, 112, 255, 0.12);
  border-radius: 1.5rem;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-copy p {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: var(--primary-contrast);
}

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(65, 89, 255, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-image-card {
  display: grid;
  place-items: center;
}

.logo-panel {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(64, 88, 255, 0.12);
}

.logo-preview {
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  background: #eef2ff;
  overflow: hidden;
  padding: 1rem;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-section {
  padding: 2.5rem 0 1.5rem;
}

.login-panel {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-intro {
  padding: 1.8rem 2rem 0;
}

.icon-section-head {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--surface-alt);
  border-radius: 2rem;
}

.login-intro h2 {
  margin-top: 0;
  font-size: 2rem;
}

.login-intro p {
  color: var(--muted);
  margin-top: 1rem;
}

.login-form {
  padding: 1.75rem 2rem 2rem;
  display: grid;
  gap: 1rem;
}

.login-form label {
  font-weight: 600;
}

.login-form input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #f7f8ff;
  font: inherit;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.step-info {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.otp-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.otp-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.small-link {
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.small-link:hover {
  text-decoration: underline;
}

.form-message {
  margin: 0.5rem 0 0;
  color: #1f7a55;
  min-height: 1.35rem;
}

.icon-section {
  padding: 3rem 0 5rem;
}

#privacy,
#terms {
  padding: 1.5rem 0 2rem;
}

#privacy .icon-section-head,
#terms .icon-section-head {
  max-width: 720px;
  margin: 0 auto 0.75rem;
}

#privacy h2,
#terms h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

#privacy .section-subtitle,
#terms .section-subtitle {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

#privacy .feature-grid,
#terms .feature-grid {
  display: block;
  padding: 0;
  background: transparent;
  gap: 0;
}

#privacy .info-card,
#terms .info-card {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(101, 112, 255, 0.1);
  background: #f9fbff;
}

#privacy .info-card p,
#terms .info-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.icon-section h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.section-subtitle {
  margin: 0 0 2rem;
  color: var(--muted);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.icon-card {
  position: relative;
  padding: 3rem;
  border-radius: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 28px 55px rgba(59, 76, 148, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.icon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(63, 81, 255, 0.22);
}

.icon-symbol {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(63, 81, 255, 0.15);
  margin-bottom: 1.4rem;
}

.icon-symbol img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.icon-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.feature-dropdown-label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.feature-dropdown {
  width: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.icon-card p {
  margin: 0;
  color: var(--muted);
}

.icon-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 2rem;
  background: rgba(63, 81, 255, 0.95);
  color: #ffffff;
  border-bottom-left-radius: 1.75rem;
  border-bottom-right-radius: 1.75rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  font-size: 0.95rem;
  line-height: 1.5;
}

.icon-card:hover .icon-info {
  transform: translateY(0);
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .appointment-panel {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0;
  }

  .brand-group {
    width: 100%;
    gap: 1rem;
  }

  .site-logo {
    width: 130px;
    height: 130px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero-grid,
  .home-info-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .logo-panel,
  .software-panel,
  .login-panel,
  .payment-box,
  .cart-summary {
    padding: 1rem;
  }

  .hero-grid,
  .login-panel,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .icon-grid {
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-tagline {
    font-size: 0.98rem;
  }

  .site-logo {
    width: 100px;
    height: 100px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .appointment-panel {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .primary-btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy p,
  .info-card p,
  .section-subtitle,
  .login-form label,
  .feature-dropdown,
  .login-form input,
  .small-note {
    font-size: 0.97rem;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .icon-card {
    padding: 1.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .site-logo {
    width: 90px;
    height: 90px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0 1.25rem;
  }

  .login-panel,
  .software-panel {
    border-radius: 1.25rem;
  }
}

@media (max-width: 680px) {
  .site-logo {
    width: 120px;
    height: 120px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-tagline {
    font-size: 0.95rem;
  }
}
