/* ARES POS — posares.com
   Brand colors from app Themes/Colors.xaml
   Navy #0C1830 / #0C1222 / #0F172A | Emerald #10B981 | Teal #14B8A6
*/

:root {
  --navy-950: #080e1a;
  --navy-900: #0c1222;
  --navy-850: #0c1830;
  --navy-800: #111b2e;
  --navy-700: #1a2f50;
  --navy-600: #243b5c;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-deep: #047857;
  --teal: #14b8a6;
  --white: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eef2f7;
  --text: #111827;
  --text-muted: #64748b;
  --text-on-dark: #e8eef8;
  --text-on-dark-muted: #a1a8b8;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: #e2e8f0;
  --shadow: 0 18px 50px rgba(8, 14, 26, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --nav-h: 76px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--emerald);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--emerald);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

h1,
.display {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0.85rem 0 0;
}

.section-dark {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(20, 184, 166, 0.1), transparent 50%),
    linear-gradient(160deg, var(--navy-950), var(--navy-850) 45%, var(--navy-900));
  color: var(--text-on-dark);
}

.section-dark .lead,
.section-dark .section-head p,
.section-dark .muted {
  color: var(--text-on-dark-muted);
}

.section-soft {
  background: linear-gradient(180deg, var(--surface), var(--white));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #06281f;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--navy-850);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald-deep);
}

.btn-ghost {
  color: var(--text-on-dark);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  color: var(--emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links > a,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.nav-links > a:hover,
.nav-dropdown > summary:hover,
.nav-links > a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 210px;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--navy-900);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-dropdown-panel a:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(20, 184, 166, 0.12), transparent 50%),
    linear-gradient(155deg, #070b16 0%, var(--navy-850) 48%, #132039 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--text-on-dark-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.device-frame {
  position: relative;
  border-radius: 18px;
  padding: 0.65rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.device-frame-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
}

.device-frame-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.device-frame img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--navy-900);
}

.device-frame-phone {
  max-width: 280px;
  margin-inline: auto;
}

.device-frame-phone img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(12, 18, 34, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, 0.35);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  box-shadow: none;
}

.card-dark:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(20, 184, 166, 0.1));
  color: var(--emerald-deep);
  font-weight: 800;
  font-family: var(--font-display);
}

.card-dark .card-icon {
  color: var(--emerald);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-dark p,
.card-dark li {
  color: var(--text-on-dark-muted);
}

.feature-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--emerald);
}

.audience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.audience-strip span {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-light);
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--navy-850);
}

/* Screenshots gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shot-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.shot-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shot-card figcaption {
  font-weight: 700;
  color: var(--navy-850);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shot-card figcaption span {
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--muted);
}

.shot-card .device-frame {
  background: linear-gradient(160deg, #1a2740, #0c1830);
}

/* Why / tech / security */
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-item .num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.85rem;
}

.tech-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-light);
}

.tech-pill strong {
  font-family: var(--font-display);
  color: var(--navy-850);
}

.tech-pill span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Restaurant promo */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 45%),
    linear-gradient(145deg, var(--navy-850), var(--navy-900));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel .lead {
  color: var(--text-on-dark-muted);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(16, 185, 129, 0.15), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-850));
  color: var(--white);
}

.page-hero .lead {
  color: var(--text-on-dark-muted);
  margin-top: 0.9rem;
}

/* Support / contact / legal */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--emerald-deep);
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border-light);
}

.contact-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.35rem 0 0;
  font-weight: 650;
  color: var(--navy-850);
}

.todo-field {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px dashed #fdba74;
}

.legal-content {
  max-width: 48rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer a {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--emerald);
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
}

/* Animations — progressive enhancement: visible by default, hide only after JS marks ready */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(18px);
  }

  html.js-ready .reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js-ready .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .hero-copy {
    animation: rise 0.8s ease both;
  }

  .hero-visual {
    animation: rise 0.9s ease 0.12s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-mobile-cta {
  display: none !important;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .shot-grid,
  .shot-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1rem 1rem 1.25rem;
    background: #080e1a;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 120;
  }

  body.nav-open .nav-links > a,
  body.nav-open .nav-dropdown > summary {
    padding: 0.9rem 1rem;
  }

  body.nav-open .nav-dropdown-panel {
    position: static;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  body.nav-open .nav-mobile-cta {
    display: inline-flex !important;
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
  }

  body.nav-open .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .grid-4,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
