/* ADDSURE TECH INDIA — Landing styles (mobile-first) */

:root {
  --bg: #f2f5f8;
  --bg-warm: #e4eaf1;
  --bg-soft: #d3dce6;
  --bg-dark: #243447;
  --text: #1e2a38;
  --text-soft: #4a5c6e;
  --text-muted: #7a8b9a;
  --text-inverse: #ffffff;
  --accent: #6832f0;
  --accent-deep: #4f22c4;
  --accent-soft: #ede5ff;
  --accent-mid: #8558f5;
  --accent-light: #a78bfa;
  --border: #c8d2dc;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1140px;
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --header-h: 4.5rem;
  --shadow-card: 0 8px 24px rgba(24, 0, 56, 0.05);
  --shadow-btn: 0 8px 20px rgba(104, 50, 240, 0.2);
  --shadow-btn-strong: 0 8px 20px rgba(104, 50, 240, 0.35);
  --focus-ring: 0 0 0 3px rgba(104, 50, 240, 0.35);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.container {
  width: min(100% - (var(--pad-x) * 2), var(--container));
  margin-inline: auto;
}

.font-display {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  border-radius: 14px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-btn-strong);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn--lg {
  min-height: 3.25rem;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
}

.btn--lg svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Icon box */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--text-inverse);
  flex-shrink: 0;
}

.icon-box svg {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-box--soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-box--sm {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
}

.icon-box--sm svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: clamp(2.25rem, 5vw, 2.75rem);
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-panel {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 110;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem var(--pad-x) 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.nav-panel.is-open {
  display: flex;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-actions {
  display: flex;
}

.nav-actions .btn {
  width: 100%;
}

.nav-panel--static {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nav-panel--static .nav-actions .btn {
  width: auto;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(200deg, #f2f5f8 0%, #e4eaf1 55%, #d3dce6 100%);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Mobile: image first, content centered */
.hero__visual {
  order: -1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(160deg, #c5d0dc, #5b7a9d 55%, #243447);
  box-shadow: 0 16px 40px rgba(36, 52, 71, 0.18);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 620 / 350;
  object-fit: cover;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: var(--text);
  white-space: pre-line;
}

.hero__body {
  margin-bottom: 1.75rem;
  max-width: 36rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  line-height: 1.65;
}

/* Sections shared */
.section {
  padding: var(--section-y) 0;
}

.section__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  color: var(--text);
  text-align: center;
}

.section__lead {
  margin: 1.25rem auto 0;
  max-width: 52rem;
  color: var(--text-soft);
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
}

.section__lead + .section__lead {
  margin-top: 0.85rem;
}

/* About */
.about-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  text-align: center;
}

.about-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.about-card p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Featured */
.featured {
  background: linear-gradient(180deg, #6832f0 0%, #5520d4 100%);
  color: var(--text-inverse);
}

.featured .section__title,
.featured .section__lead {
  color: var(--text-inverse);
}

.featured__label {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.featured__title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  text-align: center;
  color: #fff;
}

.featured__tagline {
  margin-top: 0.85rem;
  text-align: center;
  font-size: clamp(1.15rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: #fff;
}

.featured__intro {
  margin: 1.25rem auto 0;
  max-width: 48rem;
  text-align: center;
  color: #f0e9ff;
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #7b4af5;
  border: 1px solid rgba(255, 255, 255, 0.27);
  text-align: center;
}

.step-card h3 {
  margin-bottom: 0.75rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}

.step-card p {
  color: #f5f0ff;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Features */
.features {
  background: var(--bg-warm);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.feature-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Why */
.keywords {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

.keyword {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-warm);
  border: 2px solid var(--accent);
  text-align: center;
}

.keyword:nth-child(2) {
  border-color: var(--accent-mid);
}

.keyword:nth-child(2) .keyword__dot {
  background: var(--accent-mid);
}

.keyword:nth-child(3) {
  border-color: var(--accent-light);
}

.keyword:nth-child(3) .keyword__dot {
  background: var(--accent-light);
}

.keyword:nth-child(4) {
  border-color: var(--accent-deep);
}

.keyword:nth-child(4) .keyword__dot {
  background: var(--accent-deep);
}

.keyword__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
}

.keyword span:last-child {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text);
}

/* Company */
.company {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.company__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(242, 245, 248, 0.82), rgba(237, 229, 255, 0.75)),
    url("../images/bg2.jpg") center / cover no-repeat;
}

.company .section__title {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.info-card {
  width: min(100%, 56.25rem);
  margin-inline: auto;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(24, 0, 56, 0.05);
}

.info-card__name {
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.info-list {
  display: grid;
  gap: 1.75rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-row__text {
  min-width: 0;
  flex: 1;
}

.info-row__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.info-row__value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}

.info-row__value--address {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-row__value a {
  color: var(--text);
  font-weight: 500;
}

.info-row__value a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .info-card {
    padding: 1.15rem 1rem;
    border-radius: 1.15rem;
    overflow: hidden;
  }

  .info-card__name {
    margin-bottom: 1.15rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .info-list {
    gap: 1.1rem;
  }

  .info-row {
    gap: 0.75rem;
  }

  .info-row__label {
    font-size: 0.75rem;
  }

  .info-row__value {
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .info-row__value--address {
    overflow-x: visible;
  }

  .info-row .icon-box--sm {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* Footer — same content width as header / sections (.container) */
.site-footer {
  padding-block: 4rem 2.5rem;
  background: linear-gradient(180deg, #6832f0 0%, #5520d4 100%);
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  justify-items: center;
  align-items: start;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: 32.8125rem;
  text-align: center;
}

.footer-logo-link {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.footer-logo-link:focus-visible {
  border-radius: 4px;
}

.footer-logo {
  display: block;
  width: 16rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 317 / 55;
  object-fit: contain;
  object-position: center;
}

.footer-brand p {
  margin: 0;
  max-width: 32.8125rem;
  color: #f0e9ff;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-inline: auto;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.footer-col--nav a {
  font-size: 0.875rem;
}

.footer-col--legal a {
  font-size: 0.8125rem;
  font-weight: 400;
}

.footer-col a:hover {
  color: #ede5ff;
}

.footer-divider {
  height: 1px;
  margin: 2.5rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #e8deff;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(12rem, 1.4fr) minmax(8rem, 0.7fr) minmax(8rem, 0.7fr);
    justify-content: space-between;
    justify-items: stretch;
    align-items: start;
    column-gap: 3rem;
    row-gap: 0;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
    margin-inline: 0;
  }

  .footer-logo-link {
    margin-inline: 0;
  }

  .footer-logo {
    object-position: left center;
  }

  .footer-col {
    align-items: flex-start;
  }

  .footer-col--nav,
  .footer-col--legal {
    width: auto;
    max-width: 20rem;
  }
}

@media (max-width: 899px) {
  .site-footer {
    padding-block: 3rem 2rem;
  }

  .footer-top {
    justify-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .footer-logo-link {
    margin-inline: auto;
  }

  .footer-logo {
    object-position: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col a {
    margin-inline: auto;
  }
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.legal-main {
  flex: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal-wrap {
  max-width: 48rem;
}

.legal-toolbar {
  margin-bottom: 1.25rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-back svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.legal-back:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.legal-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--text);
  text-align: left;
}

.legal-content {
  color: var(--text-soft);
}

.legal-doc-id {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legal-effective {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.legal-content h2 {
  margin: 2rem 0 0.85rem;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.legal-content h3 {
  margin: 1.35rem 0 0.65rem;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  font-size: 0.975rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin: 0.35rem 0;
  line-height: 1.6;
  font-size: 0.975rem;
}

.legal-content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-copy {
  margin-top: 2rem !important;
  color: var(--text-muted);
  font-size: 0.875rem !important;
}

/* Desktop */
@media (min-width: 768px) {
  .about-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-card {
    align-items: flex-start;
    text-align: left;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-card {
    align-items: flex-start;
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .keywords {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.9375rem;
  }

  .nav-actions .btn {
    width: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .hero__visual {
    order: 0;
  }

  .hero__copy {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .back-to-top {
    transition: none;
  }
}

/* Back to top — bottom-right, shows after first screen */
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(104, 50, 240, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-deep);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 20px rgba(104, 50, 240, 0.35);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}
