:root{
  --bg-dark:#0B1220;
  --bg-dark-2:#0F1B2E;
  --bg-dark-3:#132139;
  --bg-light:#F5F7FA;
  --panel-light:#FFFFFF;
  --ink:#0B1220;
  --muted:#5B6472;
  --muted-light:#8B93A3;
  --teal:#00D9B5;
  --blue:#2B5CFF;
  --border-dark:rgba(255,255,255,0.09);
  --border-light:rgba(11,18,32,0.08);
  --radius:14px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',sans-serif;
  background:var(--bg-light);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
.mono{font-family:'JetBrains Mono',monospace;}
.display{font-family:'Space Grotesk',sans-serif;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
.section{padding:96px 0;}
@media (max-width:720px){ .section{padding:64px 0;} }

/* ---------- Eyebrow ---------- */
.eyebrow{
  font-family:'JetBrains Mono',monospace;
  font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--teal); display:flex; align-items:center; gap:10px; margin-bottom:18px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--teal); }
.eyebrow.on-light{ color:#0E8F78; }

/* ---------- Header ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(11,18,32,0.72); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-dark);
}
header .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{display:flex; align-items:center; gap:12px;}
.brand-mark{
  width:40px; height:40px; border-radius:10px;
  background:linear-gradient(135deg, var(--teal), var(--blue));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px;
  color:#0B1220; flex-shrink:0;
}
.brand-name{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14.5px; color:#fff; line-height:1.25; }
.brand-name span{ display:block; font-family:'JetBrains Mono',monospace; font-weight:400; font-size:10.5px; letter-spacing:.08em; color:var(--muted-light); margin-top:2px; }
nav.main-nav{display:flex; align-items:center; gap:36px;}
nav.main-nav a{ font-size:14px; color:#C7CDD9; font-weight:500; transition:color .2s; }
nav.main-nav a:hover{color:#fff;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:999px; font-size:14px; font-weight:600;
  border:1px solid transparent; transition:transform .18s ease, opacity .18s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{ background:var(--teal); color:#04241D; }
.btn-primary:hover{ opacity:.92; }
.btn-ghost{ border-color:var(--border-dark); color:#fff; }
.btn-ghost:hover{ background:rgba(255,255,255,0.06); }
.btn-outline-dark{ border-color:var(--border-light); color:var(--ink); }
.btn-outline-dark:hover{ background:rgba(11,18,32,0.05); }
.btn-danger{ background:#FF6B6B; color:#2B0A0A; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:radial-gradient(120% 90% at 78% 12%, #14263f 0%, var(--bg-dark) 55%), var(--bg-dark);
  color:#fff; padding:180px 0 120px; overflow:hidden; border-bottom:1px solid var(--border-dark);
}
.hero .wrap{ display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; }
.hero h1{
  font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size:clamp(34px,4.6vw,56px); line-height:1.08; letter-spacing:-0.01em; margin-bottom:22px;
}
.hero h1 em{ font-style:normal; color:var(--teal); }
.hero p.lede{ font-size:17px; line-height:1.65; color:#B7C0CF; max-width:520px; margin-bottom:34px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-visual{ position:relative; height:440px; }
.hero-visual svg{ width:100%; height:100%; }
.node{ animation:pulseNode 3.2s ease-in-out infinite; }
.node.n2{ animation-delay:.4s; } .node.n3{ animation-delay:.8s; }
.node.n4{ animation-delay:1.2s; } .node.n5{ animation-delay:1.6s; } .node.n6{ animation-delay:2s; }
@keyframes pulseNode{ 0%,100%{ opacity:.55; r:3.2; } 50%{ opacity:1; r:5.2; } }
.flow-line{ stroke-dasharray:6 10; animation:flowDash 2.4s linear infinite; }
@keyframes flowDash{ to{ stroke-dashoffset:-64; } }

.hero-stats{ border-top:1px solid var(--border-dark); background:var(--bg-dark-2); }
.hero-stats .wrap{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding:34px 28px; }
.stat-num{ font-family:'JetBrains Mono',monospace; font-weight:500; font-size:26px; color:var(--teal); }
.stat-label{ font-size:12.5px; color:var(--muted-light); margin-top:6px; }
@media (max-width:860px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-visual{ height:280px; order:-1; }
  .hero-stats .wrap{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- About ---------- */
.about .wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:start; }
.about h2{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(26px,3vw,36px); line-height:1.18; margin-bottom:18px; }
.about p{ color:var(--muted); line-height:1.75; font-size:15.5px; margin-bottom:16px; }
.about-points{ display:grid; gap:18px; margin-top:8px; }
.about-point{ display:flex; gap:14px; padding:20px; border:1px solid var(--border-light); border-radius:var(--radius); background:var(--panel-light); }
.about-point .pt-icon{ width:34px; height:34px; border-radius:9px; flex-shrink:0; background:rgba(0,217,181,0.12); color:#0E8F78; display:flex; align-items:center; justify-content:center; }
.about-point h4{ font-size:15px; font-weight:600; margin-bottom:4px; }
.about-point p{ font-size:13.5px; margin:0; color:var(--muted); }
@media (max-width:860px){ .about .wrap{ grid-template-columns:1fr; } }

/* ---------- Services ---------- */
.services{ background:var(--bg-dark); color:#fff; }
.services h2{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(26px,3vw,36px); max-width:560px; line-height:1.2; margin-bottom:14px; }
.services > .wrap > p{ color:var(--muted-light); max-width:520px; margin-bottom:52px; font-size:15.5px; }
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border-dark); border:1px solid var(--border-dark); border-radius:var(--radius); overflow:hidden; }
.service-card{ background:var(--bg-dark-2); padding:30px 26px; transition:background .2s; }
.service-card:hover{ background:var(--bg-dark-3); }
.service-icon{ width:42px; height:42px; border-radius:10px; margin-bottom:20px; background:linear-gradient(135deg, rgba(0,217,181,.18), rgba(43,92,255,.18)); display:flex; align-items:center; justify-content:center; color:var(--teal); }
.service-card h3{ font-family:'Space Grotesk',sans-serif; font-size:16.5px; font-weight:600; margin-bottom:10px; }
.service-card p{ font-size:13.8px; color:var(--muted-light); line-height:1.6; }
@media (max-width:860px){ .service-grid{ grid-template-columns:1fr; } }
@media (min-width:861px) and (max-width:1100px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Gallery ---------- */
.gallery-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:40px; flex-wrap:wrap; }
.gallery-head h2{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(26px,3vw,36px); }
.gallery-head p{ color:var(--muted); max-width:440px; font-size:14.5px; }
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-grid .g-item{ position:relative; aspect-ratio:1/1; border-radius:10px; overflow:hidden; background:#E7EAF0; cursor:pointer; border:1px solid var(--border-light); }
.gallery-grid .g-item img{ width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.gallery-grid .g-item:hover img{ transform:scale(1.06); }
.gallery-empty{ grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--muted-light); border:1px dashed var(--border-light); border-radius:var(--radius); font-size:14px; }
@media (max-width:860px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }

.lightbox{ position:fixed; inset:0; background:rgba(6,10,18,0.92); z-index:300; display:none; align-items:center; justify-content:center; padding:40px; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:100%; max-height:86vh; border-radius:8px; }
.lightbox-close{ position:absolute; top:26px; right:30px; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.1); color:#fff; border:none; font-size:18px; }

/* ---------- Contact ---------- */
.contact{ background:var(--bg-light); }
.contact .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.contact h2{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(26px,3vw,36px); margin-bottom:16px; }
.contact > .wrap > div:first-child > p{ color:var(--muted); font-size:15px; line-height:1.7; max-width:440px; margin-bottom:30px; }
.contact-card{ background:var(--bg-dark); color:#fff; border-radius:var(--radius); padding:34px; }
.contact-row{ display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--border-dark); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .c-icon{ width:36px; height:36px; border-radius:9px; background:rgba(0,217,181,.14); color:var(--teal); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-row .c-label{ font-size:11.5px; color:var(--muted-light); text-transform:uppercase; letter-spacing:.08em; font-family:'JetBrains Mono',monospace; margin-bottom:4px; }
.contact-row .c-value{ font-size:14.5px; font-weight:500; }
.contact-row .c-value small{ display:block; font-weight:400; color:var(--muted-light); font-size:12.5px; margin-top:2px; }
.contact-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
@media (max-width:860px){ .contact .wrap{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
footer{ background:var(--bg-dark); color:var(--muted-light); border-top:1px solid var(--border-dark); }
footer .wrap{ padding:34px 28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; font-size:13px; }
footer a.admin-link{ color:var(--muted-light); font-family:'JetBrains Mono',monospace; font-size:11.5px; opacity:.6; }
footer a.admin-link:hover{ opacity:1; color:var(--teal); }

/* ---------- ADMIN ---------- */
body.admin-body{ background:var(--bg-light); }
.admin-topbar{
  background:var(--bg-dark); color:#fff; border-bottom:1px solid var(--border-dark);
  display:flex; align-items:center; justify-content:space-between; padding:0 28px; height:70px;
}
.admin-shell{ max-width:1000px; margin:0 auto; padding:48px 28px 100px; }
.admin-tabs{ display:flex; gap:8px; margin-bottom:32px; border-bottom:1px solid var(--border-light); }
.admin-tab{
  padding:12px 6px; margin-right:22px; font-size:14px; font-weight:600; color:var(--muted);
  border-bottom:2px solid transparent; background:none; border-top:none; border-left:none; border-right:none;
}
.admin-tab.active{ color:var(--ink); border-bottom-color:var(--teal); }
.admin-panel{ display:none; }
.admin-panel.active{ display:block; }

.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:8px; }
.field input{ width:100%; padding:12px 14px; border:1px solid var(--border-light); border-radius:9px; font-size:14px; font-family:inherit; background:#fff; }
.field input:focus{ outline:2px solid var(--teal); outline-offset:1px; border-color:transparent; }
.field-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .field-grid{ grid-template-columns:1fr; } }

.flash{ padding:14px 18px; border-radius:10px; font-size:13.5px; margin-bottom:26px; }
.flash.success{ background:rgba(0,217,181,0.1); color:#0E8F78; border:1px solid rgba(0,217,181,0.3); }
.flash.error{ background:rgba(255,107,107,0.1); color:#B33; border:1px solid rgba(255,107,107,0.3); }

.upload-box{ border:1.5px dashed var(--border-light); border-radius:var(--radius); padding:34px; text-align:center; margin-bottom:28px; background:#fff; }
.upload-box p{ font-size:13.5px; color:var(--muted); margin-bottom:14px; }
.admin-gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:640px){ .admin-gallery-grid{ grid-template-columns:repeat(2,1fr); } }
.admin-g-item{ position:relative; aspect-ratio:1/1; border-radius:9px; overflow:hidden; border:1px solid var(--border-light); }
.admin-g-item img{ width:100%; height:100%; object-fit:cover; }
.admin-g-item form{ position:absolute; top:6px; right:6px; margin:0; }
.admin-g-item .del-btn{ width:28px; height:28px; border-radius:50%; background:rgba(11,18,32,0.75); color:#fff; border:none; font-size:14px; line-height:1; }

#login-screen{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bg-dark); }
.login-card{ width:100%; max-width:360px; background:var(--bg-dark-2); border:1px solid var(--border-dark); border-radius:var(--radius); padding:36px; color:#fff; }
.login-card h2{ font-family:'Space Grotesk',sans-serif; font-size:20px; margin-bottom:8px; }
.login-card p{ font-size:13px; color:var(--muted-light); margin-bottom:24px; }
.login-card input{ width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--border-dark); background:rgba(255,255,255,0.04); color:#fff; font-size:14px; margin-bottom:14px; }
.login-card .btn{ width:100%; }
.login-err{ font-size:12.5px; color:#FF6B6B; margin-bottom:12px; min-height:16px; }

.hint-box{ background:rgba(0,217,181,0.08); border:1px solid rgba(0,217,181,0.25); border-radius:10px; padding:14px 16px; font-size:12.5px; color:#0E8F78; margin-bottom:28px; line-height:1.6; }
