:root {
  --ink: #0f1b2d;
  --ink-soft: #3b4a5e;
  --muted: #6b7a8f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --brand: #17191d;
  --brand-2: #2e333b;
  --accent: #c9cdd3;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12,13,16,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 400; font-size: .95rem; letter-spacing: .26em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #b4b9c0; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2e333b; }
.hero .btn-primary, .page-hero .btn-primary { background: #fff; color: #111316; }
.hero .btn-primary:hover, .page-hero .btn-primary:hover { background: #e4e6ea; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1c1f24 0%, #08090b 100%);
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: max(32px, calc((100% - var(--max)) / 2)); top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; background: url("assets/fehu-mark.png") center/contain no-repeat;
  opacity: .12; mix-blend-mode: screen; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { color: #c3c7cd; font-size: 1.15rem; max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }

.page-hero { background: var(--brand); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c3c7cd; font-size: 1.1rem; max-width: 680px; margin: 0; }

/* Sections */
section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: #eef0f3; color: var(--brand); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

/* Product feature block */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.product + .product { margin-top: 80px; }
.product.reverse .product-media { order: -1; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eceef1; color: #3a3f47; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* POS mock illustration */
.product-media {
  background: linear-gradient(160deg, #f1f2f4, #e3e5e9); border-radius: 16px; padding: 36px;
  border: 1px solid var(--line);
}
.pos-screen {
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(15,17,20,.15);
  overflow: hidden; font-size: .85rem;
}
.pos-bar { background: var(--brand); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; font-weight: 600; }
.pos-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.pos-items { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-items div { background: #f1f2f4; border-radius: 6px; height: 46px; }
.pos-items div:nth-child(3n+1) { background: #e4e6ea; }
.pos-ticket { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pos-ticket .row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.pos-ticket .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; color: var(--ink); }
.pos-ticket .pay { margin-top: auto; background: var(--accent); color: #111316; text-align: center; border-radius: 6px; padding: 9px; font-weight: 700; }

/* Real app screenshots */
.product-media.shot { padding: 0; overflow: hidden; }
.product-media.shot img { display: block; width: 100%; height: auto; }
.shot-caption { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.devices { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.devices li { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

.code-media {
  background: #0f1b2d; color: #c3c7cd; border-radius: 16px; padding: 28px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85rem; line-height: 1.8;
}
.code-media .k { color: #e0b46a; }
.code-media .s { color: #8fd1b0; }
.code-media .c { color: #6b7a8f; }

/* Security block */
.security { background: var(--brand); color: #fff; border-radius: 16px; padding: 48px 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.security h2 { color: #fff; margin-bottom: .4em; }
.security > p { color: #c3c7cd; margin: 0; }
.security ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.security li { padding-left: 30px; position: relative; color: #e4e6ea; }
.security li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.security li strong { display: block; color: #fff; margin-bottom: 2px; }

/* CTA */
.cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list .value { color: var(--ink); font-weight: 500; }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal ul { color: var(--ink-soft); padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: #0c0d10; color: #9a9fa7; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #c3c7cd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer p { color: #9a9fa7; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .product, .footer-grid { grid-template-columns: 1fr; }
  .product.reverse .product-media { order: 0; }
  .security { grid-template-columns: 1fr; padding: 36px; }
  .cta { padding: 36px; }
  section { padding: 60px 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #0c0d10; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 16px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-bottom: 14px; }
  .hero { padding: 64px 0; }
  .hero::after { width: 260px; height: 260px; right: 16px; opacity: .07; }
  .pos-body { grid-template-columns: 1fr; }
  .pos-ticket { border-left: 0; border-top: 1px solid var(--line); }
  .product-media { padding: 20px; }
}
