:root {
  color-scheme: light;
  --ink: #172c29;
  --muted: #4c625e;
  --primary: #076c60;
  --primary-hover: #05584f;
  --line: #d8e2df;
  --page: #f7f8f6;
  --surface: #fff;
  --soft: #edf4f1;
  --radius: 12px;
  font-family: Cairo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.8; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #08bfae; outline-offset: 3px; }
[hidden], .ios-only { display: none !important; }
.is-ios .ios-only { display: inline-flex !important; }
.is-ios .android-only { display: none !important; }
.container { width: min(100% - 40px, 1180px); margin-inline: auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 20px; font-weight: 800; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-inline-end: auto; font-size: 14px; font-weight: 700; }
.site-nav a, .footer-main a, .footer-bottom a { transition: color 150ms ease-out; }
.site-nav a:hover, .footer-main a:hover, .footer-bottom a:hover { color: var(--primary); }
.header-cta { display: inline-flex; min-height: 40px; padding: 7px 18px; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: var(--radius); color: var(--primary); font-size: 14px; font-weight: 800; white-space: nowrap; transition: background 150ms ease-out; }
.header-cta:hover { background: var(--soft); }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; gap: 64px; padding-block: 64px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; animation: hero-enter 280ms ease-out both; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.4; letter-spacing: -.025em; }
.hero-copy > p:not(.download-note) { max-width: 610px; margin: 20px 0 0; color: var(--muted); line-height: 2; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .download-links { margin-top: 28px; }
.button { display: inline-flex; min-height: 44px; padding: 8px 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; transition: background 150ms ease-out, border-color 150ms ease-out; }
.button-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-secondary { color: var(--primary); background: var(--surface); border-color: var(--line); }
.button-secondary:hover { background: var(--soft); }
.download-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { display: grid; place-items: center; min-height: 370px; animation: hero-enter 280ms ease-out 80ms both; }
.hero-visual img { width: min(100%, 560px); height: auto; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section { padding-block: 80px; }
.section-grid, .account-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.section-heading h2, .final-section h2 { margin: 0; font-size: 32px; line-height: 1.5; }
.section-heading p, .final-section p { max-width: 530px; margin: 12px 0 0; color: var(--muted); }
.category-list { border-top: 1px solid var(--line); }
.category-list > div { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.category-number { width: 30px; flex: none; color: var(--primary); font-weight: 800; font-size: 14px; }
.category-list h3, .process-grid h3 { margin: 0; font-size: 20px; }
.category-list p, .process-grid p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.process-section, .news-section { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading.narrow { max-width: 680px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 32px; }
.process-grid article { padding-top: 16px; border-top: 1px solid var(--line); }
.process-grid article > span { display: block; margin-bottom: 20px; color: var(--primary); font-size: 14px; font-weight: 800; }
.account-details { border-top: 1px solid var(--line); }
.account-details p { display: flex; gap: 16px; justify-content: space-between; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-details strong { flex: 0 0 160px; font-size: 14px; }
.account-details span { flex: 1; color: var(--muted); font-size: 14px; }
.developer-section { padding-block: 0 80px; }
.developer-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 32px; border: 1px solid #bed6cf; border-radius: 18px; background: linear-gradient(115deg, #e9f4ef, #f7fbf9 55%, #fff); }
.developer-panel h2 { margin: 4px 0 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.5; }
.developer-panel p { max-width: 610px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.developer-eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.developer-panel .button { flex: none; }
.news-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.text-link { display: inline-flex; width: fit-content; padding-bottom: 2px; border-bottom: 1px solid currentColor; color: var(--primary); font-size: 14px; font-weight: 800; white-space: nowrap; }
.text-link:hover { color: var(--primary-hover); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.article-card-link { display: block; height: 100%; }
.article-card-link:hover .article-read { color: var(--primary-hover); text-decoration: underline; }
.article-card-link > img, .article-image-fallback { width: 100%; aspect-ratio: 1.58; object-fit: cover; background: var(--soft); }
.article-image-fallback { display: grid; place-items: center; color: var(--primary); font-size: 20px; font-weight: 800; }
.article-card-content { padding: 18px; }
.article-meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.article-card h3, .article-card h2 { margin: 8px 0; font-size: 20px; line-height: 1.6; }
.article-read { display: inline-block; margin-top: 14px; color: var(--primary); font-size: 14px; font-weight: 800; }
.content-notice { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.content-notice h2 { margin: 0; color: var(--ink); font-size: 20px; }
.content-notice p { margin: 8px 0 14px; }
.final-section { border-bottom: 1px solid var(--line); }
.final-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.final-inner p { margin-bottom: 0; }
.faq-section { border-bottom: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list article { padding-block: 18px; border-bottom: 1px solid var(--line); }
.faq-list h3 { margin: 0; font-size: 16px; }
.faq-list p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.site-footer { background: var(--surface); }
.footer-main { display: flex; justify-content: space-between; gap: 32px; padding-block: 36px; }
.footer-brand { font-size: 20px; font-weight: 800; }
.footer-main p { max-width: 420px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.footer-contact { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 14px; border: 1px solid var(--primary); border-radius: var(--radius); color: var(--primary); font-size: 14px; font-weight: 800; transition: background 150ms ease-out; }
.footer-contact span { color: var(--muted); font-size: 12px; font-weight: 700; }
.footer-contact:hover { background: var(--soft); }
.footer-main nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px 24px; font-size: 14px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.page-intro { padding-block: 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-intro h1 { margin: 18px 0 0; font-size: 40px; line-height: 1.5; }
.page-intro p { max-width: 690px; margin: 8px 0 0; color: var(--muted); }
.article-list-section { min-height: 50vh; }
.article-search { max-width: 600px; margin-bottom: 24px; }
.article-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.article-search > div { display: flex; gap: 8px; }
.article-search input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.article-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.article-categories a { display: inline-flex; min-height: 36px; padding: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; font-weight: 700; transition: background 150ms ease-out, border-color 150ms ease-out; }
.article-categories a:hover { border-color: var(--primary); }
.article-categories a[aria-current="page"] { border-color: var(--primary); background: var(--soft); color: var(--primary); }
.article-grid-list { row-gap: 28px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; font-size: 14px; }
.pagination a { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--primary); font-weight: 800; }
.pagination a:hover { background: var(--soft); }
.pagination span { color: var(--muted); }

.article-page { max-width: 860px; padding-block: 40px 80px; }
.article-header { margin-block: 30px; }
.article-header h1 { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.5; overflow-wrap: anywhere; }
.article-cover, .article-gallery figure { display: grid; place-items: center; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.article-cover { aspect-ratio: 1.58; }
.article-cover img { width: 100%; height: 100%; object-fit: contain; }
.article-body { max-width: 760px; margin-block: 36px 44px; line-height: 2; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body div { margin-block: 12px; }
.article-body h2 { margin: 36px 0 12px; font-size: 24px; }
.article-body h3 { margin: 28px 0 8px; font-size: 20px; }
.article-body ul, .article-body ol { padding-inline-start: 26px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote { margin-inline: 0; padding-inline: 18px; border-inline-start: 3px solid var(--primary); color: var(--muted); }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 44px; }
.article-gallery figure { aspect-ratio: 1.4; }
.article-gallery img { width: 100%; height: 100%; object-fit: contain; }
.article-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.article-download h2 { margin: 0; font-size: 24px; }
.article-download p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.article-back { margin-top: 32px; }
.not-found { min-height: 45vh; padding-block: 80px; }
.not-found h1 { margin: 0; font-size: 32px; }
.not-found p { margin: 8px 0 24px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 280px; }
  .section-grid, .account-grid { gap: 40px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-download { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 66px; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
  .brand { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .site-nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; font-size: 13px; }
  .header-cta { margin-inline-start: auto; min-height: 36px; padding: 5px 12px; font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .hero h1 { font-size: 32px; }
  .hero-visual { min-height: 0; }
  .hero-visual img { width: min(100%, 440px); }
  .section { padding-block: 48px; }
  .section-grid, .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2, .final-section h2 { font-size: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-grid article > span { margin-bottom: 8px; }
  .account-details p { display: block; }
  .account-details span { display: block; margin-top: 4px; }
  .news-heading, .final-inner, .footer-main { align-items: flex-start; flex-direction: column; }
  .developer-section { padding-block: 0 48px; }
  .developer-panel { align-items: flex-start; flex-direction: column; padding: 22px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-main { padding-block: 32px; }
  .footer-bottom { flex-wrap: wrap; }
  .page-intro { padding-block: 36px; }
  .page-intro h1 { font-size: 30px; }
  .article-page { padding-block: 28px 56px; }
  .article-header { margin-block: 24px; }
  .article-gallery { grid-template-columns: 1fr; }
  .article-download { padding: 20px; }
  .article-download h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
