/* Home and download pages: hero, development note, feature cards, product screenshots and the coming-soon page.
   Colours, radii and fonts come from the dashboard tokens (tokens.css); every layout uses logical properties for RTL. */

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding-inline: 20px; border-radius: var(--ci-radius-md); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color var(--ci-duration) var(--ci-ease), border-color var(--ci-duration) var(--ci-ease); }
/* Every state names its text colour: the global a:hover rule (base.css) would otherwise paint the label in the accent
   colour of the button background. All pairs meet WCAG AA (on-accent on accent / accent-hover, text on surface / hover). */
.button:is(:hover, :focus-visible, :active, :visited) { text-decoration: none; }
.button-primary, .button-primary:is(:hover, :focus-visible, :active, :visited) { background: var(--ci-accent); color: var(--ci-on-accent); }
.button-primary:hover { background: var(--ci-accent-hover); }
.button-primary:active { background: var(--ci-accent); box-shadow: inset 0 2px 4px color-mix(in srgb, var(--ci-on-accent) 30%, transparent); }
.button-secondary, .button-secondary:is(:hover, :focus-visible, :active, :visited) { background: var(--ci-surface); color: var(--ci-text); border-color: var(--ci-control-border); }
.button-secondary:hover { background: var(--ci-hover); border-color: var(--ci-control-border-hover); }
.button-secondary:active { background: var(--ci-surface-2); }
[dir="rtl"] .site-icon-back { transform: scaleX(-1); }

/* Screenshots: clean captures of the product in a browser window drawn by the site, light or dark with the site theme. The window
   chrome stays left-to-right like a real browser, also on Arabic pages. */
.browser { display: block; position: relative; direction: ltr; overflow: hidden; border-radius: var(--ci-radius-lg); border: 1px solid var(--ci-border-strong); background: var(--ci-bg); box-shadow: 0 1px 2px color-mix(in srgb, #000 8%, transparent), 0 24px 60px -20px color-mix(in srgb, var(--ci-accent-2) 28%, transparent), 0 12px 32px -16px color-mix(in srgb, #000 30%, transparent); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; background: var(--ci-surface-2); border-bottom: 1px solid var(--ci-border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.browser-bar i:nth-child(2) { background: #FEBC2E; }
.browser-bar i:nth-child(3) { background: #28C840; }
.browser-address { margin-inline: auto; padding: 3px 14px; border-radius: var(--ci-radius-pill); background: var(--ci-surface); border: 1px solid var(--ci-border); color: var(--ci-text-muted); font: 500 11.5px var(--ci-font-ui); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-21px); }
.shot { display: block; width: 100%; height: auto; }
.shot-dark, [data-theme="dark"] .shot-light { display: none; }
[data-theme="dark"] .shot-dark { display: block; }
/* The captures are cut to 4:3 from the top of a taller page: the cut edge fades into the page. */
.hero-shot .browser, .showcase-item .browser { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }

/* Hero */
.home { display: grid; }
.hero { position: relative; display: grid; gap: 28px; justify-items: center; text-align: center; padding-block: 24px 8px; isolation: isolate; }
.hero-copy { position: relative; display: grid; gap: 18px; justify-items: center; max-width: 860px; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: var(--ci-radius-pill); border: 1px solid var(--ci-accent-soft-border); background: var(--ci-accent-soft); color: var(--ci-accent-text); font-size: 13px; font-weight: 600; }
.status-pill i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ci-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ci-accent) 22%, transparent); }
.hero h1 { font-family: var(--ci-font-display); font-size: clamp(32px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.hero h1 .gradient { display: block; padding-block-end: .06em; }
.hero-intro { color: var(--ci-text-2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; max-width: 64ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 4px; }
.hero-hint { color: var(--ci-text-muted); font-size: 13.5px; }
.dev-note { display: flex; align-items: flex-start; gap: 12px; max-width: 720px; width: 100%; padding: 14px 18px; text-align: start; border: 1px solid var(--ci-warning-border); background: var(--ci-warning-soft); border-radius: var(--ci-radius-md); }
.dev-note .site-icon { color: var(--ci-warning-text); margin-top: 1px; }
.dev-note h2 { font-size: 14.5px; color: var(--ci-text-strong); }
.dev-note p { color: var(--ci-text-2); font-size: 14px; line-height: 1.55; margin-top: 2px; }
.hero-shot { width: 100%; max-width: 1120px; margin-top: 12px; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px) 0; }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2, .cta h2 { font-family: var(--ci-font-display); font-size: clamp(25px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.section-head p { color: var(--ci-text-2); font-size: 15.5px; line-height: 1.6; }
.section-head .eyebrow, .soon .eyebrow { justify-content: center; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface); transition: border-color .25s var(--ci-ease), transform .25s var(--ci-ease), box-shadow .25s var(--ci-ease); }
.feature-card:hover { border-color: var(--ci-accent-soft-border); box-shadow: 0 14px 36px -18px color-mix(in srgb, var(--ci-accent) 45%, transparent); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: var(--ci-radius-md); background: var(--ci-accent-soft); color: var(--ci-accent-text); border: 1px solid var(--ci-accent-soft-border); }
.feature-card:nth-child(even) .feature-icon { background: var(--ci-accent-2-soft); color: var(--ci-accent-2-text); border-color: var(--ci-accent-2-border); }
.feature-card h3 { font-size: 16px; line-height: 1.3; }
.feature-card p { color: var(--ci-text-2); font-size: 14.5px; line-height: 1.55; }

/* Showcase */
.showcase-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.showcase-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.showcase-item:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.showcase-item:nth-child(even) .browser { order: 2; }
.showcase-item figcaption { display: grid; gap: 10px; }
.showcase-item h3 { font-family: var(--ci-font-display); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.showcase-item figcaption p { color: var(--ci-text-2); font-size: 16px; line-height: 1.6; max-width: 46ch; }

/* Closing call to action and the coming-soon page */
/* One column that may shrink below its content (minmax(0, 1fr)); text spans the column and wraps within it. */
.cta, .soon { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; min-width: 0; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-xl); background-color: var(--ci-surface); background-image: linear-gradient(var(--ci-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--ci-grid-line) 1px, transparent 1px); background-size: 28px 28px; }
.cta { margin-top: clamp(56px, 8vw, 96px); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px); }
.cta :is(h2, p), .soon :is(h1, p) { inline-size: 100%; max-inline-size: 56ch; overflow-wrap: break-word; text-wrap: pretty; }
.cta p, .soon p { color: var(--ci-text-2); font-size: 16px; line-height: 1.6; }
.cta .button { margin-top: 6px; }
.cta-icon, .soon-icon { display: grid; place-items: center; border-radius: 50%; background: var(--ci-accent-soft); color: var(--ci-accent-text); border: 1px solid var(--ci-accent-soft-border); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ci-accent) 8%, transparent); }
.cta-icon { width: 56px; height: 56px; }
.soon { max-width: 680px; margin: clamp(16px, 6vw, 72px) auto 0; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px); }
.soon-icon { width: 68px; height: 68px; margin-bottom: 8px; }
.soon h1 { font-family: var(--ci-font-display); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; }
.soon .button { margin-top: 10px; }

@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .showcase-item, .showcase-item:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .showcase-item:nth-child(even) .browser { order: 0; }
}
@media (max-width: 560px) {
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding-block-start: 8px; }
    .browser { border-radius: var(--ci-radius-md); }
    .browser-bar { height: 24px; gap: 4px; padding-inline: 8px; }
    .browser-bar i { width: 7px; height: 7px; }
    .browser-address { font-size: 9.5px; padding: 1px 10px; transform: translateX(-14px); }
}
/* Arabic script needs taller lines than the tight Latin display headings. */
[dir="rtl"] :is(.hero h1, .section-head h2, .cta h2, .showcase-item h3, .soon h1) { line-height: 1.3; }
@media (forced-colors: active) { .button { border-color: ButtonText; } }

/* Hero background (js/hero-background.js): a canvas behind the copy, faded at the edges; a soft scrim of the page colour behind the
   text keeps its contrast whatever the canvas draws. */
.hero-canvas { position: absolute; inset: -32px calc(50% - 50vw) auto; height: min(760px, 100%); width: auto; z-index: -1; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 90% 95% at 50% 40%, #000 45%, transparent 85%); mask-image: radial-gradient(ellipse 90% 95% at 50% 40%, #000 45%, transparent 85%); }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero-copy::before { content: ""; position: absolute; inset: -24px max(-40px, calc((100% - 100vw) / 2)); z-index: -1; border-radius: 48px; background: radial-gradient(ellipse closest-side at center, color-mix(in srgb, var(--ci-bg) 90%, transparent) 62%, transparent); }

/* Motion: only with no reduced-motion preference, only transform and opacity (and one background position), never hiding content
   without JavaScript: the reveal starts hidden only after site.js marked the document (html.ci-reveal). */
@media (prefers-reduced-motion: no-preference) {
    .hero h1 .gradient { background-size: 200% 100%; animation: gradient-shift 9s ease-in-out infinite alternate; }
    .status-pill { position: relative; overflow: hidden; isolation: isolate; }
    .status-pill::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ci-accent) 22%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: pill-shimmer 3.6s ease-in-out 1s infinite; }
    .hero-shot .browser { animation: hero-float 9s ease-in-out infinite; }
    .feature-card:hover { transform: translateY(-4px); }
    .button-primary:hover { transform: translateY(-1px); }
    html.ci-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ci-ease), transform .7s var(--ci-ease); transition-delay: calc(var(--reveal-index, 0) * 70ms); }
    html.ci-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
    html.ci-reveal .feature-card[data-reveal].is-revealed:hover { transform: translateY(-4px); transition-delay: 0s; }
}
@keyframes gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pill-shimmer { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
[dir="rtl"] .status-pill::after { animation-direction: reverse; }
