/* GLISS site v0.2 — refined editorial design, Hebrew RTL */

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

:root {
  /* Palette: warm paper + deep cocoa + burnt sienna */
  --bg: #f6f1e6;
  --bg-card: #fefdfa;
  --bg-warm: #ede2cc;
  --bg-deep: #1a1310;
  --text: #1a1410;
  --text-muted: #6b5d4f;
  --text-light: #a39687;
  --accent: #a13b1a;
  --accent-dark: #6e2710;
  --accent-light: #e8d5c4;
  --border: #d6c9b1;
  --border-strong: #8c7d68;
  --shadow-soft: 0 1px 2px rgba(26,20,16,.04), 0 8px 24px rgba(26,20,16,.05);
  --shadow-strong: 0 4px 16px rgba(26,20,16,.06), 0 24px 56px rgba(26,20,16,.10);
  --radius: 2px;
  --radius-lg: 6px;
  --max-width: 1280px;
  --font-display: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --font-headline: "Frank Ruhl Libre", "Fraunces", Georgia, serif;
  --font-body: "Assistant", "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  direction: rtl;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture across the body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(26,20,16,.025) 1px, transparent 1px),
    radial-gradient(rgba(26,20,16,.015) 1px, transparent 1px);
  background-size: 32px 32px, 24px 24px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.025em; line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { padding-right: 1.5em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; position: relative; }

main, section, header, footer { position: relative; z-index: 1; }

/* === Header === */
.site-header {
  background: rgba(246,241,230,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  gap: 32px;
}

.brand {
  display: flex; flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -.04em;
  color: var(--text);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-feature-settings: "ss01" on;
}

/* Inline GLISS wordmark — used everywhere GLISS appears in body copy */
.gliss {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-feature-settings: "ss01" on;
}
.brand-tagline {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-top: 4px;
  text-transform: none;
}

.nav { display: flex; gap: 36px; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--accent); }

/* === Buttons === */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* === Hero === */
.hero {
  padding: 96px 0 120px;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 7fr 6fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  max-width: 80px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}
.hero-tagline {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-tagline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  font-feature-settings: "ss01" on, "ss02" on;
}
.hero .lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}
.hero .lead strong { color: var(--text); font-weight: 700; }
.hero .lead-how {
  font-size: 1.05rem;
  margin-bottom: 36px;
  padding-right: 18px;
  border-right: 2px solid var(--accent);
  padding-top: 4px;
  padding-bottom: 4px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 4/5;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 16/10; }
}

/* === Stats band === */
.stats-band {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
  direction: ltr;
  unicode-bidi: isolate;
}
.stat-label {
  color: rgba(254,253,250,.7);
  font-size: .95rem;
  letter-spacing: .02em;
}
.stats-disclaimer {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(254,253,250,.45);
  font-size: .82rem;
  margin-top: 24px;
  font-style: italic;
}

@media (max-width: 700px) {
  .stats-band .container { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 24px; }
  .stat:last-child { border-bottom: none; }
}

/* === Sections === */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head .section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* === Value cards === */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.value-card .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* === Product grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-strong);
  text-decoration: none;
}
.product-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--text);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin-bottom: 8px; }
.product-card .desc { color: var(--text-muted); font-size: .98rem; margin-bottom: 20px; flex: 1; line-height: 1.6; }
.product-card .specs {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.product-card .price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.product-card .price small {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* === Product detail === */
.product-detail { padding: 56px 0 72px; }
.product-detail .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-detail .product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  position: sticky;
  top: 100px;
}
.product-detail h1 { margin-bottom: 12px; }
.product-detail .product-lead {
  color: var(--text-muted);
  font-size: 1.18rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.product-detail .product-body p { margin-bottom: 1.2em; }
.product-detail .price-block {
  margin: 32px 0;
  padding: 28px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.product-detail .price-main {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.product-detail .price-vat {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}
.product-detail .moq {
  color: var(--text-muted);
  font-size: .95rem;
  margin-top: 12px;
}

.spec-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: .98rem; }
.spec-table th, .spec-table td {
  text-align: right;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th {
  width: 36%;
  font-weight: 600;
  color: var(--text-muted);
  font-size: .92rem;
  background: transparent;
}
.spec-table td { color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .product-detail .container { grid-template-columns: 1fr; gap: 40px; }
  .product-detail .product-image { position: static; }
}

/* === Use cases === */
.use-cases { background: var(--bg-warm); }
.use-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}
.use-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0;
  font-size: .98rem;
  transition: border-color .15s ease;
}
.use-list li:hover { border-color: var(--border-strong); }

/* === Process steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: -.04em;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.step h4 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: .96rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* === Notes / disclaimers === */
.note {
  background: var(--bg-card);
  border-right: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: .98rem;
  color: var(--text-muted);
  margin: 24px 0;
  line-height: 1.65;
}
.note strong { color: var(--text); }
.note.warn { border-right-color: var(--accent-dark); background: #fdf6ee; }

/* === FAQ === */
.faq-list { max-width: 860px; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-headline);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -.01em;
}
.faq-a { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.faq-a strong { color: var(--text); }

/* === Consulting section === */
.consulting {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.consulting .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.consulting h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-feature-settings: "ss01" on;
}
.consulting .pitch {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}
.consulting .pitch strong { font-weight: 700; }
.consulting .credentials {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}
.consulting .credentials li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  font-size: .98rem;
  color: var(--text-muted);
}
.consulting .credentials li:last-child { border-bottom: none; }
.consulting .credentials .cred-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -.02em;
  min-width: 56px;
}
.consulting .credentials .cred-label { color: var(--text); }

@media (max-width: 800px) {
  .consulting .container { grid-template-columns: 1fr; gap: 32px; }
}

/* === CTA section === */
.cta-band {
  background: var(--bg-deep);
  color: var(--bg);
  text-align: center;
  padding: 96px 32px;
}
.cta-band h2 {
  color: var(--bg);
  margin-bottom: 16px;
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}
.cta-band p {
  color: rgba(254,253,250,.7);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}
.cta-band .btn-primary {
  background: var(--bg);
  color: var(--text);
}
.cta-band .btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === Forms === */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .15s ease;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* === Footer === */
.site-footer {
  background: var(--bg-deep);
  color: rgba(254,253,250,.7);
  padding: 72px 0 36px;
  margin-top: 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 0 32px;
}
.site-footer .brand-mark { color: var(--bg); }
.site-footer .brand-tagline { color: rgba(254,253,250,.55); }
.site-footer h4 { color: var(--bg); margin-bottom: 18px; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: rgba(254,253,250,.7); display: block; margin-bottom: 10px; font-size: .95rem; }
.site-footer a:hover { color: var(--bg); }
.site-footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(254,253,250,.1);
  padding-top: 28px; margin-top: 32px;
  font-size: .85rem;
  color: rgba(254,253,250,.45);
}

@media (max-width: 700px) {
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .lead, .hero .actions, .hero-image { animation: fadeUp .6s ease both; }
.hero .lead { animation-delay: .08s; }
.hero .actions { animation-delay: .16s; }
.hero-image { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
