:root {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #10233e;
  background: #f7f9fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #123565;
  --blue: #214ec8;
  --cyan: #21acd6;
  --muted: #69788d;
  --border: #e2e8f0;
  --paper: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(226,232,240,.8); backdrop-filter: blur(16px); }
.nav-row { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.brand img { width: auto; max-width: 150px; height: 38px; object-fit: contain; }
.brand-mark, .login-mark { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--navy),var(--cyan)); font-size: 14px; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 29px; color: #64748b; font-size: 13px; font-weight: 700; }
.main-nav a:hover, .mobile-nav a:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; color: white; background: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(33,78,200,.17); transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); background: #183fac; box-shadow: 0 14px 28px rgba(33,78,200,.22); }
.button-small { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: 11px; }
.button-outline { color: var(--navy); background: #fff; border: 1px solid var(--border); box-shadow: none; }
.button-outline:hover { color: var(--blue); background: #f6f8fc; box-shadow: none; }
.button-danger { color: #b42318; background: #fff2f0; border: 1px solid #fee0dc; box-shadow: none; }
.button-danger:hover { background: #ffe5e1; box-shadow: none; }
.button-full { width: 100%; }
.menu-toggle, .mobile-nav { display: none; }
.hero { position: relative; display: flex; align-items: center; min-height: 665px; padding: 82px 0; overflow: hidden; background: linear-gradient(120deg,#f7faff 4%,#f1f7ff 54%,#f8fbff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(#9bb3d4 1px,transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg,transparent 20%,#000 100%); }
.hero-glow { position: absolute; width: 480px; height: 480px; right: 9%; top: 10%; border-radius: 50%; background: rgba(38,164,218,.14); filter: blur(100px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 66px; }
.hero-copy { max-width: 660px; }
.eyebrow, .overline { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { padding: 10px 14px; border: 1px solid #e6edf7; border-radius: 99px; background: rgba(255,255,255,.82); letter-spacing: .06em; text-transform: none; font-size: 12px; box-shadow: 0 5px 20px rgba(16,35,62,.04); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22b8a5; box-shadow: 0 0 0 5px rgba(34,184,165,.13); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 680px; margin: 24px 0; color: #10233e; font-size: clamp(42px,5.3vw,67px); font-weight: 800; letter-spacing: -.06em; line-height: 1.08; }
.hero-description { max-width: 600px; margin-bottom: 30px; color: #68788f; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-art { min-width: 0; transform: rotate(1deg); }
.art-window { padding: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 30px; background: rgba(255,255,255,.66); box-shadow: 0 34px 90px rgba(21,52,95,.17); }
.art-bar { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-bottom: 1px solid #ecf0f5; color: #8291a5; font-size: 10px; }
.art-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f27c74; }
.art-bar i:nth-child(2) { background: #f1bc57; }
.art-bar i:nth-child(3) { background: #56c69a; }
.art-bar span { margin-left: auto; }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 23px 15px 15px; background: #f3f6fa; }
.art-card { min-height: 164px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: 18px; box-shadow: 0 8px 28px rgba(21,52,95,.07); }
.art-card b { margin-bottom: auto; font-size: 12px; opacity: .55; }
.art-card span { font-weight: 700; font-size: 14px; }
.art-light { color: #234064; background: white; }
.art-blue { position: relative; overflow: hidden; color: white; background: linear-gradient(145deg,#214ec8,#1688c3); }
.art-orbit { width: 92px; height: 92px; position: absolute; right: -12px; top: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.06),0 0 0 37px rgba(255,255,255,.05); }
.art-wide { grid-column: 1/3; min-height: 115px; background: linear-gradient(100deg,#fff,#e5f6fb); }
.art-line { width: 100%; height: 5px; margin-top: 12px; border-radius: 9px; background: #e8edf3; }
.art-line.short { width: 62%; margin-top: 7px; }
.section { padding: 100px 0; }
.section-white { background: #fff; }
.section-tint { background: #f5f8fc; }
.section-heading { margin-bottom: 48px; }
.section-heading.centered { max-width: 720px; margin-right: auto; margin-left: auto; text-align: center; }
.section-heading h2, .contact-grid h2 { max-width: 680px; margin: 13px 0 15px; color: #10233e; font-size: clamp(32px,4vw,47px); line-height: 1.15; letter-spacing: -.055em; }
.section-heading p, .contact-intro { color: var(--muted); font-size: 15px; line-height: 1.8; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading h2 { max-width: 570px; }
.split-heading p { max-width: 330px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 19px; }
.service-card { position: relative; min-height: 300px; padding: 31px; border: 1px solid #e9edf3; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(16,35,62,.035); transition: .2s ease; }
.service-card:hover, .project-card:hover, .article-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(16,35,62,.09); }
.service-number { position: absolute; right: 28px; top: 28px; color: #b9c6d7; font-size: 12px; font-weight: 800; }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 27px; border-radius: 16px; color: var(--blue); background: #edf3ff; font-size: 16px; font-weight: 800; }
.service-card h3, .project-card h3, .article-card h3 { margin-bottom: 11px; color: #142a48; font-size: 19px; letter-spacing: -.03em; }
.service-card p, .project-card p, .article-card p { color: #738196; font-size: 13px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 12px; font-weight: 800; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.project-grid, .article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 21px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: -20px 0 26px; }
.project-filters a { padding: 10px 15px; background: white; border: 1px solid var(--border); }
.project-filters a[aria-current="true"] { background: var(--blue); color: white; }
.project-card, .article-card { overflow: hidden; border: 1px solid #e9edf3; border-radius: 20px; background: white; box-shadow: 0 9px 30px rgba(16,35,62,.04); transition: .22s ease; }
.project-image, .article-image { display: block; aspect-ratio: 1.42; overflow: hidden; background: #e8eef6; }
.project-image img, .article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover img, .article-card:hover img { transform: scale(1.04); }
.project-copy, .article-copy { padding: 22px; }
.project-copy h3 { margin-top: 13px; }
.project-copy p { margin-bottom: 0; }
.tag { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 99px; color: #47617f; background: #eff3f8; font-size: 10px; font-weight: 800; }
.article-copy time { color: #8090a4; font-size: 11px; }
.article-copy h3 { margin-top: 11px; line-height: 1.45; }
.article-copy h3 a:hover { color: var(--blue); }
.article-copy .text-link { margin-top: 3px; }
.contact-section { background: #f1f6fc; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: start; gap: 72px; }
.contact-grid h2 { max-width: 500px; }
.contact-intro { max-width: 530px; margin-bottom: 32px; }
.contact-details { display: grid; gap: 20px; }
.contact-details p { display: flex; align-items: flex-start; gap: 14px; margin: 0; color: #66768c; font-size: 13px; line-height: 1.65; }
.contact-details b { display: block; margin-bottom: 3px; color: #162c49; font-size: 13px; }
.detail-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--blue); background: #e2ecfb; font-size: 18px; }
.contact-form { display: grid; gap: 18px; padding: 30px; border: 1px solid #e7edf4; border-radius: 21px; background: white; box-shadow: 0 24px 60px rgba(16,35,62,.07); }
.contact-form label, .admin-form label, .stack-form label { display: grid; gap: 8px; color: #243a57; font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea, .admin-form input, .admin-form textarea, .admin-form select, .stack-form input { width: 100%; padding: 12px 14px; border: 1px solid #e1e7ef; border-radius: 10px; outline: none; color: #182e4b; background: #f8fafc; font-size: 13px; }
.contact-form input:focus, .contact-form textarea:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .stack-form input:focus { border-color: #8da9e8; background: white; box-shadow: 0 0 0 3px rgba(33,78,200,.08); }
.contact-form textarea, .admin-form textarea { resize: vertical; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { padding: 42px 0; color: #c1ccda; background: #101f35; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 36px; }
.footer-row strong { color: white; font-size: 14px; }
.footer-row p { max-width: 410px; margin: 8px 0 0; color: #8e9eb2; font-size: 11px; line-height: 1.7; }
.footer-row > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 17px; font-size: 11px; }
.footer-row > p:last-child { margin: 0; white-space: nowrap; }
.flash { width: min(1160px,calc(100% - 48px)); margin: 15px auto; padding: 12px 16px; border-radius: 10px; font-size: 13px; }
.flash-success { color: #126545; background: #e9f8f0; border: 1px solid #c6eed9; }
.flash-error { color: #a12a20; background: #fff0ed; border: 1px solid #ffd5ce; }
.empty-message { grid-column: 1/-1; padding: 30px; color: #738196; text-align: center; }
.article-top { padding: 24px 0; border-bottom: 1px solid var(--border); background: white; }
.back-link { color: #64748b; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.article-page { max-width: 800px; padding-top: 70px; padding-bottom: 90px; }
.article-page h1 { margin: 15px 0; font-size: clamp(34px,5vw,52px); line-height: 1.15; letter-spacing: -.05em; }
.article-page time { color: #7b8ba0; font-size: 12px; }
.article-hero-image { width: 100%; max-height: 440px; margin: 30px 0; border-radius: 20px; object-fit: cover; }
.article-lead { color: #50647f; font-size: 19px; line-height: 1.75; font-weight: 600; }
.article-body { margin: 28px 0 34px; color: #53657c; font-size: 15px; line-height: 1.95; }
.error-page { min-height: 65vh; display: grid; align-content: center; justify-items: start; gap: 12px; }
.error-page h1 { max-width: 720px; font-size: 42px; }

/* Admin workspace */
.admin-body { min-height: 100vh; color: #142943; background: #f4f7fb; }
.admin-sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; padding: 22px 16px; color: #d8e0ec; background: #10213a; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 4px 9px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand b, .admin-brand small { display: block; }
.admin-brand b { color: white; font-size: 13px; }
.admin-brand small { margin-top: 4px; color: #90a0b8; font-size: 10px; }
.admin-user { display: grid; gap: 5px; margin: 15px 4px 19px; padding: 13px; border-radius: 11px; background: rgba(255,255,255,.06); }
.admin-user b { color: white; font-size: 12px; }
.admin-user span { color: #9eacc0; font-size: 10px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a, .sidebar-bottom a, .sidebar-bottom button { display: block; padding: 11px 12px; border: 0; border-radius: 9px; color: #b7c3d4; background: transparent; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: #214ec8; }
.sidebar-bottom { display: grid; gap: 3px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 13px; }
.sidebar-bottom form { margin: 0; }
.sidebar-bottom button { width: 100%; }
.sidebar-bottom button:hover, .sidebar-bottom a:hover { color: white; background: rgba(255,255,255,.08); }
.admin-main { min-height: 100vh; margin-left: 250px; }
.admin-topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 35px; border-bottom: 1px solid #e6ebf2; background: white; color: #6d7c90; font-size: 11px; font-weight: 700; }
.admin-topbar i { padding: 0 9px; color: #bcc6d3; font-style: normal; }
.admin-role { padding: 6px 9px; border-radius: 99px; color: #3455a3; background: #edf2ff; font-size: 10px; }
.admin-content { width: min(1150px,100%); margin: 0 auto; padding: 32px 35px 60px; }
.page-title, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.page-title h1 { margin: 7px 0 0; font-size: 29px; letter-spacing: -.04em; }
.admin-panel { margin-bottom: 22px; padding: 24px; border: 1px solid #e7ecf3; border-radius: 15px; background: white; box-shadow: 0 7px 25px rgba(20,41,67,.025); }
.panel-heading { align-items: flex-start; margin-bottom: 20px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.03em; }
.panel-heading h2 small { color: #8391a5; font-size: 11px; }
.panel-heading p { margin: 7px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 23px; }
.stat-card { display: grid; gap: 5px; padding: 20px; border: 1px solid #e6ebf2; border-radius: 14px; background: white; }
.stat-card span { color: #76879d; font-size: 10px; font-weight: 800; }
.stat-card b { color: #18355b; font-size: 29px; letter-spacing: -.04em; }
.stat-card small { color: #78879b; font-size: 11px; }
.stat-accent { color: white; border-color: #214ec8; background: linear-gradient(135deg,#214ec8,#23a9d0); }
.stat-accent span, .stat-accent b, .stat-accent small { color: white; }
.quick-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.quick-links a { display: flex; justify-content: space-between; padding: 15px; border: 1px solid #e7ecf3; border-radius: 10px; color: #274260; font-size: 12px; font-weight: 700; }
.quick-links a:hover { color: var(--blue); border-color: #bdccef; }
.admin-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions, .row-actions { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
th { color: #738196; background: #f9fafc; font-size: 10px; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.table-title { display: flex; align-items: center; gap: 12px; }
.table-title img { width: 50px; height: 38px; border-radius: 7px; object-fit: cover; background: #edf1f6; }
.table-subtext { max-width: 450px; margin: 5px 0 0; color: #8793a4; font-size: 10px; }
.inline-form { display: inline-flex; margin: 0; }
.service-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.admin-service-card { padding: 17px; border: 1px solid #e8edf3; border-radius: 12px; }
.admin-service-card h3 { margin: 0 0 7px; font-size: 14px; }
.admin-service-card p { min-height: 52px; color: #738196; font-size: 11px; line-height: 1.6; }
.message-list { display: grid; gap: 12px; }
.message-card { padding: 17px; border: 1px solid #e8edf3; border-radius: 12px; }
.message-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.message-heading h3 { margin: 0 0 5px; font-size: 14px; }
.message-heading a, .message-heading time { color: #708097; font-size: 11px; }
.message-card p { margin: 14px 0; color: #54667f; font-size: 12px; line-height: 1.7; }
.settings-list { display: grid; gap: 11px; }
.settings-list form { display: grid; grid-template-columns: minmax(160px,.55fr) minmax(220px,1fr) auto; align-items: center; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf0f5; }
.settings-list form:last-child { border-bottom: 0; }
.settings-list label { display: grid; gap: 7px; font-size: 11px; font-weight: 700; }
.settings-list textarea, .settings-list input { width: 100%; padding: 10px 12px; border: 1px solid #e1e7ef; border-radius: 9px; font-size: 11px; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 30px; font-size: 10px; font-weight: 700; }
.status-on { color: #14764f; background: #e8f7ef; }
.status-off { color: #6c7788; background: #edf0f4; }
.check-label { display: flex !important; align-items: center; gap: 8px !important; }
.check-label input { width: auto; }
.muted { color: #7b899b; font-size: 11px; }
.narrow-panel { max-width: 600px; }
.narrow-panel h1 { margin: 8px 0; font-size: 25px; }
.narrow-panel .admin-form { margin-top: 22px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top right,#e5f5ff 0%,transparent 44%),#f3f6fb; }
.login-panel { width: min(430px,100%); padding: 34px; border: 1px solid #e6ebf2; border-radius: 20px; background: white; box-shadow: 0 30px 90px rgba(16,35,62,.1); }
.login-mark { margin: 25px 0 17px; width: 48px; height: 48px; }
.login-panel h1 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.05em; }
.login-panel > p { margin-bottom: 0; color: #728197; font-size: 12px; }
.stack-form { display: grid; gap: 16px; margin-top: 25px; }
.stack-form .button { margin-top: 4px; }

@media (max-width: 900px) {
  .main-nav { gap: 15px; }
  .nav-cta { display: none; }
  .hero-grid { gap: 30px; }
  .service-grid, .project-grid, .article-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { gap: 36px; }
  .admin-sidebar { width: 210px; }
  .admin-main { margin-left: 210px; }
  .admin-content { padding: 25px 22px 45px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 34px,1160px); }
  .nav-row { height: 68px; }
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; color: var(--navy); background: white; font-size: 18px; }
  .mobile-nav { display: none; padding-bottom: 13px; }
  .menu-open .mobile-nav { display: grid; gap: 3px; }
  .mobile-nav a { padding: 11px 3px; color: #53657c; font-size: 13px; font-weight: 700; }
  .hero { min-height: auto; padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(39px,12vw,58px); }
  .hero-description { font-size: 15px; }
  .hero-art { display: none; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 33px; }
  .split-heading { display: block; }
  .split-heading p { margin-top: 12px; }
  .service-grid, .project-grid, .article-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .contact-form { padding: 22px; }
  .footer-row { grid-template-columns: 1fr; gap: 20px; }
  .footer-row > p:last-child { white-space: normal; }
  .admin-sidebar { width: 100%; height: auto; position: static; padding: 12px 15px; }
  .admin-brand { padding: 0 2px 10px; }
  .admin-user { display: none; }
  .admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0 3px; }
  .admin-nav a { flex: 0 0 auto; padding: 9px 10px; white-space: nowrap; font-size: 10px; }
  .sidebar-bottom { grid-template-columns: 1fr auto; align-items: center; margin-top: 8px; padding-top: 5px; border: 0; }
  .sidebar-bottom a, .sidebar-bottom button { padding: 8px; font-size: 10px; }
  .sidebar-bottom form { justify-self: end; }
  .admin-main { margin-left: 0; }
  .admin-topbar { height: 48px; padding: 0 17px; }
  .admin-content { padding: 20px 15px 35px; }
  .admin-panel { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .service-admin-grid { grid-template-columns: 1fr; }
  .settings-list form { grid-template-columns: 1fr auto; }
  .settings-list form label { grid-column: 1 / -1; }
  .quick-links { grid-template-columns: 1fr; }
  .login-panel { padding: 26px; }
}
