/* ==========================================================================
   Saino Inventory — Landing Page Styles
   ========================================================================== */

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

:root {
  /* Palette */
  --bg-base: #0d0f17;
  --bg-surface: #141622;
  --bg-elevated: #1a1d2e;
  --bg-card: #181b28;
  --border: #252840;
  --border-light: #2e3150;

  --text-primary: #e2e6f0;
  --text-secondary: #9298b0;
  --text-muted: #6b7089;

  --accent-blue: #89b4fa;
  --accent-green: #a6e3a1;
  --accent-peach: #fab387;
  --accent-red: #f38ba8;
  --accent-mauve: #cba6f7;

  --blue-glow: rgba(137, 180, 250, 0.12);
  --green-glow: rgba(166, 227, 161, 0.10);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --section-gap: 7rem;
  --container-max: 1140px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

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

.btn--primary:hover {
  background: #9ec5ff;
  border-color: #9ec5ff;
  box-shadow: 0 0 24px rgba(137, 180, 250, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn--outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn--block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-blue);
  color: var(--bg-base);
  font-weight: 800;
  font-size: 1rem;
}

.nav__logo-highlight {
  color: var(--accent-blue);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link--cta {
  background: var(--accent-blue);
  color: var(--bg-base);
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  background: #9ec5ff;
  color: var(--bg-base);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  padding: 8rem 0 var(--section-gap);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(137, 180, 250, 0.06), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(166, 227, 161, 0.04), transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Window Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__window {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(137, 180, 250, 0.04);
}

.hero__window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hero__window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__window-dot--red { background: #f38ba8; }
.hero__window-dot--yellow { background: #f9e2af; }
.hero__window-dot--green { background: #a6e3a1; }

.hero__window-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__window-body {
  display: flex;
  min-height: 260px;
}

.hero__window-sidebar {
  width: 52px;
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__window-sidebar-item {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.hero__window-sidebar-item--active {
  background: var(--accent-blue);
  opacity: 0.7;
}

.hero__window-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__window-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.7fr;
  gap: 8px;
}

.hero__window-row span {
  height: 10px;
  border-radius: 4px;
  background: var(--border);
}

.hero__window-row--header span {
  background: var(--border-light);
  height: 12px;
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-gap) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.feature-card__icon--blue {
  background: rgba(137, 180, 250, 0.1);
  color: var(--accent-blue);
}

.feature-card__icon--green {
  background: rgba(166, 227, 161, 0.1);
  color: var(--accent-green);
}

.feature-card__icon--peach {
  background: rgba(250, 179, 135, 0.1);
  color: var(--accent-peach);
}

.feature-card__icon--mauve {
  background: rgba(203, 166, 247, 0.1);
  color: var(--accent-mauve);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card__text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: var(--section-gap) 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(137, 180, 250, 0.04), transparent);
}

.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.pricing__toggle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing__toggle-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(166, 227, 161, 0.12);
  color: var(--accent-green);
}

.pricing__toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.pricing__toggle-switch[aria-checked="true"] {
  background: var(--accent-blue);
}

.pricing__toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform 0.2s var(--ease);
}

.pricing__toggle-switch[aria-checked="true"] .pricing__toggle-knob {
  transform: translateX(22px);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  position: relative;
  padding: 2.25rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--accent-blue);
  box-shadow:
    0 0 40px rgba(137, 180, 250, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  background: var(--accent-blue);
  color: var(--bg-base);
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
}

.pricing-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card__price {
  margin-bottom: 1.75rem;
}

.pricing-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.15s var(--ease);
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.7;
}

.pricing-card--featured .pricing-card__features li::before {
  background: var(--accent-blue);
  opacity: 1;
}

/* Enterprise */
.pricing__enterprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  gap: 2rem;
}

.pricing__enterprise-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pricing__enterprise-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* ---------- Download ---------- */
.download {
  padding: var(--section-gap) 0;
}

.download__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.download-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 24px rgba(137, 180, 250, 0.1);
}

.download-card__icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.download-card:hover .download-card__icon {
  color: var(--accent-blue);
}

.download-card__info {
  flex: 1;
}

.download-card__platform {
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
}

.download-card__detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download-card__action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.download__android {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-gap) 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(137, 180, 250, 0.03), transparent);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-form__row .contact-form__field {
  margin-bottom: 0;
}

.contact-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-form__input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease);
  outline: none;
}

.contact-form__input:focus {
  border-color: var(--accent-blue);
}

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

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__info-item svg {
  flex-shrink: 0;
  color: var(--accent-blue);
  margin-top: 2px;
}

.contact__info-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact__info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}

.footer__tagline {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__col li {
  margin-bottom: 0.6rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}

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

.footer__bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__window {
    max-width: 400px;
  }

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing__enterprise {
    flex-direction: column;
    text-align: center;
  }

  .download__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 640px) {
  :root {
    --section-gap: 4.5rem;
  }

  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
    pointer-events: none;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.75rem 0.85rem;
    width: 100%;
    border-radius: 8px;
  }

  .nav__link:hover {
    background: var(--bg-elevated);
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav__toggle {
    display: flex;
  }

  /* Toggle animation */
  .nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__window {
    max-width: 320px;
  }

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

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

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

  .pricing__enterprise {
    padding: 1.5rem;
  }
}
