:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --surface-soft: #f1f7fa;
  --surface-pink: #dcebf3;
  --text: #27313a;
  --muted: #71808b;
  --primary: #afc7e3;
  --primary-dark: #7899ba;
  --border: #dde7ef;
  --footer: #26333d;
  --white: #ffffff;
  --container: 1180px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(67, 92, 112, .10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 223, 221, .75);
  transition: box-shadow .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(55, 78, 95, .08);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.dropdown-trigger span {
  font-size: 16px;
  margin-left: 4px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px;
}

.dropdown-menu a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: .25s ease;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(220, 235, 243, .90), rgba(239, 246, 249, .28)),
    url("https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=2200&q=90")
    center / cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 250, 252, .86) 0%, rgba(244, 250, 252, .30) 52%, rgba(244, 250, 252, .05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 78px;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 13px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .98;
  letter-spacing: -.025em;
  font-weight: 600;
}

.hero-description {
  max-width: 590px;
  margin: 26px auto 32px;
  font-size: 17px;
  color: #52616c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 25px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(185, 101, 96, .22);
}

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

.btn-secondary {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: transparent;
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--primary);
}

.scroll-indicator {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  width: 28px;
  height: 42px;
  border: 1px solid rgba(70, 92, 108, .45);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 8px;
  border-radius: 5px;
  background: var(--primary-dark);
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 13px); opacity: .2; }
}

/* SECTIONS */
.section {
  padding: 110px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 23px;
}

.section-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 15px;
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 590px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.values-grid article {
  font-size: 13px;
}

.value-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--surface-pink);
  font-size: 25px;
}

.values-grid h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.values-grid p {
  color: var(--muted);
  line-height: 1.5;
}

/* PRODUCTS */
.merchant-section {
  background: var(--surface-soft);
}

.product-visual {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.device-dashboard {
  position: relative;
  width: min(100%, 590px);
  height: 430px;
}

.fake-window {
  position: absolute;
  left: 0;
  top: 30px;
  width: 88%;
  height: 355px;
  display: flex;
  overflow: hidden;
  background: white;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(67, 92, 112, .16);
  transform: perspective(900px) rotateY(5deg);
}

.fake-sidebar {
  width: 82px;
  padding: 22px 14px;
  background: #302d2c;
}

.fake-logo {
  display: block;
  margin-bottom: 32px;
  color: #afc7e3;
  font-size: 7px;
  letter-spacing: .08em;
}

.fake-sidebar i {
  display: block;
  width: 30px;
  height: 5px;
  margin: 18px auto;
  border-radius: 4px;
  background: #66757f;
}

.fake-content {
  flex: 1;
  padding: 27px;
}

.fake-topline,
.fake-title {
  width: 25%;
  height: 8px;
  border-radius: 10px;
  background: #d7e1e7;
}

.fake-title {
  width: 45%;
  height: 20px;
  margin-top: 15px;
  background: #33414a;
}

.fake-stats {
  display: flex;
  gap: 13px;
  margin-top: 28px;
}

.fake-stats span {
  flex: 1;
  height: 78px;
  border-radius: 12px;
  background: #e8f2f7;
}

.fake-chart {
  height: 145px;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
  padding: 0 20px;
  border-bottom: 1px solid #eee5e2;
}

.fake-chart b {
  flex: 1;
  max-width: 28px;
  height: 45%;
  border-radius: 6px 6px 0 0;
  background: #afc7e3;
}

.fake-chart b:nth-child(2) { height: 68%; }
.fake-chart b:nth-child(3) { height: 50%; }
.fake-chart b:nth-child(4) { height: 80%; }
.fake-chart b:nth-child(5) { height: 60%; }
.fake-chart b:nth-child(6) { height: 88%; }
.fake-chart b:nth-child(7) { height: 72%; }

.fake-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 168px;
  height: 345px;
  padding: 34px 13px 15px;
  border: 7px solid #282625;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 25px 45px rgba(67, 92, 112, .22);
  transform: rotate(4deg);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 62px;
  height: 13px;
  border-radius: 10px;
  background: #282625;
  transform: translateX(-50%);
}

.phone-line {
  width: 55%;
  height: 9px;
  border-radius: 8px;
  background: #383331;
}

.phone-card {
  height: 75px;
  margin-top: 18px;
  border-radius: 12px;
  background: #dcebf3;
}

.phone-card.small {
  height: 45px;
  background: #eef3f6;
}

.phone-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 25px;
  border-radius: 10px;
  background: #edf3f6;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 25px;
  margin: 30px 0;
}

.feature-list div {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
}

.feature-list span {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.customer-section {
  background: #fff;
}

.customer-visual {
  position: relative;
  min-height: 500px;
}

.customer-image {
  position: absolute;
  inset: 35px 0 0 80px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.customer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-phone {
  position: absolute;
  z-index: 2;
  width: 170px;
  height: 345px;
  padding: 34px 13px 15px;
  border: 7px solid #292727;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 55px rgba(67, 92, 112, .20);
}

.phone-one {
  left: 15px;
  top: 70px;
  transform: rotate(-6deg);
}

.phone-two {
  right: 5px;
  bottom: 15px;
  transform: rotate(7deg);
}

.mini-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #c8ddeb;
}

.mini-line {
  width: 65%;
  height: 10px;
  margin-top: 16px;
  border-radius: 10px;
  background: #3a3533;
}

.mini-card {
  height: 65px;
  margin-top: 15px;
  border-radius: 12px;
  background: #dcebf3;
}

.calendar-grid {
  height: 110px;
  margin-top: 5px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 32%, #d6e2e9 33%, transparent 34%, transparent 65%, #d6e2e9 66%, transparent 67%),
    linear-gradient(transparent 32%, #d6e2e9 33%, transparent 34%, transparent 65%, #d6e2e9 66%, transparent 67%),
    #eef6f9;
}

/* CONTACT */
.contact-section {
  background: var(--surface-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.contact-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 410px;
}

.contact-links {
  margin-top: 35px;
  display: grid;
  gap: 15px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5c5552;
  font-size: 14px;
}

.contact-links a:first-child {
  color: var(--primary-dark);
}

.contact-form {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(67, 92, 112, .06);
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-form label span {
  display: block;
  margin-bottom: 7px;
  color: #69615e;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: 0;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  transition: border .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(120, 153, 186, .10);
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  margin-top: 12px;
  color: var(--primary-dark);
  font-size: 13px;
}

/* FOOTER */
.site-footer {
  position: relative;
  padding: 60px 0 45px;
  background: var(--footer);
  color: #ddd6d3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1.2fr 1.4fr;
  gap: 50px;
}

.footer-logo {
  color: #afc7e3;
}

.footer-brand > p {
  margin-top: 10px;
  color: #aab6be;
  font-size: 12px;
  letter-spacing: .05em;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-row a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #4b5a64;
  border-radius: 50%;
  color: #d5e0e6;
  transition: .2s ease;
}

.social-row a:hover {
  color: white;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.site-footer h3 {
  margin-bottom: 15px;
  color: #afc7e3;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer .footer-grid > div:not(.footer-brand):not(.footer-legal) a {
  display: block;
  margin-bottom: 9px;
  color: #aab6be;
  font-size: 12px;
}

.site-footer a:hover {
  color: #fff !important;
}

.footer-legal {
  align-self: end;
  color: #8e9ba3;
  font-size: 11px;
}

.footer-legal div {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.back-top {
  position: absolute;
  right: 32px;
  bottom: 35px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(40, 30, 25, .08);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    text-align: left;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 15px;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .image-card img {
    height: 450px;
  }

  .customer-visual {
    min-height: 480px;
  }

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

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .navbar {
    min-height: 68px;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 68px);
  }

  .hero-description {
    font-size: 15px;
  }

  .section {
    padding: 75px 0;
  }

  .values-grid,
  .feature-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .image-card img {
    height: 380px;
  }

  .device-dashboard {
    transform: scale(.80);
    transform-origin: center;
    margin: -30px 0;
  }

  .customer-visual {
    min-height: 390px;
  }

  .customer-image {
    inset: 25px 0 0 35px;
  }

  .floating-phone {
    width: 145px;
    height: 295px;
  }

  .phone-two {
    right: -5px;
  }

  .phone-one {
    left: -3px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-legal {
    grid-column: auto;
  }

  .back-top {
    right: 20px;
    bottom: 25px;
  }
}
