@import url("./roveth-tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--roveth-paper); }
body {
  margin: 0;
  color: var(--roveth-graphite);
  background:
    radial-gradient(ellipse at 88% 8%, rgba(85,122,118,.10), transparent 30rem),
    linear-gradient(180deg, #F7F5EF 0%, var(--roveth-paper) 62%, #F7F5EF 100%);
  font-family: var(--roveth-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 100; }
.skip-link:focus { left: 16px; background: var(--roveth-teal); color: #fff; padding: 10px 14px; border-radius: 7px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,239,.91);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,221,213,.88);
}
.nav-wrap { min-height: 78px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:inline-flex; align-items:center; text-decoration:none; flex:0 0 auto; }
.brand img { width:184px; height:auto; display:block; }
.header-actions { display:flex; align-items:center; gap:26px; }
.nav { display:flex; align-items:center; gap:30px; }
.nav a { color:#59656A; text-decoration:none; font-family:var(--roveth-font-display); font-size:.83rem; font-weight:700; letter-spacing:.015em; transition:color .2s ease, background .2s ease, border-color .2s ease; }
.nav a:hover, .nav a:focus-visible { color:var(--roveth-teal-dark); }
.nav .nav-github { color:var(--roveth-surface-strong); border:1px solid var(--roveth-teal-dark); border-radius:8px; padding:9px 15px; background:var(--roveth-teal); }
.nav .nav-github:hover { background:var(--roveth-teal-dark); color:#fff; }
.nav-github span { color:#E7D8BD; margin-inline-start:6px; }
.language-switch {
  display:inline-flex; align-items:center; gap:6px; padding:5px 7px;
  border:1px solid var(--roveth-border-strong); border-radius:8px;
  background:rgba(255,255,255,.58); flex:0 0 auto;
}
.language-option {
  min-width:29px; min-height:28px; padding:2px 5px; border:0; border-radius:5px;
  color:#78827F; background:transparent; cursor:pointer;
  font-family:var(--roveth-font-mono); font-size:.69rem; font-weight:600;
  letter-spacing:.04em; transition:background .18s ease,color .18s ease;
}
.language-option:hover { color:var(--roveth-graphite); }
.language-option.is-active { color:#fff; background:var(--roveth-teal); }
.language-option:focus-visible { outline:2px solid var(--roveth-brass); outline-offset:2px; }
.language-divider { color:#A5ACA5; font-family:var(--roveth-font-mono); font-size:.7rem; }
.menu-toggle { display:none; width:42px; height:42px; border:1px solid var(--roveth-border-strong); border-radius:8px; background:var(--roveth-surface); cursor:pointer; }
.menu-toggle span { display:block; height:2px; width:17px; margin:5px auto; background:var(--roveth-graphite); }

.hero { min-height:650px; display:grid; grid-template-columns:1fr 1.04fr; gap:52px; align-items:center; padding-top:76px; padding-bottom:82px; position:relative; isolation:isolate; }
.hero-copy { position:relative; z-index:2; }
.eyebrow, .section-kicker, .foundation-label, .overline, .preview-label, .card-foot, .hero-note { font-family:var(--roveth-font-mono); letter-spacing:.095em; }
.eyebrow { display:flex; align-items:center; gap:10px; color:#6C6251; font-size:.71rem; font-weight:600; margin-bottom:23px; }
.status-dot, .local-pill span { width:7px; height:7px; border-radius:50%; background:var(--roveth-teal); box-shadow:0 0 0 4px rgba(85,122,118,.12); }
h1,h2,h3,p { margin-top:0; }
h1 { font-family:var(--roveth-font-display); font-size:clamp(3rem,5.4vw,5.05rem); line-height:1.06; letter-spacing:-.058em; max-width:650px; margin-bottom:24px; font-weight:800; color:var(--roveth-graphite); }
h1 .hero-accent { color:var(--roveth-teal-dark); }
.hero-lead { color:#566269; font-size:1.08rem; line-height:1.82; max-width:570px; margin-bottom:30px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:49px; padding:0 20px; border-radius:8px; text-decoration:none; font-family:var(--roveth-font-display); font-size:.87rem; font-weight:800; transition:transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform:translateY(-2px); }
.button-primary { background:var(--roveth-teal); color:#fff; border:1px solid var(--roveth-teal); box-shadow:0 9px 24px rgba(49,95,90,.15); }
.button-primary:hover { background:var(--roveth-teal-dark); border-color:var(--roveth-teal-dark); }
.button-secondary { background:rgba(255,255,255,.68); border:1px solid #B7A587; color:var(--roveth-graphite); }
.button-secondary:hover { background:#fff; border-color:var(--roveth-brass); }
.hero-note { display:flex; align-items:center; gap:10px; margin-top:29px; color:#69746F; font-size:.65rem; }
.mini-line { width:22px; height:1px; background:var(--roveth-brass); }
.note-divider { color:#B9B8AE; }
.hero-orbit { position:absolute; border:1px solid rgba(85,122,118,.11); border-radius:50%; z-index:-1; pointer-events:none; }
.orbit-one { width:600px; height:600px; right:-255px; top:10px; }
.orbit-two { width:455px; height:455px; right:-180px; top:82px; border-color:rgba(168,138,97,.13); }

/* Dark workbench preview intentionally contrasts with the light marketing site. */
.workbench-card { position:relative; z-index:2; background:linear-gradient(150deg,#243234 0%,#172225 62%,#131D20 100%); color:var(--roveth-workbench-text); border:1px solid #405153; border-radius:17px; box-shadow:0 25px 65px rgba(31,44,42,.20); overflow:hidden; }
.card-topline { display:flex; align-items:center; gap:16px; padding:15px 20px; background:rgba(8,15,16,.35); border-bottom:1px solid var(--roveth-workbench-border); }
.window-controls { display:flex; gap:5px; }
.window-controls i { width:6px; height:6px; border-radius:50%; display:block; background:#71807C; }
.preview-label { color:#A0ACA7; font-size:.59rem; }
.local-pill { display:flex; align-items:center; gap:8px; margin-left:auto; color:var(--roveth-workbench-teal); font-family:var(--roveth-font-mono); font-size:.62rem; letter-spacing:.1em; }
.local-pill span { width:6px; height:6px; background:var(--roveth-workbench-teal); box-shadow:none; }
.workbench-title { display:flex; justify-content:space-between; align-items:end; padding:23px 24px 18px; }
.overline { color:#9BAAA4; font-size:.62rem; display:block; margin-bottom:4px; }
.workbench-title h2 { font-family:var(--roveth-font-display); font-size:1.35rem; margin:0; letter-spacing:-.025em; color:#F0F1EB; }
.record-count { font-family:var(--roveth-font-mono); color:#A0ACA7; font-size:.61rem; letter-spacing:.08em; }
.source-tabs { display:flex; gap:4px; padding:0 17px; border-bottom:1px solid var(--roveth-workbench-border); overflow-x:auto; }
.source-tab { flex:1; min-width:72px; background:transparent; border:0; border-bottom:2px solid transparent; color:#A0ACA7; padding:13px 8px 11px; cursor:pointer; font-family:var(--roveth-font-mono); font-size:.67rem; }
.source-tab:hover { color:#fff; }
.source-tab.is-active { color:#F0F1EB; border-bottom-color:var(--roveth-workbench-teal); background:rgba(140,183,172,.10); }
.source-tab:focus-visible { outline:2px solid var(--roveth-workbench-brass); outline-offset:-3px; }
.sample-output { padding:18px 24px 22px; min-height:221px; }
.data-row { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:12px 0; border-bottom:1px solid rgba(160,172,167,.16); font-family:var(--roveth-font-mono); font-size:.67rem; }
.data-row:last-child { border-bottom:0; }
.data-row span { color:#A0ACA7; white-space:nowrap; }
.data-row strong { color:#E8ECE5; text-align:right; font-weight:500; overflow-wrap:anywhere; }
.data-row strong.cyan { color:var(--roveth-workbench-teal); }
.data-row strong.state-value { color:#D2BD98; }
.card-foot { display:flex; justify-content:space-between; padding:12px 23px; background:rgba(8,15,16,.25); border-top:1px solid var(--roveth-workbench-border); color:#9BAAA4; font-size:.57rem; }
.card-foot b { color:var(--roveth-workbench-brass); font-weight:500; margin-inline-start:5px; }

.statement { padding:43px 0 74px; border-top:1px solid var(--roveth-border); border-bottom:1px solid var(--roveth-border); }
.section-kicker { color:#6A746E; font-size:.67rem; font-weight:600; margin-bottom:18px; }
.section-kicker span { color:#9A9D91; margin-inline-start:13px; }
.statement p { max-width:980px; font-family:var(--roveth-font-display); font-size:clamp(1.5rem,3vw,2.35rem); line-height:1.48; letter-spacing:-.035em; font-weight:650; margin:0; color:var(--roveth-graphite); }
.statement em { color:var(--roveth-teal-dark); font-style:normal; }

.platform-section { padding-top:92px; padding-bottom:96px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:38px; margin-bottom:34px; }
.section-heading h2 { font-family:var(--roveth-font-display); font-size:clamp(2rem,4vw,2.85rem); line-height:1.15; letter-spacing:-.045em; margin:0; color:var(--roveth-graphite); }
.section-heading > p { color:#68736F; max-width:380px; margin:0 0 4px; font-size:.94rem; }
.capability-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.capability-card { min-height:310px; padding:22px 21px 21px; border:1px solid var(--roveth-border); background:rgba(255,255,255,.62); border-radius:13px; box-shadow:0 7px 20px rgba(48,59,52,.035); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.capability-card:nth-child(2) { background:linear-gradient(155deg,#EDF3EE,#F8F8F2); border-color:#D0DED5; }
.capability-card:hover { transform:translateY(-4px); border-color:#B6C8BD; box-shadow:0 14px 28px rgba(48,59,52,.07); }
.cap-number { color:var(--roveth-graphite); font-family:var(--roveth-font-mono); font-size:.82rem; }
.cap-number span { color:#7C8983; font-size:.63rem; margin-inline-start:6px; }
.cap-icon { height:58px; display:flex; align-items:center; margin:16px 0 17px; position:relative; }
.cap-icon i { display:block; position:absolute; border:1.5px solid var(--roveth-teal); border-radius:4px; }
.icon-ingest i:nth-child(1) { width:20px;height:20px;left:2px;top:13px;border-color:var(--roveth-brass); }
.icon-ingest i:nth-child(2) { width:20px;height:20px;left:13px;top:20px;border-color:var(--roveth-teal); }
.icon-ingest i:nth-child(3) { width:20px;height:20px;left:24px;top:27px;border-color:#C28A4A; }
.icon-normalize i:nth-child(1) { width:40px;height:12px;left:2px;top:8px; }
.icon-normalize i:nth-child(2) { width:40px;height:12px;left:2px;top:22px;border-color:#82A89A; }
.icon-normalize i:nth-child(3) { width:40px;height:12px;left:2px;top:36px; }
.icon-preserve i:nth-child(1) { width:28px;height:39px;left:3px;top:8px;border-radius:5px;border-color:var(--roveth-brass); }
.icon-preserve i:nth-child(2) { width:28px;height:39px;left:20px;top:15px;border-color:var(--roveth-teal);border-radius:5px; }
.icon-report i:nth-child(1) { width:39px;height:42px;left:3px;top:6px;border-radius:4px; }
.icon-report i:nth-child(2) { width:23px;height:2px;left:11px;top:18px;background:var(--roveth-teal);border:0; }
.icon-report i:nth-child(3) { width:23px;height:2px;left:11px;top:27px;background:var(--roveth-brass);border:0; }
.capability-card h3 { font-family:var(--roveth-font-display); font-size:1.04rem; letter-spacing:-.02em; margin:0 0 10px; color:var(--roveth-graphite); }
.capability-card p { font-size:.84rem; color:#68736F; min-height:76px; margin-bottom:17px; line-height:1.68; }
.tag-row { display:flex; flex-wrap:wrap; gap:5px; }
.tag-row span { color:#53635E; border:1px solid #D1D9D1; background:rgba(250,250,246,.68); border-radius:5px; padding:4px 6px; font-family:var(--roveth-font-mono); font-size:.51rem; letter-spacing:.025em; }

.workflow-section { background:linear-gradient(180deg,rgba(231,239,235,.78),rgba(243,241,234,.58)); border-top:1px solid #DDE4DC; border-bottom:1px solid #DDE4DC; padding:80px 0 86px; }
.workflow-section .section-heading { margin-bottom:38px; }
.workflow-steps { display:flex; align-items:stretch; gap:10px; }
.workflow-step { display:flex; align-items:flex-start; gap:14px; flex:1; padding:19px 16px; border:1px solid #D5DFD8; border-radius:10px; background:rgba(255,255,255,.72); min-width:0; }
.step-index { color:var(--roveth-teal-dark); font-family:var(--roveth-font-mono); font-size:.74rem; }
.workflow-step h3 { margin:0 0 6px; font-family:var(--roveth-font-display); font-size:.93rem; color:var(--roveth-graphite); }
.workflow-step p { margin:0; color:#68736F; font-size:.76rem; line-height:1.62; }
.step-connector { width:15px; align-self:center; height:1px; background:#B4C1B7; flex:0 0 15px; }

.foundations { padding-top:91px; padding-bottom:88px; }
.foundation-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin-top:27px; }
.foundation-grid > div { padding:18px 18px; border-left:1px solid #C7D0C7; background:linear-gradient(90deg,rgba(231,239,235,.54),transparent); }
.foundation-label { display:block; color:#718079; font-size:.59rem; margin-bottom:12px; }
.foundation-grid strong { display:block; font-family:var(--roveth-font-display); font-size:1.02rem; margin-bottom:7px; color:var(--roveth-graphite); }
.foundation-grid p { margin:0; color:#68736F; font-size:.78rem; }
.capability-note { margin:24px 0 0; color:#79827C; font-size:.72rem; }

.closing-cta { border:1px solid #C8D7CF; border-radius:15px; padding:30px 34px; display:flex; align-items:center; gap:23px; margin-bottom:86px; background:linear-gradient(110deg,#E9F0EB 0%,#F8F6EF 100%); box-shadow:0 10px 28px rgba(48,59,52,.04); }
.cta-mark { width:64px; height:64px; flex:0 0 64px; display:grid; place-items:center; border:1px solid #CFD8CF; border-radius:13px; background:#F8F7F1; }
.closing-cta .section-kicker { margin-bottom:7px; font-size:.59rem; }
.closing-cta h2 { font-family:var(--roveth-font-display); font-size:1.42rem; margin:0 0 3px; letter-spacing:-.03em; color:var(--roveth-graphite); }
.closing-cta p { margin:0; color:#68736F; font-size:.81rem; }
.cta-actions { margin-left:auto; display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.cta-actions .button { white-space:nowrap; margin:0; }
.cta-actions .button-secondary { min-height:46px; background:transparent; }

.site-footer { border-top:1px solid var(--roveth-border); padding:25px 0 30px; background:rgba(251,250,246,.64); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-brand { display:flex; align-items:center; gap:16px; }
.footer-brand img { width:150px; height:auto; display:block; }
.footer-brand span, .footer-meta { color:#748079; font-size:.7rem; }
.footer-meta { display:flex; gap:23px; align-items:center; font-family:var(--roveth-font-mono); letter-spacing:.06em; }
.footer-meta a { color:#53635E; text-decoration:none; }
.footer-meta a:hover { color:var(--roveth-teal-dark); }

/* Arabic layout */
html[dir="rtl"] body { font-family:var(--roveth-font-arabic), var(--roveth-font-body), sans-serif; text-align:start; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .button, html[dir="rtl"] .nav a, html[dir="rtl"] .capability-card, html[dir="rtl"] .workflow-step, html[dir="rtl"] .foundation-grid, html[dir="rtl"] .closing-cta { font-family:var(--roveth-font-arabic), var(--roveth-font-display), sans-serif; letter-spacing:0; }
html[dir="rtl"] .hero h1 { line-height:1.48; letter-spacing:0; }
html[dir="rtl"] .hero-copy, html[dir="rtl"] .section-heading, html[dir="rtl"] .statement, html[dir="rtl"] .capability-card, html[dir="rtl"] .workflow-step, html[dir="rtl"] .foundation-grid > div, html[dir="rtl"] .cta-copy { text-align:right; }
html[dir="rtl"] .section-kicker span { margin-inline-start:13px; }
html[dir="rtl"] .data-row, html[dir="rtl"] .workbench-card, html[dir="rtl"] .workbench-title, html[dir="rtl"] .source-tabs, html[dir="rtl"] .card-topline, html[dir="rtl"] .card-foot, html[dir="rtl"] .preview-label, html[dir="rtl"] .overline, html[dir="rtl"] .record-count, html[dir="rtl"] .tag-row, html[dir="rtl"] .cap-number, html[dir="rtl"] .foundation-label, html[dir="rtl"] .footer-meta { direction:ltr; }
html[dir="rtl"] .data-row { text-align:left; }
html[dir="rtl"] .data-row strong { text-align:right; }
html[dir="rtl"] .hero-orbit.orbit-one { right:auto; left:-255px; }
html[dir="rtl"] .hero-orbit.orbit-two { right:auto; left:-180px; }
html[dir="rtl"] .foundation-grid > div { border-left:0; border-right:1px solid #C7D0C7; }
html[dir="rtl"] .cta-actions { margin-left:0; margin-right:auto; }
html[dir="rtl"] .footer-inner { direction:rtl; }
html[dir="rtl"] .footer-brand { flex-direction:row; }
html[dir="rtl"] .nav-github { direction:ltr; }

@media (max-width: 1100px) {
  .hero { gap:34px; grid-template-columns:1fr .98fr; }
  .capability-grid { grid-template-columns:repeat(2,1fr); }
  .workflow-steps { flex-wrap:wrap; }
  .workflow-step { flex-basis:calc(50% - 22px); }
  .step-connector { display:none; }
}
@media (max-width: 780px) {
  .container { width:min(100% - 36px, 650px); }
  .nav-wrap { min-height:70px; }
  .brand img { width:154px; }
  .header-actions { gap:10px; }
  .menu-toggle { display:block; }
  .nav { display:none; position:absolute; left:18px; right:18px; top:70px; flex-direction:column; align-items:stretch; gap:0; padding:9px; border:1px solid var(--roveth-border); border-radius:10px; background:rgba(251,250,246,.98); box-shadow:0 18px 45px rgba(32,39,43,.12); }
  .nav.is-open { display:flex; }
  .nav a { padding:12px 13px; }
  .nav .nav-github { margin-top:5px; color:#fff; }
  .hero { display:flex; flex-direction:column; align-items:stretch; gap:40px; padding-top:56px; padding-bottom:66px; min-height:0; }
  h1 { font-size:clamp(2.7rem,10vw,4.2rem); }
  .hero-lead { font-size:1rem; }
  .hero-orbit { display:none; }
  .workbench-card { max-width:600px; width:100%; margin-inline:auto; }
  .statement { padding:34px 0 56px; }
  .platform-section { padding-top:68px; padding-bottom:70px; }
  .section-heading { display:block; }
  .section-heading > p { margin-top:15px; }
  .capability-grid { grid-template-columns:1fr; }
  .capability-card { min-height:0; }
  .capability-card p { min-height:0; }
  .workflow-section { padding:65px 0; }
  .workflow-step { flex-basis:100%; }
  .foundations { padding-top:68px; padding-bottom:65px; }
  .foundation-grid { grid-template-columns:repeat(2,1fr); }
  .closing-cta { flex-wrap:wrap; padding:23px; margin-bottom:64px; }
  .cta-actions { width:100%; margin:8px 0 0; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  html[dir="rtl"] .nav { left:18px; right:18px; }
  html[dir="rtl"] .cta-actions { margin:8px 0 0; }
}
@media (max-width: 440px) {
  .container { width:calc(100% - 28px); }
  .brand img { width:132px; }
  .header-actions { gap:6px; }
  .language-switch { gap:3px; padding:4px; }
  .language-option { min-width:22px; padding-inline:3px; }
  .hero { padding-top:44px; }
  h1 { font-size:clamp(2.45rem,10vw,3.6rem); }
  .data-row { font-size:.59rem; gap:10px; }
  .data-row span { white-space:normal; }
  .workbench-title { padding-inline:18px; }
  .sample-output { padding-inline:18px; }
  .foundation-grid { grid-template-columns:1fr; }
  .footer-meta { width:100%; justify-content:space-between; gap:13px; }
  html[dir="rtl"] .hero h1 { font-size:clamp(2.3rem,9.5vw,3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
