/* DevBySaif AI expansion. Shares the portfolio's typography, surfaces and tokens. */
.ai-main { padding-top: 142px; }
.ai-page .container-xl, .ai-home-preview .container-xl { max-width: 1320px; }
.ai-page section[id], .ai-service-card, .ai-project { scroll-margin-top: 110px; }
.ai-page [hidden], .ai-home-preview [hidden] { display: none !important; }
.ai-eyebrow, .ai-mono { font: 500 10px/1.6 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.ai-eyebrow { display: block; color: #52525b; letter-spacing: .16em; margin-bottom: 20px; }
.ai-eyebrow::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #087f5b; margin-right: 10px; vertical-align: middle; border-radius: 50%; }
.ai-hero { display: grid; grid-template-columns: 1.17fr 1fr; align-items: center; gap: 64px; padding: 25px 0 78px; border-bottom: 1px solid var(--border-light); }
.ai-hero h1 { font-size: clamp(48px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.065em; font-weight: 700; margin: 0 0 25px; }
.ai-hero em, .ai-section h2 em, .ai-home-preview h2 em, .ai-final-cta em { font-family: var(--font-serif); font-weight: 400; }
.ai-hero > div > p { color: var(--text-body); font-size: 16px; max-width: 560px; line-height: 1.8; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.ai-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 13px 22px; border: 1px solid #111; border-radius: 999px; background: #101113; color: white; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; text-align: center; }
.ai-button:hover { background: #303238; transform: translateY(-2px); }
.ai-button-secondary { color: #151618; background: transparent; border-color: #d6d6da; }
.ai-button-secondary:hover { background: #f3f3f5; }
.ai-hero-note { display: flex; gap: 8px; align-items: center; font-size: 11px; line-height: 1.7; color: #52525b; }
.ai-dot { display: inline-block; flex-shrink: 0; height: 6px; width: 6px; border-radius: 50%; background: #34d399; }
.ai-system { padding: 26px; border-radius: 20px; color: #f7f7f8; background: #111315; border: 1px solid #2e3135; box-shadow: 0 16px 35px #0a0a0a0d; }
.ai-system-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 22px; color: #b6bbc2; }
.ai-system-badge { font: 500 8px/1.5 var(--font-mono); letter-spacing: .04em; padding: 5px 8px; border: 1px solid #454b50; border-radius: 4px; }
.ai-system-input { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #41464a; border-radius: 9px; background: #1c2023; }
.ai-system-input .ai-mono, .ai-system-engine .ai-mono { color: #b0b7be; }
.ai-system-input strong { font-size: 21px; letter-spacing: -.03em; }
.ai-system-input > span:last-child { font-size: 11px; color: #c3c7cc; }
.ai-system-engine { display: flex; gap: 18px; padding: 42px 12px; align-items: center; position: relative; }
.ai-system-engine::before, .ai-system-engine::after { content: ''; position: absolute; height: 20px; width: 1px; left: 45px; background: #4d6158; }
.ai-system-engine::before { top: 10px; }.ai-system-engine::after { bottom: 10px; }
.ai-system-symbol { color: #7ce5b4; font-size: 48px; line-height: 1; }
.ai-system-engine strong { display: block; font-size: 19px; margin: 7px 0; letter-spacing: -.03em; }
.ai-system-engine p { font-size: 11px; color: #c3c7cc; line-height: 1.7; }
.ai-system-output { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: baseline; border: 1px solid #3c5046; background: #18251f; border-radius: 9px; padding: 22px; }
.ai-system-output span { font: 9px/1.5 var(--font-mono); color: #c5d9cb; }
.ai-system-output strong { font-size: 12px; font-weight: 500; }
.ai-system-footer { display: flex; align-items: center; gap: 8px; font: 9px/1.6 var(--font-mono); color: #b3b9bd; padding-top: 22px; }
.ai-section { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
.ai-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 34px; }
.ai-section-head h2, .ai-detail-grid h2, .ai-final-cta h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.09; letter-spacing: -.045em; font-weight: 600; margin: 0; }
.ai-section-head > p { max-width: 360px; color: var(--text-body); font-size: 13px; line-height: 1.8; margin-bottom: 4px; }
.ai-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-feature-card { display: flex; flex-direction: column; border: 1px solid #e3e3e7; padding: 26px; border-radius: 14px; background: #fff; transition: background .2s, border-color .2s, transform .2s; }
.ai-feature-card:hover, .ai-feature-card:focus-within { background: #f9faf9; border-color: #8fafa0; transform: translateY(-3px); }
.ai-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: #595b61; }
.ai-card-top .ai-mono { font-size: 9px; text-align: right; }
.ai-icon { width: 28px; height: 28px; flex-shrink: 0; color: #161b19; }
.ai-feature-card h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; padding-right: 16px; margin: 0 0 13px; }
.ai-feature-card h3 a { display: block; position: relative; }
.ai-arrow { position: absolute; right: -17px; top: -2px; font-size: 19px; font-weight: 400; }
.ai-feature-card > p, .ai-service-card > p, .ai-project > p { color: var(--text-body); font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.ai-tags { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; margin: 0 0 22px; padding: 0; }
.ai-tags li { color: #444b47; background: #f3f5f3; border: 1px solid #e4e9e5; border-radius: 5px; font-size: 10px; line-height: 1.5; padding: 5px 8px; overflow-wrap: anywhere; }
.ai-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: #b7c0ba; text-underline-offset: 5px; }
.ai-feature-card > .ai-text-link { margin-top: auto; }
.ai-search { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; margin-bottom: 20px; }
.ai-search label { grid-column: 1/-1; font-size: 12px; font-weight: 600; }
.ai-search input { width: 100%; max-width: 520px; min-width: 0; min-height: 48px; font: inherit; font-size: 13px; border: 1px solid #c8ceca; border-radius: 9px; background: white; padding: 12px 16px; }
.ai-search [role="status"] { color: #52525b; font: 11px/1.6 var(--font-mono); }
.ai-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 24px; border: 0; }
.ai-filters button { border: 1px solid #d4d8d5; border-radius: 999px; min-height: 44px; padding: 9px 15px; font-size: 11px; color: #414743; background: white; cursor: pointer; }
.ai-filters button[aria-pressed="true"] { color: #fff; background: #18251f; border-color: #18251f; }
.ai-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ai-service-card { padding: 22px; border: 1px solid #e2e5e2; border-radius: 12px; background: #fcfcfc; min-width: 0; }
.ai-service-card:target { outline: 2px solid #087f5b; outline-offset: 3px; }
.ai-service-card .ai-card-top { margin-bottom: 22px; }
.ai-service-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.03em; font-weight: 600; margin: 0 0 12px; }
.ai-service-card > p { font-size: 12px; }
.ai-service-card .ai-tags { margin-bottom: 12px; }
.ai-service-details { border-top: 1px solid #e2e5e2; font-size: 12px; margin-top: 16px; }
.ai-service-details summary, .ai-faq summary { cursor: pointer; min-height: 44px; padding: 13px 22px 13px 0; line-height: 1.5; list-style: none; position: relative; }
.ai-service-details summary::after, .ai-faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 20px; font-weight: 400; }
.ai-service-details[open] summary::after, .ai-faq details[open] summary::after { content: '−'; }
.ai-service-details summary::-webkit-details-marker, .ai-faq summary::-webkit-details-marker { display: none; }
.ai-service-details p { color: #4b504d; line-height: 1.8; margin: 10px 0; }
.ai-service-details a { text-decoration: underline; text-underline-offset: 3px; }
.ai-empty { border: 1px dashed #abb9b0; border-radius: 12px; text-align: center; padding: 36px 20px; }
.ai-empty p { font-size: 13px; color: #52525b; margin: 12px 0 20px; }
.ai-workflow { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 30px 0; border-top: 1px solid #e1e5e2; align-items: center; }
.ai-workflow .ai-mono { color: #626962; }.ai-workflow h3 { font-size: 20px; letter-spacing: -.03em; margin: 10px 0; font-weight: 600; }
.ai-workflow p { font-size: 12px; color: #52525b; line-height: 1.8; }
.ai-workflow-steps { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.ai-workflow-steps li { position: relative; border: 1px solid #d4ddd6; background: #f5f7f5; border-radius: 6px; padding: 10px 12px; font-size: 11px; }
.ai-workflow-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -18px; color: #65726a; }
.ai-tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ai-tech-grid h3 { font-size: 16px; font-weight: 600; margin: 0 0 20px; }.ai-tech-grid p { font-size: 11px; color: #52525b; line-height: 1.8; }
.ai-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ai-project { padding: 28px; border: 1px solid #dfe4e0; border-radius: 12px; background: #fafbf9; }.ai-project > .ai-mono { color: #4e6658; font-size: 9px; }
.ai-project h3 { font-size: 26px; letter-spacing: -.04em; font-weight: 600; margin: 14px 0; }.ai-project-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ai-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 28px; margin: 0; padding: 0; counter-reset: process; }
.ai-process li { padding-top: 22px; border-top: 1px solid #c3ccc5; }.ai-process .ai-mono { color: #087f5b; }
.ai-process h3 { font-size: 17px; font-weight: 600; margin: 22px 0 12px; letter-spacing: -.02em; }.ai-process p { font-size: 12px; color: #52525b; line-height: 1.8; }
.ai-faq-list { max-width: 900px; }.ai-faq-list details { border-top: 1px solid #dfe3df; }.ai-faq-list details:last-child { border-bottom: 1px solid #dfe3df; }
.ai-faq summary { font-size: 16px; font-weight: 500; padding: 21px 32px 21px 0; }.ai-faq summary::after { top: 20px; }.ai-faq p { font-size: 13px; color: #414743; line-height: 1.9; max-width: 740px; margin: 0 0 24px; padding-right: 20px; }
.ai-final-cta { padding: 65px 42px; margin: 60px 0; background: #111713; border: 1px solid #2b3d31; border-radius: 18px; color: white; text-align: center; }
.ai-final-cta .ai-eyebrow, .ai-final-cta > .ai-mono { color: #c0cfc4; }.ai-final-cta h2 { max-width: 670px; margin: auto; font-size: clamp(34px, 4vw, 56px); }.ai-final-cta h2 em { display: block; color: #a9dfbf; }
.ai-final-cta p { max-width: 530px; margin: 22px auto; font-size: 14px; line-height: 1.8; color: #d1d9d3; }.ai-final-cta .ai-actions { justify-content: center; }
.ai-final-cta .ai-button { background: #f5f8f5; color: #101a13; border-color: #f5f8f5; }.ai-final-cta .ai-button-secondary { background: transparent; color: white; border-color: #697d6e; }
.ai-home-preview { padding: 80px 0; background: #f9faf8; border-top: 1px solid #e9ede8; border-bottom: 1px solid #e9ede8; }.ai-preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }.ai-preview-footer p { font-size: 12px; color: #52525b; }
.ai-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #52525b; margin-bottom: 35px; }.ai-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.ai-detail-hero { padding: 25px 0 55px; border-bottom: 1px solid #e1e5e2; }.ai-detail-hero h1 { max-width: 950px; font-size: clamp(38px, 5.4vw, 76px); letter-spacing: -.055em; line-height: 1.06; margin-bottom: 24px; font-weight: 600; }.ai-detail-hero > p { font-size: 18px; color: #414743; line-height: 1.8; max-width: 690px; margin-bottom: 20px; }
.ai-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }.ai-section-intro { font-size: 14px; color: #414743; line-height: 1.9; margin: 25px 0; }.ai-detail-grid h3 { font-size: 17px; font-weight: 600; margin: 25px 0 16px; }.ai-deliverables { padding: 28px; border-radius: 12px; background: #f5f7f4; border: 1px solid #e0e6de; }.ai-deliverables h3:first-child { margin-top: 0; }.ai-deliverables ol { padding-left: 20px; }.ai-deliverables li { padding: 0 0 16px 8px; }.ai-deliverables li, .ai-deliverables p { font-size: 13px; line-height: 1.9; color: #414743; }
.ai-crosslink { margin: 0 0 48px; padding: 25px; border: 1px solid #cddace; border-radius: 14px; background: #f4f7f3; display: flex; gap: 24px; align-items: center; justify-content: space-between; }.ai-crosslink p { font-size: 13px; color: #414743; line-height: 1.8; max-width: 650px; }.ai-crosslink h2 { font-size: 22px; letter-spacing: -.03em; margin: 5px 0 12px; }.ai-crosslink .ai-button { flex-shrink: 0; }
@media (min-width: 992px) and (max-width: 1279px) { .desktop-nav-links { gap: .3rem; }.header-clock-widget { display: none; } }
@media (max-width: 1100px) { .ai-hero { gap: 30px; }.ai-system { padding: 20px; }.ai-feature-grid, .ai-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ai-workflow { grid-template-columns: 1fr 1.2fr; gap: 25px; } }
@media (max-width: 767px) { .ai-main { padding-top: 110px; }.ai-hero { grid-template-columns: 1fr; padding-bottom: 45px; gap: 35px; }.ai-hero h1 { font-size: clamp(45px, 9vw, 68px); }.ai-hero > div > p { font-size: 14px; }.ai-system { max-width: 590px; width: 100%; }.ai-section { padding: 50px 0; }.ai-section-head { display: block; }.ai-section-head > p { margin-top: 22px; max-width: 520px; }.ai-tech-grid, .ai-detail-grid { grid-template-columns: 1fr; }.ai-workflow { grid-template-columns: 1fr; }.ai-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ai-final-cta { padding: 45px 24px; }.ai-home-preview { padding: 50px 0; }.ai-crosslink { align-items: flex-start; flex-direction: column; }.ai-detail-grid { gap: 24px; } }
@media (max-width: 520px) { .ai-feature-grid, .ai-service-grid, .ai-project-grid { grid-template-columns: 1fr; }.ai-feature-card { padding: 24px; }.ai-section-head h2 { font-size: 34px; }.ai-hero h1 { font-size: clamp(40px, 10vw, 52px); }.ai-system-engine { gap: 12px; padding-left: 0; }.ai-system-engine strong { font-size: 17px; }.ai-system-input { padding: 20px; }.ai-system-output { padding: 16px; gap: 13px; }.ai-search { grid-template-columns: 1fr; }.ai-search label { grid-column: auto; }.ai-filters button { padding: 9px 12px; }.ai-system-top { gap: 12px; }.ai-project { padding: 22px; }.ai-detail-hero > p { font-size: 15px; }.ai-process { gap: 18px; }.ai-process h3 { font-size: 15px; }.ai-actions { flex-direction: column; align-items: stretch; }.ai-final-cta { margin: 40px 0; padding: 38px 18px; }.ai-detail-hero h1 { font-size: 38px; overflow-wrap: anywhere; }.ai-breadcrumb { font-size: 10px; }.ai-deliverables { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .ai-page *, .ai-home-preview * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }.ai-feature-card:hover, .ai-button:hover { transform: none; } }
