/* Sepware. Two halves of one name: September (autumn: gold, orange, ember)
   and software (tech blue on deep navy). No scripts, no external files,
   nothing that tracks anyone. */
:root {
  --navy: #0b1533;
  --navy-2: #111f4a;
  --blue: #2f62f6;
  --blue-soft: #7cc4ff;
  --gold: #ffc93c;
  --orange: #f47b20;
  --ember: #d1401a;

  --ink: #0e1a3d;
  --soft: #56618a;
  --paper: #fbf7f1;
  --card: #ffffff;
  --line: #e7e1d6;
  --link: #1f49d6;
  --accent: #c2500f;
  --chip: #eef3ff;
  --sep-a: #e8890c; --sep-b: #c93d14;
  --ware-a: #2f7df6; --ware-b: #1f3fd0;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ff;
    --soft: #a9b3d6;
    --paper: #070d22;
    --card: #101a3d;
    --line: #223064;
    --link: #8fb4ff;
    --accent: #ff9b4a;
    --chip: #16224f;
    --sep-a: #ffc93c; --sep-b: #f47b20;
    --ware-a: #9ad4ff; --ware-b: #5a8dff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* The name itself says it: Sep in autumn, ware in blue. Each half is a
   gradient cut from the same colours as its half of the leaf. On paper the
   stops are deeper, so the name stays readable; on navy they are the
   logo's own. */
.name { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.sep, .ware { -webkit-background-clip: text; background-clip: text; color: transparent; }
.sep { background-image: linear-gradient(120deg, var(--sep-a), var(--sep-b)); }
.ware { background-image: linear-gradient(120deg, var(--ware-a), var(--ware-b)); }

/* On navy, whatever the theme. */
.top, .hero, .term.result { --sep-a: #ffc93c; --sep-b: #f47b20; --ware-a: #9ad4ff; --ware-b: #5a8dff; }

/* Top bar, on the hero's navy. */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 21, 51, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(124, 196, 255, 0.14); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
/* The space between links belongs to the menu, not to each link: the language
   link runs in the other direction, and a margin on its own start would fall
   on its far side. */
.top nav { display: flex; align-items: center; gap: 22px; margin-inline-start: 22px; }
.top nav a { white-space: nowrap; color: #c9d4f5; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: #fff; }

/* Hero: a navy sky with a faint grid, and leaves coming down through it. */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 82% 18%, rgba(47, 98, 246, 0.55), transparent 62%), radial-gradient(700px 420px at 8% 110%, rgba(244, 123, 32, 0.32), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124, 196, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 196, 255, 0.09) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 0.8rem/1 var(--mono); letter-spacing: 0.06em; color: var(--blue-soft); border: 1px solid rgba(124, 196, 255, 0.35); border-radius: 999px; padding: 8px 14px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.22); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--orange) 55%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.18rem; color: #c9d4f5; max-width: 44ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 14px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button.primary { background: linear-gradient(135deg, var(--gold), var(--orange) 60%, var(--ember)); color: #1a1030; box-shadow: 0 10px 26px -10px rgba(244, 123, 32, 0.8); }
.button.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.button:hover { transform: translateY(-2px); }

.art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.art .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 196, 255, 0.28), transparent 68%); }
.art .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(124, 196, 255, 0.35); animation: turn 60s linear infinite; }
.art .mark { position: absolute; inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); animation: float 7s ease-in-out infinite alternate; }
/* The moving drawing has room around it for the ring that spreads from the
   stem's node; it is placed so the leaf stands exactly where the still one does. */
.art .mark.live { inset: 13.28% 11.12% auto; width: 77.76%; height: 77.76%; }
.art .drift { position: absolute; animation: fall 9s ease-in-out infinite alternate; }
.art .d1 { width: 17%; left: 2%; top: 10%; }
.art .d2 { width: 12%; right: 0; top: 2%; animation-duration: 11s; animation-delay: -4s; }
.art .d3 { width: 14%; right: 4%; bottom: 6%; animation-duration: 10s; animation-delay: -2s; }
.art .d4 { width: 10%; left: 10%; bottom: 10%; animation-duration: 12s; animation-delay: -6s; }
@keyframes float { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
@keyframes fall { from { transform: translate(0, -10px) rotate(-14deg); } to { transform: translate(12px, 14px) rotate(16deg); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* The seam between the navy and the page: a soft diagonal. */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); }

section.block { padding: 72px 0 8px; }
.kicker { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
.lead { color: var(--soft); max-width: 58ch; margin: 0 0 28px; }

/* September + software = Sepware. */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.term img, .term svg { width: 54px; height: 54px; }
.term strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.term > span { color: var(--soft); font-size: 0.97rem; }
.term.autumn { border-top: 4px solid var(--orange); }
.term.tech { border-top: 4px solid var(--blue); }
.term.result { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.term.result > span { color: #c9d4f5; }
.term.result strong { font-size: 1.6rem; }
.op { align-self: center; font: 700 1.8rem/1 var(--mono); color: var(--soft); }

.product { display: grid; grid-template-columns: 132px 1fr auto; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px; position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue-soft), var(--blue) 45%, var(--orange) 55%, var(--gold)); }
.product > img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 16px 30px -14px rgba(14, 26, 61, 0.5); }
.product h3 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -0.02em; }
.product p { margin: 0 0 12px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { font: 600 0.78rem/1 var(--mono); background: var(--chip); color: var(--link); border-radius: 999px; padding: 7px 11px; }
.button.solid { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(47, 98, 246, 0.9); white-space: nowrap; }

.grid { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.grid svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--chip); color: var(--blue); margin-bottom: 14px; }
.grid.autumn svg, .grid.three li:nth-child(2) svg { color: var(--accent); background: color-mix(in srgb, var(--orange) 16%, transparent); }
.grid strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.grid span { color: var(--soft); font-size: 0.97rem; }

.cloud { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; border-radius: 28px; padding: 40px; color: #fff; background: radial-gradient(520px 300px at 100% 0%, rgba(47, 98, 246, 0.6), transparent 65%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.cloud .kicker { color: var(--gold); }
.cloud h2 { color: #fff; }
.cloud p { color: #c9d4f5; margin: 0; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; margin: 0; list-style: none; }
.badges li { font: 700 1rem/1 var(--mono); text-align: center; padding: 18px 12px; border-radius: 16px; border: 1px solid rgba(124, 196, 255, 0.35); background: rgba(124, 196, 255, 0.08); }
.badges li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.badges li:nth-child(2), .badges li:nth-child(3) { border-color: rgba(255, 201, 60, 0.4); background: rgba(244, 123, 32, 0.12); }

.team { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.team > div { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.founder { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
.initials { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font: 800 1.5rem/1 system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, var(--blue) 0 50%, var(--orange) 50% 100%); }
.founder strong { display: block; font-size: 1.3rem; letter-spacing: -0.02em; }
.founder .role { font: 600 0.8rem/1.4 var(--mono); color: var(--accent); }
.founder p { margin: 10px 0 0; color: var(--soft); }
.facts .label { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.facts .tags + .label { margin-top: 22px; }

/* Contact: the invitation on an autumn panel, the form beside it. */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); background-size: auto; animation: none; }
.contact .pitch { padding: 40px; color: #1a1030; background: linear-gradient(150deg, var(--gold), var(--orange) 55%, var(--ember)); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact .pitch .kicker { color: #1a1030; opacity: 0.75; margin: 0; }
.contact .pitch h2 { color: #1a1030; margin: 0; }
.contact .pitch p { margin: 0; }
.contact a.mail { margin-top: auto; background: var(--navy); color: #fff; text-decoration: none; font: 600 0.95rem/1 var(--mono); padding: 14px 18px; border-radius: 14px; }
.form { padding: 32px 36px; display: grid; gap: 16px; }
.form .field { display: grid; gap: 6px; }
.form label { font-weight: 700; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.form .hint, .form .note { margin: 0; color: var(--soft); font-size: 0.88rem; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form button:disabled { opacity: 0.6; cursor: progress; }
.form .status { margin: 0; font-weight: 700; }
.form .status:empty { display: none; }
.form .status.good { color: #14804f; }
.form .status.bad { color: var(--ember); }
/* A field for robots only: off the page, out of the tab order. */
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Inner pages: a shorter navy head, then reading text. */
.hero.small .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 84px; }
.hero.small h1 { max-width: 18ch; }
.hero.small p { max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.1rem; color: var(--soft); margin: 0 0 18px; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.grid.five { grid-template-columns: repeat(5, 1fr); }
.grid.five li { padding: 20px; }
.closing { margin-top: 72px; border-radius: 28px; padding: 44px; text-align: center; color: #fff; background: radial-gradient(520px 300px at 50% 0%, rgba(47, 98, 246, 0.6), transparent 65%), linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; gap: 20px; justify-items: center; }
.closing h2 { color: #fff; margin: 0; }

footer .links { display: flex; gap: 18px; }
footer a { color: inherit; }
footer { padding: 36px 0 48px; color: var(--soft); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }


/* ---- Motion: small, slow, and it all stops when asked to. ---- */
@media (prefers-reduced-motion: no-preference) {
  /* The hero arrives: each line rises into place, one after another. */
  .hero .rise { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero .rise:nth-child(1) { animation-delay: 0.05s; }
  .hero .rise:nth-child(2) { animation-delay: 0.15s; }
  .hero .rise:nth-child(3) { animation-delay: 0.28s; }
  .hero .rise:nth-child(4) { animation-delay: 0.4s; }
  .art { animation: bloom 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }

  /* The autumn word glows through its colours. */
  .hero h1 em { background-size: 220% 100%; animation: shimmer 6s ease-in-out infinite alternate; }

  /* Leaves come down through the navy, far apart and unhurried. */
  .falling img { animation: descend linear infinite; }

  /* The contact band's light moves slowly across it. */

  /* Cards lift under a pointer. */
  .term, .grid li, .product { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .term:hover, .grid li:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(14, 26, 61, 0.45); }
  .grid li:hover svg { animation: nod 0.5s ease; }

  /* Sections rise as they scroll into view, where the browser can. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(0.86) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes nod { 50% { transform: rotate(-10deg) scale(1.08); } }
@keyframes descend {
  0% { transform: translate(0, -12vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.55; }
  50% { transform: translate(34px, 34vh) rotate(160deg); }
  90% { opacity: 0.55; }
  100% { transform: translate(-18px, 82vh) rotate(330deg); opacity: 0; }
}
.falling { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.falling img { position: absolute; top: 0; width: 22px; opacity: 0; }
.falling .f1 { left: 6%; animation-duration: 17s; }
.falling .f2 { left: 28%; width: 16px; animation-duration: 22s; animation-delay: -8s; }
.falling .f3 { left: 47%; width: 26px; animation-duration: 19s; animation-delay: -13s; }
.falling .f4 { left: 63%; width: 14px; animation-duration: 24s; animation-delay: -4s; }
.falling .f5 { left: 90%; width: 20px; animation-duration: 20s; animation-delay: -16s; }
.art .mark.still { display: none; }

@media (max-width: 1000px) and (min-width: 821px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.five { grid-template-columns: repeat(3, 1fr); } .top nav { gap: 14px; } .top nav a { font-size: 0.9rem; } }
@media (max-width: 820px) {
  .top nav a:not(:nth-last-child(-n+2)) { display: none; }
  .top nav { gap: 16px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 84px; }
  .art { max-width: 260px; justify-self: center; order: -1; }
  .equation { grid-template-columns: 1fr; }
  .op { justify-self: center; }
  .product { grid-template-columns: 84px 1fr; padding: 22px; gap: 18px; }
  .product > img { width: 84px; height: 84px; border-radius: 20px; }
  .product .button { grid-column: 1 / -1; justify-content: center; }
  .grid.four, .grid.three, .team { grid-template-columns: 1fr; }
  .cloud { grid-template-columns: 1fr; padding: 28px; }
  .contact { grid-template-columns: 1fr; }
  .contact .pitch { padding: 28px; }
  .form { padding: 24px; }
  .grid.five { grid-template-columns: 1fr; }
  .closing { padding: 30px; }
  section.block { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art .mark, .art .drift, .art .ring { animation: none; }
  .art .mark.live { display: none; }
  .art .mark.still { display: block; }
  .button, .brand img { transition: none; }
}

/* ---- Languages ---- */
.top nav a.lang { border: 1px solid rgba(124, 196, 255, 0.4); border-radius: 999px; padding: 5px 12px; color: #fff; }

/* Arabic: its own letterforms need more room between lines, no tracking,
   and no small capitals. Labels drop the monospace face, which has no
   Arabic of its own. */
:lang(ar) { letter-spacing: 0 !important; }
html:lang(ar) body { font-family: system-ui, -apple-system, "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif; line-height: 1.85; }
html:lang(ar) h1, html:lang(ar) h2 { line-height: 1.4; }
html:lang(ar) .hero h1 { line-height: 1.35; }
html:lang(ar) .kicker, html:lang(ar) .eyebrow, html:lang(ar) .facts .label, html:lang(ar) .founder .role { font-family: inherit; text-transform: none; font-size: 0.95rem; line-height: 1.4; }
html:lang(ar) .eyebrow { padding: 6px 14px; }
/* Latin names inside an Arabic page keep their own face and direction. */
html:lang(ar) .name, html:lang(ar) .badges li, html:lang(ar) .tags li, html:lang(ar) a.mail { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
html:lang(en) .lang { font-family: system-ui, -apple-system, "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif; }

/* Right to left: the hero's light and its seam are mirrored, so the leaf
   still sits in the glow. Everything else follows from logical layout. */
[dir="rtl"] .hero { background: radial-gradient(900px 480px at 18% 18%, rgba(47, 98, 246, 0.55), transparent 62%), radial-gradient(700px 420px at 92% 110%, rgba(244, 123, 32, 0.32), transparent 60%), linear-gradient(200deg, var(--navy), var(--navy-2)); }
[dir="rtl"] .hero::before { -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 72%); }
[dir="rtl"] .hero::after { clip-path: polygon(100% 100%, 0 0, 0 100%); }
[dir="rtl"] .contact .pitch { background: linear-gradient(210deg, var(--gold), var(--orange) 55%, var(--ember)); }

/* The not-found page says it twice: the second language stands apart. */
.also { margin-top: 3rem; }
