/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink:      #0D1117;
  --ink-2:    #1E2B3C;
  --warm:     #F8F5F0;
  --white:    #FFFFFF;
  --blue:     #0090FF;
  --blue-lt:  #EFF6FF;
  --ember:    #E86D2C;
  --ember-lt: #FEF0E7;
  --mid:      #5B6E85;
  --dim:      #94A3B8;
  --border:   #E2DDD8;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.section-notice {
  font-size: 0.72rem;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 2rem;
}

.placeholder-badge {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: var(--mid);
  background: transparent;
  border: 1px dashed var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.text-ember {
  color: var(--ember);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { opacity: 1;    transform: translateY(0); }

.btn--accent {
  background: var(--blue);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--warm);
  border: 1.5px solid rgba(248, 245, 240, 0.35);
}

.btn--outline:hover {
  border-color: rgba(248, 245, 240, 0.7);
  background: rgba(248, 245, 240, 0.07);
  opacity: 1;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img { height: 34px; width: auto; }

.header__nav {
  display: none;
  margin-left: auto;
}

.nav__list { display: flex; gap: 2rem; }

.nav__list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}

.nav__list a:hover { color: var(--blue); }

.header__cta {
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__nav.is-open {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--warm);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.75rem;
  z-index: 199;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.header__nav.is-open .nav__list {
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.header__nav.is-open .nav__list a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.header__nav.is-open .nav__list li:last-child a { border-bottom: none; }

/* ── Desktop ── */
@media (min-width: 768px) {
  .header__nav {
    display: flex !important;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
    margin-left: auto;
  }

  .nav__list { flex-direction: row; gap: 2rem; }
  .hamburger { display: none; }
  .header__cta { margin-left: 1.5rem; }
}

/* ============================================================
   SCROLL OFFSET
   ============================================================ */
section[id] { scroll-margin-top: 72px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(64px + 5rem);
  padding-bottom: 6.5rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Ember glow — top-right atmosphere */
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 144, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero__heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--warm);
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  max-width: 700px;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--dim);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  background: var(--ember);
  padding: 4rem 0;
}

.problem__text {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--ink);
  max-width: 760px;
  line-height: 1.75;
  font-weight: 500;
}

/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain-points {
  padding: 5rem 0;
  background: var(--white);
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-top: 3px solid var(--ember);
  margin-bottom: 2.5rem;
}

.pain-item {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.975rem;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pain-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.pain-item:last-child { border-bottom: none; }

.pain-cta-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  padding: 6rem 0;
  background: var(--warm);
}

.steps .section-title { margin-bottom: 3rem; }

.steps__list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
}

@media (min-width: 600px) {
  .steps__list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  background: var(--warm);
  padding: 2rem 1.75rem;
  overflow: hidden;
}

.step-card__num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
  user-select: none;
}

.step-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.step-card__desc {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ============================================================
   CARDS GRID — shared by Services + Projects
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 600px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 6rem 0;
  background: var(--white);
}

.services .section-title { margin-bottom: 0.5rem; }

.service-card {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.service-card--open {
  background: var(--ink);
}

.service-card--open .service-card__title {
  color: var(--warm);
}

.service-card--open .service-card__desc {
  color: var(--dim);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: opacity 0.15s;
}

.service-card__cta:hover { opacity: 0.75; }

.service-card__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-lt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

/* Services intro paragraph */
.services-intro {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: 6rem 0;
  background: var(--warm);
}

.projects .section-title { margin-bottom: 0.5rem; }

.project-card {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-card--placeholder { opacity: 0.5; }

.project-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

/* Case study format inside project cards */
.case-study {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.case-study__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.case-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.case-value {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 6rem 0;
  background: var(--white);
}

.about__inner { max-width: 660px; }

.about__content .section-title { margin-bottom: 1.75rem; }

.about__content p {
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.about__cta { margin-top: 2rem; }

.about__content p:last-of-type { margin-bottom: 0; }

.diploma-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 144, 255, 0.35);
  transition: opacity 0.15s;
}

.diploma-link:hover { opacity: 0.72; }
.diploma-link svg { flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0;
  background: var(--ink);
}

.contact__inner { max-width: 560px; }

.contact__inner .section-title {
  color: var(--warm);
  margin-bottom: 0.875rem;
}

.contact__sub {
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-size: 0.975rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm);
  transition: color 0.15s;
}

.contact__link:hover { color: var(--blue); }

.contact__link svg {
  flex-shrink: 0;
  color: var(--blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #030712;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.footer__copy {
  font-size: 0.825rem;
  color: var(--dim);
}
