/* FynxDocs website · © 2026 iFynx Integrated Solutions P.S.C. */

@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --brand: #6366F1;
  --brand-deep: #4338CA;
  --brand-soft: #EEF2FF;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --border: #EAECF0;
  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #818CF8;
    --brand-deep: #6366F1;
    --brand-soft: #1E1B4B;
    --bg: #0C111D;
    --card: #161B26;
    --border: #1F242F;
    --text: #F5F5F6;
    --text-2: #CECFD2;
    --text-3: #94969C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Thmanyah Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); text-decoration: none; }
.lang { border: 1px solid var(--border); }

/* Landing */
.hero { padding-block: 72px 40px; text-align: center; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 24px 0 12px; letter-spacing: -.02em; }
.hero p { font-size: 20px; color: var(--text-2); max-width: 620px; margin: 0 auto 28px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .pill { color: var(--brand); } }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 17px; }
.store:hover { text-decoration: none; opacity: .9; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-block: 24px 64px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }


/* Documents (privacy, terms, support) */
.doc { padding-block: 48px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.doc .meta { color: var(--text-3); margin: 0 0 32px; }
.doc .lead { font-size: 19px; color: var(--text-2); }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.doc .card { margin: 24px 0; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-3); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-inline-start: auto; }
.site-footer a { color: var(--text-2); }

@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .nav { margin-inline-start: 0; width: 100%; }
  .hero { padding-top: 48px; }
}
