/* Google Fonts loaded via <link> tags in HTML <head> for better performance */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Tokens ────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --surface:     #161616;
  --border:      #222;
  --text:        #f0f0f0;
  --text-muted:  #a3a3a3;
  --accent:      #c8a2ff;
  --accent-hover:#dbbfff;
  --radius:      8px;
  --max-w:       1100px;
  --nav-h:       72px;
}

/* ── Base ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Focus States (a11y) ──────────────────────────── */
a:focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.form__input:focus-visible,
.form__select:focus-visible,
.form__textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 162, 255, 0.25);
}

/* ── Skip Link (a11y) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Email Obfuscation ────────────────────────────── */
.email {
  unicode-bidi: bidi-override;
  direction: rtl;
  white-space: nowrap;
}

.email-link {
  color: var(--text-muted);
  transition: color 0.2s;
}

.email-link:hover {
  color: var(--accent);
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 3rem;
}

nav .logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

nav ul a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

nav ul a:hover,
nav ul a.active {
  color: var(--text);
}

nav ul li:last-child a {
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.25s;
}

nav ul li:last-child a:hover {
  background: var(--accent-hover);
}

/* ── Hamburger Toggle ─────────────────────────────── */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 101;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Main ──────────────────────────────────────────── */
main { flex: 1; }

/* ── Section ───────────────────────────────────────── */
.section {
  padding: 6rem 3rem;
}

.section--alt {
  background: var(--surface);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 8rem 3rem;
  text-align: center;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.25s, transform 0.15s;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: rgba(200, 162, 255, 0.1);
}

.section__cta {
  margin-top: 2.5rem;
}

/* ── Section Headings ──────────────────────────────── */
.section__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.155rem;
  color: var(--text-muted);
  max-width: none;
  line-height: 1.7;
  margin-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Card Grid ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  transition: border-color 0.25s, transform 0.2s;
}

.card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ── Product Cards (with images) ──────────────────── */
.card-grid--products {
  grid-template-columns: repeat(2, 1fr);
}

.card--product {
  padding: 0;
  overflow: hidden;
}

.card--product .card__body {
  padding: 1.5rem 2rem 2rem;
}

.card__img {
  width: 100%;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s;
}

.card--product:hover .card__img {
  filter: brightness(0.95);
}

/* ── Application List Cards ──────────────────────── */
.card--apps {
  padding: 2rem;
}

.card--apps h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.card--apps ul {
  list-style: none;
  text-align: left;
}

.card--apps ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.card--apps ul li::before {
  content: "◎";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.55rem;
}

.card .link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.card .link:hover {
  color: var(--accent-hover);
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  text-align: center;
}

.cta-banner .section__title {
  margin-bottom: 1.5rem;
}

/* ── Contact Section (combined CTA + Direct) ─────── */
.contact-section .section__title {
  color: var(--accent);
}

.contact-section .contact-info {
  margin-top: 3rem;
  text-align: center;
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section .contact-info__item h3 {
  color: var(--accent);
}

/* ── Contact Info ──────────────────────────────────── */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-info__item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Values / Features List ────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.values-grid .card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.values-grid .card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* ── Auto-fill Card Grid (for 7 industries etc.) ──── */
.card-grid--auto {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid--auto .card {
  padding: 1rem 1.25rem;
  text-align: center;
}

.card-grid--auto .card h3 {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* ── Partner Spotlight ─────────────────────────────── */
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: left;
  margin-top: 2rem;
}

.partner__logo {
  flex-shrink: 0;
  width: 220px;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner__logo img {
  max-width: 100%;
  height: auto;
}

.partner__info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.partner__info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 720px;
}

/* ── Photo Gallery ─────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery__item {
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

.gallery__item:hover {
  box-shadow: 0 0 0 1px #333;
}

.gallery__img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.3s;
}

.gallery__item:hover .gallery__img {
  filter: brightness(0.95);
}

.gallery__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 1rem;
}

/* ── Form ──────────────────────────────────────────── */
.form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__file {
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.form__file::file-selector-button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1rem;
  transition: background 0.25s;
}

.form__file::file-selector-button:hover {
  background: var(--accent-hover);
}

.form__privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Scheduler Callout ────────────────────────────── */
.scheduler-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.scheduler-callout__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.scheduler-callout__text {
  flex: 1;
}

.scheduler-callout__heading {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.scheduler-callout__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.scheduler-callout .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
    overflow-y: auto;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a {
    font-size: 1.25rem;
    color: var(--text);
  }

  nav ul li:last-child a {
    display: block;
    text-align: center;
  }

  .hero {
    padding: 5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .card-grid,
  .card-grid--products,
  .contact-info,
  .contact-section .contact-info,
  .gallery {
    grid-template-columns: 1fr;
  }

  .card-grid--auto {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .partner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .scheduler-callout {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }

  /* Touch targets */
  .card .link,
  .footer__links a,
  nav ul a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  footer {
    padding: 2rem 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .section__subtitle {
    font-size: 1.045rem;
  }

  .section__label {
    font-size: 0.825rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .partner__logo {
    width: 180px;
  }

  .card-grid--auto {
    grid-template-columns: 1fr;
  }

  .card-grid--auto .card h3 {
    white-space: normal;
  }
}
