:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --accent: #0055ff;
  --muted: #86868b;
  --border: #d2d2d7;
  --surface: #f5f5f7;
  --danger: #d92d20;
  --success: #0a7a32;
  --shadow: 0 20px 60px rgba(29, 29, 31, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font: inherit;
}
button { cursor: pointer; }
textarea { resize: vertical; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.74);
  border-bottom: 1px solid rgba(210,210,215,.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.brand-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a, .pill {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: .25s ease;
}
.nav-links a:hover,
.pill:hover { background: var(--surface); color: var(--fg); }
.pill.active {
  background: var(--fg);
  color: var(--bg);
}
.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,85,255,.12), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(120,119,255,.12), transparent 28%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 54%, #f6f8ff 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(31, 38, 135, 0.10);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(29,29,31,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,29,31,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 82%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .8;
  z-index: 1;
  animation: floatOrb 16s ease-in-out infinite;
}
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.2) 26%, rgba(0,85,255,.12) 58%, rgba(120,119,255,.16) 100%);
  box-shadow:
    inset -18px -18px 36px rgba(0,0,0,.08),
    inset 20px 20px 28px rgba(255,255,255,.8),
    0 18px 60px rgba(75, 98, 255, .18);
}
.orb-1 {
  width: 260px;
  height: 260px;
  top: 10%;
  left: -40px;
}
.orb-2 {
  width: 180px;
  height: 180px;
  top: 18%;
  right: 12%;
  animation-duration: 20s;
  animation-delay: -3s;
}
.orb-3 {
  width: 340px;
  height: 340px;
  bottom: -90px;
  right: -40px;
  animation-duration: 22s;
  animation-delay: -7s;
}
.orb-4 {
  width: 120px;
  height: 120px;
  bottom: 16%;
  left: 14%;
  animation-duration: 18s;
  animation-delay: -5s;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1, .section-title, .contact-heading, .admin-title {
  font-family: Montserrat, Inter, sans-serif;
  letter-spacing: -0.04em;
}
.hero h1 {
  font-size: clamp(42px, 8vw, 96px);
  line-height: .95;
  margin: 0 0 16px;
}
.hero p {
  width: min(760px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.28;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  transition: .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 16px 40px rgba(0,85,255,.12);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-danger {
  background: #fff1f0;
  color: var(--danger);
}
.btn-success {
  background: #edfef2;
  color: var(--success);
}
.section {
  padding: 100px 0;
}
.section-muted {
  background: var(--surface);
}
.section-head {
  margin-bottom: 34px;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .94;
}
.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}
.grid-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project-card,
.client-card,
.admin-card,
.auth-card,
.notice,
.admin-shell {
  background: #fff;
  border: 1px solid rgba(210,210,215,.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.project-card {
  overflow: hidden;
}
.project-media {
  aspect-ratio: 16/10;
  background: #e9e9ee;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.project-card:hover .project-media img { transform: scale(1.04); }
.project-body {
  padding: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.project-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.project-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}
.project-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  font-size: 20px;
}
.grid-clients {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.client-card {
  padding: 18px;
  text-align: center;
}
.client-card .logo-wrap {
  aspect-ratio: 16/9;
  border-radius: 22px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin-bottom: 14px;
}
.client-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.client-name {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-section {
  text-align: center;
}
.contact-heading {
  font-size: clamp(42px, 7vw, 92px);
  line-height: .94;
  margin: 0 0 24px;
  background: linear-gradient(90deg, var(--fg), var(--accent), var(--fg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientMove 5s linear infinite;
}
.contact-socials,
.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(210,210,215,.5);
  background: rgba(245,245,247,.5);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand img {
  height: 26px;
  opacity: .65;
}
.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.notice {
  padding: 16px 18px;
  margin-bottom: 18px;
}
.notice-success { border-left: 4px solid var(--success); }
.notice-error { border-left: 4px solid var(--danger); }
.auth-page,
.admin-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  padding: 36px 0;
}
.auth-card {
  width: min(480px, calc(100% - 32px));
  margin: 50px auto;
  padding: 30px;
}
.auth-card h1 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: -0.04em;
}
.auth-card p {
  color: var(--muted);
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-full { grid-column: 1 / -1; }
label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(210,210,215,.8);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  transition: .18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,85,255,.08);
}
.help {
  color: var(--muted);
  font-size: 13px;
  margin-top: -2px;
}
.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
}
.admin-topbar {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(210,210,215,.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-title {
  font-size: 34px;
  margin: 0;
}
.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-main {
  padding: 24px;
  background: #fbfbfc;
}
.admin-grid {
  display: grid;
  gap: 20px;
}
.admin-card {
  padding: 22px;
}
.admin-card h2,
.admin-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}
.item-list {
  display: grid;
  gap: 16px;
}
.thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(210,210,215,.7);
}
.thumb.logo {
  object-fit: contain;
  background: #fff;
  padding: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.table-lite {
  width: 100%;
  border-collapse: collapse;
}
.table-lite td,
.table-lite th {
  padding: 10px 0;
  border-bottom: 1px solid rgba(210,210,215,.5);
  vertical-align: top;
}
.table-lite th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
@keyframes gradientMove { to { background-position: 200% center; } }
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(18px, -20px, 0) scale(1.04); }
  50% { transform: translate3d(-12px, 24px, 0) scale(.97); }
  75% { transform: translate3d(20px, 10px, 0) scale(1.02); }
}
@media (max-width: 1024px) {
  .grid-clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-panel { padding: 26px 18px; border-radius: 28px; }
  .orb-1 { width: 180px; height: 180px; left: -50px; }
  .orb-2 { width: 120px; height: 120px; right: -10px; top: 12%; }
  .orb-3 { width: 220px; height: 220px; bottom: -80px; right: -70px; }
  .orb-4 { width: 90px; height: 90px; left: 8%; bottom: 10%; }
  .grid-projects, .form-grid { grid-template-columns: 1fr; }
  .grid-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .project-name { font-size: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .admin-main, .admin-topbar { padding: 18px; }
}
