:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --line: #e8e8ed;
  --text: #1d1d1f;
  --dim: #6e6e73;
  --blue: #2f7cf6;
  --logo-blue: #0b54bd;
  --logo-navy: #0c1a30;
  --accent-grad: linear-gradient(135deg, #2f7cf6 0%, #6e3df0 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 40px rgba(47, 124, 246, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark {
  display: block; width: 34px; height: 34px;
  border-radius: 9px; box-shadow: var(--shadow-sm);
}
.brand-logo { display: block; height: 34px; width: auto; }
.brand-text { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-cta {
  font-weight: 500; font-size: 15px; color: var(--text);
  padding: 7px 16px; border-radius: 980px; border: 1px solid var(--line);
  background: #fff;
}
.nav-cta:hover { text-decoration: none; border-color: #d2d2d7; }

/* ---- Hero ---- */
.hero { padding: 110px 0 90px; text-align: center; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
/* Hero brand line — "GJ Digital" in the logo's two colors, enlarged */
.hero-brand {
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px;
}
.hero-brand .hb-gj { color: var(--logo-blue); }
.hero-brand .hb-digital { color: var(--logo-navy); }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.06;
  font-weight: 700; letter-spacing: -0.025em; margin-bottom: 24px;
}
.lead {
  max-width: 660px; margin: 0 auto 36px;
  font-size: clamp(18px, 2.4vw, 21px); color: var(--dim); line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 500; font-size: 16px;
  padding: 12px 26px; border-radius: 980px; transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: #d2d2d7; }

/* ---- Sections ---- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -0.02em; text-align: center; margin-bottom: 16px;
}
.section-lead {
  max-width: 620px; margin: 0 auto 48px; text-align: center;
  color: var(--dim); font-size: 18px;
}

/* ---- Cards ---- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 15.5px; line-height: 1.55; }

/* ---- Contact ---- */
.contact { text-align: center; }
.email {
  display: inline-block; margin-top: 8px;
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.01em;
}

/* ---- Footer ---- */
.footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer .brand-text { font-size: 15px; }
.footer .copyright { color: var(--dim); font-size: 13.5px; }
.footer a { font-size: 14px; }

/* ---- Nav links ---- */
.nav-links { display: none; align-items: center; gap: 24px; }
.nav-links > a:not(.nav-cta) { font-size: 15px; font-weight: 500; color: var(--text); }
.nav-links > a:not(.nav-cta):hover { text-decoration: none; color: var(--blue); }

/* ---- Hamburger menu (always shown — the single nav on every width) ---- */
.nav details.menu { display: block; position: relative; }
.nav details.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 38px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.nav details.menu summary::-webkit-details-marker { display: none; }
.nav details.menu summary::marker { content: ""; }
.nav details.menu summary span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav details.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav details.menu[open] summary span:nth-child(2) { opacity: 0; }
.nav details.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nav .dropdown {
  animation: ddIn 0.18s ease; transform-origin: top right;
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; z-index: 60;
}
.nav .dropdown a {
  display: block; padding: 12px 15px; border-radius: 10px;
  color: var(--text); font-weight: 500; font-size: 15px;
}
.nav .dropdown a:hover { background: var(--bg-alt); color: var(--blue); text-decoration: none; }

/* ---- Services list ---- */
.svc-list {
  list-style: none; margin: 36px auto 0; max-width: 760px;
  display: grid; gap: 12px 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.svc-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--text); }
.svc-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 0;
  color: var(--blue); font-weight: 700;
}

/* ---- Project / portfolio ---- */
.project {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 760px; margin: 0 auto; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 30px; box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.project:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d9d9e0; }
.project-icon {
  flex: none; width: 76px; height: 76px; border-radius: 17px;
  box-shadow: var(--shadow-sm);
}
.project-body { flex: 1; min-width: 0; }
.project h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.project-meta { font-size: 13.5px; color: var(--blue); font-weight: 500; margin-bottom: 10px; }
.project-body > p:last-child { color: var(--dim); font-size: 15.5px; line-height: 1.55; }
.project-link { flex: none; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ---- Sub-page head ---- */
.page-head { text-align: center; padding: 96px 0 36px; }
.page-title {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700;
  letter-spacing: -0.025em; margin: 14px 0 18px;
}

/* ---- Legal pages (privacy / terms) ---- */
article { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }
article h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 8px; letter-spacing: -0.025em; font-weight: 700; }
article .updated { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
article h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; font-weight: 600; }
article h3 { font-size: 17px; margin: 28px 0 8px; font-weight: 600; }
article p, article li { color: var(--dim); font-size: 16px; line-height: 1.62; }
article ul { margin: 0 0 0 2px; padding-left: 22px; }
article li { margin: 6px 0; }
article strong { color: var(--text); }
article a { color: var(--blue); }

/* ---- Footer links group ---- */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

@media (max-width: 560px) {
  .footer .wrap { flex-direction: column; text-align: center; gap: 8px; }
  .hero { padding: 80px 0 64px; }
  .project { flex-direction: column; align-items: flex-start; gap: 16px; }
}
