:root {
  --bg-dark: #1a1a1f;
  --bg-darker: #141418;
  --accent: #4a5cf7;
  --accent-bright: #5b6cff;
  --accent-deep: #3a48d4;
  --text-light: #ffffff;
  --text-muted: #9a9aa5;
  --text-body: #5a5a66;
  --text-dark: #1a1a1f;
  --line: #e8e8ee;
  --bg-soft: #f6f7fb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-bottom: 120px;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 5px;
  position: relative;
  display: inline-block;
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.brand-mark::before { left: 5px; top: 5px; width: 5px; height: 5px; }
.brand-mark::after { right: 5px; bottom: 5px; width: 5px; height: 5px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--text-dark); }

.hero-inner {
  padding-top: 80px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent-bright); }

.hero-sub {
  margin-top: 32px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- News section (overlap) ---------- */
.news-section {
  background: #fff;
  margin-top: -80px;
  position: relative;
  padding: 60px 0 80px;
  border-top-left-radius: 4px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 14px;
}

.eyebrow.dark { color: var(--accent); font-weight: 600; }

.news-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-body {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 380px;
}

.read-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 50px;
  position: relative;
}
.read-more .arrow {
  display: inline-block;
  width: 80px;
  border-bottom: 1.5px solid var(--accent);
  position: relative;
  text-align: right;
  font-size: 0;
}
.read-more .arrow::after {
  content: '→';
  font-size: 14px;
  position: absolute;
  right: 0;
  top: -10px;
}

.news-card.alt h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.news-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-nav button {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 8px;
}

.news-divider {
  flex: 1;
  height: 1.5px;
  background: var(--text-dark);
  max-width: 100px;
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding: 80px 0 120px;
  background: #fff;
}

.portfolio-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}

.portfolio-head h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.portfolio-head p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card {
  background: var(--bg-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(74, 92, 247, 0.12);
}

.card-art {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-art-maddy {
  background: linear-gradient(135deg, #e8fff0 0%, #d6f7e2 100%);
}

.card-art-interview {
  background: linear-gradient(135deg, #eef1fb 0%, #dde3f5 100%);
}

.logo-maddy, .logo-interview {
  width: 45%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
}

.card-body {
  padding: 28px 28px 32px;
}

.card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Approach ---------- */
.approach {
  background: var(--bg-soft);
  padding: 100px 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.approach h2 {
  font-size: 40px;
  font-weight: 800;
  margin-top: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.approach-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.approach-cols h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.approach-cols p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  color: var(--text-dark);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer h5 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer ul li, .footer ul li a {
  color: var(--text-body);
  font-size: 14px;
  transition: color 0.2s;
}

.footer ul li a:hover { color: var(--accent); }

.footer-bottom {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent-bright) 100%);
  color: #fff;
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}

.socials a:hover { background: rgba(255,255,255,0.3); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .news-grid, .portfolio-head, .approach-grid, .portfolio-grid, .approach-cols, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-inner { padding-top: 40px; }
  .hero { padding-bottom: 80px; }
  .news-section { margin-top: -40px; padding: 40px 0; }
  .portfolio-head h2 { font-size: 40px; }
  .approach h2 { font-size: 30px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; }
}
