@font-face {
  font-family: "Estedad";
  src: url("/fonts/estedad-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Estedad";
  src: url("/fonts/estedad-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-05FF;
}

:root {
  color-scheme: light;
  font-family: "Estedad", Tahoma, "Segoe UI", sans-serif;
  color: #1a1b17;
  background: #f1ede4;
  --ink: #1a1b17;
  --muted: #6c6b63;
  --paper: #f8f5ee;
  --line: #d8d2c5;
  --accent: #b66242;
  --dark: #171813;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 6% 12%, rgba(182, 98, 66, 0.14), transparent 27rem),
    #f1ede4;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  direction: ltr;
}

.wordmark-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #f7f1e8;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.wordmark > span:last-child { display: grid; gap: 2px; }
.wordmark strong { font-family: Arial, sans-serif; font-size: 0.96rem; letter-spacing: 0.16em; }
.wordmark small { color: #7a776e; font-family: Arial, sans-serif; font-size: 0.56rem; letter-spacing: 0.14em; }

.header-link {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
  min-height: 650px;
  padding: 88px 0 80px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 8.2vw, 7.6rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 2;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-width: 190px;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--dark);
  color: #fffaf1;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover { transform: translateY(-2px); background: var(--accent); }

.hero-panel {
  padding: 28px;
  border-radius: 28px;
  background: var(--dark);
  color: #f8f3e9;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #aead9f;
  font-size: 0.72rem;
}

.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #c9e9cf; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #71c885; box-shadow: 0 0 0 5px rgba(113, 200, 133, 0.12); }
.panel-number { margin: 62px 0 0; font-family: Arial, sans-serif; font-size: clamp(4.8rem, 10vw, 7.8rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.08em; }
.panel-label { max-width: 260px; margin: 20px 0 42px; color: #bcbcaf; font-size: 0.86rem; line-height: 1.8; }
.hero-panel dl { margin: 0; }
.hero-panel dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #393a33; }
.hero-panel dt { color: #8e8f84; font-size: 0.68rem; }
.hero-panel dd { margin: 0; color: #ece8de; font-size: 0.76rem; line-height: 1.7; }

.apps-section {
  padding: 88px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 290px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.9;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(248, 245, 238, 0.82);
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: #a8a094;
  box-shadow: 0 20px 46px rgba(35, 31, 24, 0.08);
}

.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.app-icon { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid #cbc4b7; border-radius: 50%; font-family: Arial, sans-serif; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.status { padding: 7px 12px; border-radius: 999px; font-size: 0.66rem; font-weight: 650; }
.status-active { background: #e1eee2; color: #2f6940; }
.status-private { background: #e4e4df; color: #55564e; }
.status-ready { background: #e5e0f2; color: #58477d; }
.status-building { background: #eee3d6; color: #7a5434; }
.card-copy { margin-top: 66px; }
.card-kicker { margin-bottom: 8px; color: var(--accent); font-size: 0.7rem; font-weight: 700; }
.app-card h3 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; }
.card-copy > p:last-child { max-width: 420px; margin-bottom: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.9; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 650; }
.card-action b { font-size: 1.1rem; font-weight: 400; }

.velvet { background: #1d1c20; color: #f8f3e9; border-color: #1d1c20; }
.velvet .app-icon { border-color: #515057; }
.velvet .card-copy > p:last-child { color: #aaa8af; }
.velvet .card-action { border-color: #3d3c42; }
.velvet:hover { border-color: #4c4b51; box-shadow: 0 20px 46px rgba(19, 17, 21, 0.18); }
.accounting { background: #e7ece8; }
.club { background: #eee9f4; }
.nivaro { background: #efe7db; }
.pastarella { background: #f2e3de; }

footer {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.footer-wordmark { opacity: 0.82; }
footer p { margin-bottom: 0; color: var(--muted); font-size: 0.76rem; }

@media (min-width: 980px) {
  .app-card:first-child { grid-row: span 2; min-height: 756px; }
  .app-card:first-child .card-copy { margin-top: auto; margin-bottom: 100px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-panel { max-width: 520px; }
  .section-heading { align-items: start; flex-direction: column; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 330px; }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer { width: min(100% - 24px, 1200px); }
  .site-header { min-height: 78px; }
  .header-link { font-size: 0.72rem; }
  .wordmark-mark { width: 36px; height: 36px; }
  h1 { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero { padding: 58px 0 64px; }
  .hero-panel { padding: 22px; border-radius: 22px; }
  .apps-section { padding: 68px 0 88px; }
  .app-card { padding: 22px; border-radius: 22px; }
  footer { align-items: start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

