/* ============================================================
   KLYVORA TECHNOLOGIES — shared stylesheet
   Brand: black + orange sunrise. Motif: rising sun / new dawn.
   ============================================================ */

:root {
  --ink:       #0E0E12;
  --ink-soft:  #17171C;
  --ink-2:     #1F1F27;
  --orange:    #FF6A00;
  --amber:     #FF9E2C;
  --paper:     #FFFFFF;
  --mist:      #F5F5F7;
  --line:      #E7E7EC;
  --line-dark: #2A2A33;
  --slate:     #35353E;
  --muted:     #74747F;
  --muted-d:   #9A9AA6;

  --sun: linear-gradient(118deg, #FF6A00 0%, #FF9E2C 100%);

  --shell: min(1180px, 90vw);
  --r: 14px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- Rising-sun logo mark ---------- */
.mark { display: inline-flex; align-items: center; gap: 14px; }
.mark svg { width: 44px; height: 44px; flex: none; }
.mark .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .16em;
  color: var(--ink);
}
.mark .word b { color: var(--orange); font-weight: 700; }
.mark .sub {
  display: block;
  font-size: .56rem;
  letter-spacing: .42em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}
.on-dark .mark .word, .on-dark .mark .word { color: #fff; }
.on-dark .mark .sub { color: var(--muted-d); }

/* ---------- Header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--slate);
  padding: 6px 0; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--sun); border-radius: 2px;
}
.nav-cta {
  background: var(--sun); color: #fff; padding: 12px 22px;
  border-radius: 10px; font-weight: 600; font-size: .9rem;
  box-shadow: 0 6px 18px -8px rgba(255,106,0,.7);
  transition: transform .18s ease, filter .18s ease;
}
.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 11px; cursor: pointer; border: 0; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; font-family: var(--font-body); }
.btn-sun { background: var(--sun); color: #fff; box-shadow: 0 8px 24px -10px rgba(255,106,0,.7); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255,106,0,.8); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { /* sunrise glow */
  content: ""; position: absolute; right: -12%; bottom: -46%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,120,0,.55), rgba(255,120,0,0) 62%);
  filter: blur(6px); pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 58px 0 84px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #C9C9D2; font-size: 1.15rem; max-width: 46ch; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; color: var(--muted-d); font-size: .84rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }

/* eyebrow (used sparingly) */
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .04em; color: var(--orange); margin-bottom: 14px; }

/* ---------- Section scaffolding ---------- */
section { padding: 92px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-mist { background: var(--mist); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: var(--muted-d); }

/* ---------- Service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--paper); padding: 34px 30px; transition: background .2s ease; }
.svc:hover { background: #FFFBF6; }
.svc .ico { width: 42px; height: 42px; margin-bottom: 20px; color: var(--orange); }
.svc h3 { font-size: 1.16rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: .96rem; margin: 0; }

/* full service list (services page) */
.svc-rows { display: grid; gap: 22px; }
.svc-row { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.svc-row .n { font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: 1.05rem; }
.svc-row h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-row p { color: var(--slate); margin: 0; }

/* ms practice block */
.ms-block { border-radius: var(--r); background: var(--ink); color: #fff; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.ms-block h3 { color: #fff; font-size: 1.5rem; }
.ms-block .tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: .78rem; color: var(--amber); }
.ms-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ms-block li { padding-left: 26px; position: relative; color: #D6D6DE; font-size: .96rem; }
.ms-block li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 2px; background: var(--sun); }

/* ---------- Why / feature list ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.why { display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.why .b { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,106,0,.12); color: var(--orange); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.section-dark .why .b { background: rgba(255,158,44,.16); }
.why h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why p { margin: 0; color: var(--muted); }
.section-dark .why p { color: var(--muted-d); }

/* ---------- Work rows ---------- */
.work-list { display: grid; gap: 20px; }
.work-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 34px 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: border-color .2s ease, transform .2s ease; }
.work-item:hover { border-color: var(--orange); transform: translateY(-2px); }
.work-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.work-item p { margin: 0; color: var(--slate); max-width: 68ch; }
.work-item .dev { font-size: .72rem; color: var(--orange); font-weight: 600; margin-left: 10px; }
.sector { white-space: nowrap; align-self: start; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; font-family: var(--font-display); }

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 12px 0 8px; }
.stat { background: var(--ink); color: #fff; border-radius: var(--r); padding: 34px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .lab { color: var(--muted-d); margin-top: 10px; font-size: .95rem; }
.found-list { display: grid; gap: 16px; margin-top: 8px; }
.found-list li { list-style: none; padding-left: 30px; position: relative; }
.found-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 3px; border-radius: 3px; background: var(--sun); }
.found-list b { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .k { color: var(--muted); font-size: .82rem; }
.contact-info .v { font-weight: 600; color: var(--ink); }
.contact-info .ico { color: var(--orange); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.req { color: var(--orange); font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: var(--muted-d); margin: 16px auto 30px; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink-soft); color: #C9C9D2; padding: 64px 0 34px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-top p { color: var(--muted-d); max-width: 40ch; margin: 18px 0 0; font-size: .95rem; }
.foot-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--muted-d); font-size: .93rem; }
.foot-col a:hover { color: var(--orange); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .84rem; color: var(--muted-d); }
.foot-tag { color: var(--amber); font-weight: 600; font-family: var(--font-display); letter-spacing: .02em; }
.foot-badge { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted-d); }
.foot-badge .ms { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.foot-badge .ms i { width: 9px; height: 9px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 16px 5vw 24px; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .28s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; }
  .nav-toggle { display: block; }
  .hero-grid, .two-col, .contact-grid, .ms-block { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: auto; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-grid { padding: 64px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
