/* ════════════════════════════════════════
   FORMA — Design Agency Landing Page
   Light theme · Green primary
   ════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --color-bg:        #ffffff;
  --color-bg-2:      #f5faf6;
  --color-surface:   #f0f7f2;
  --color-surface-2: #e4f0e8;

  /* Borders */
  --color-border:        rgba(0,0,0,0.08);
  --color-border-strong: rgba(0,0,0,0.16);

  /* Text */
  --color-text:       #0d1f12;
  --color-text-muted: #4a6652;
  --color-text-faint: #8aaa94;

  /* Primary — green */
  --color-primary:       #16a34a;
  --color-primary-dark:  #15803d;
  --color-primary-light: #22c55e;
  --color-primary-xlight:#dcfce7;

  /* Accent palette (service cards) */
  --color-blue:   #0EA5E9;
  --color-orange: #F97316;
  --color-pink:   #EC4899;
  --color-teal:   #14B8A6;
  --color-violet: #8B5CF6;
  --color-amber:  #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1160px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(22,163,74,0.28);
}

.btn-primary.btn-lg { font-size: 15px; padding: 13px 26px; border-radius: 10px; }

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--color-text); background: rgba(0,0,0,0.05); }

.btn-ghost-sm {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s;
}
.btn-ghost-sm:hover { color: var(--color-primary-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border-strong);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.03); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--color-text);
  flex-shrink: 0;
}

/* Green logo mark */
.logo svg rect { fill: var(--color-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--color-text); background: rgba(0,0,0,0.05); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(22,163,74,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 60%, rgba(14,165,233,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(34,197,94,0.06) 0%, transparent 60%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black, transparent);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 24px 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-dark);
  background: var(--color-primary-xlight);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #0d1f12 40%, #2d6a3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.br-desktop { display: block; }

/* ══════════════════════════════════
   LOGO CAROUSEL
   ══════════════════════════════════ */
.logos-section {
  padding: 52px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-2);
}

.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 28px;
}

.logos-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.logos-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: logos-scroll 22s linear infinite;
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-faint);
  letter-spacing: -0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}
.logo-item:hover { color: var(--color-text-muted); }

/* ══════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════════════════════════════
   SERVICES GRID
   ══════════════════════════════════ */
.services-section {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.card-accent-purple::before { background: linear-gradient(90deg, transparent, var(--color-primary), transparent); }
.card-accent-blue::before   { background: linear-gradient(90deg, transparent, var(--color-blue), transparent); }
.card-accent-green::before  { background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent); }
.card-accent-orange::before { background: linear-gradient(90deg, transparent, var(--color-orange), transparent); }
.card-accent-pink::before   { background: linear-gradient(90deg, transparent, var(--color-pink), transparent); }
.card-accent-teal::before   { background: linear-gradient(90deg, transparent, var(--color-teal), transparent); }

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }

.service-icon.purple { background: rgba(22,163,74,0.12);  color: var(--color-primary-dark); }
.service-icon.blue   { background: rgba(14,165,233,0.12); color: #0284c7; }
.service-icon.green  { background: rgba(34,197,94,0.12);  color: #15803d; }
.service-icon.orange { background: rgba(249,115,22,0.12); color: #ea580c; }
.service-icon.pink   { background: rgba(236,72,153,0.12); color: #db2777; }
.service-icon.teal   { background: rgba(20,184,166,0.12); color: #0f766e; }

.service-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.4px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  transition: color 0.2s;
}
.service-link:hover { color: var(--color-primary-dark); }

/* ══════════════════════════════════
   STATS
   ══════════════════════════════════ */
.stats-section {
  padding: 80px 0;
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-plus {
  font-size: 0.6em;
  color: var(--color-primary);
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ══════════════════════════════════
   CASE STUDIES ACCORDION
   ══════════════════════════════════ */
.cases-section {
  padding: 100px 0;
}

.cases-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.case-item {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: background 0.2s;
}
.case-item:last-child { border-bottom: none; }
.case-item.case-active { background: var(--color-surface); }

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  user-select: none;
}
.case-header:hover { background: var(--color-surface); }

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-company {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.case-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

.case-chevron {
  width: 20px; height: 20px;
  color: var(--color-text-faint);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.case-active .case-chevron { transform: rotate(180deg); }

.case-body {
  display: none;
  padding: 0 32px 28px;
  flex-direction: column;
  gap: 20px;
}
.case-active .case-body { display: flex; }

.case-stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.case-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.8px;
}

.case-stat span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tag-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: 100px;
}

.case-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s;
}
.case-link:hover { color: var(--color-primary-dark); }

/* ══════════════════════════════════
   INSIGHTS FEED
   ══════════════════════════════════ */
.insights-section {
  padding: 100px 0;
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.insights-header .section-title { margin-bottom: 0; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.insight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.insight-card.insight-featured {
  grid-column: span 2;
}

.insight-img {
  width: 100%;
  flex-shrink: 0;
}

.insight-card:not(.insight-featured) .insight-img { height: 140px; }
.insight-card.insight-featured .insight-img { height: 220px; }

.insight-img-1 { background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 50%, #16a34a 100%); }
.insight-img-2 { background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 50%, #0369a1 100%); }
.insight-img-3 { background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%); }
.insight-img-4 { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #d97706 100%); }

.insight-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.insight-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.insight-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  flex: 1;
}
.insight-featured .insight-content h3 { font-size: 18px; }

.insight-content p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.insight-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: 8px;
  transition: color 0.2s;
}
.insight-link:hover { color: var(--color-primary-dark); }

/* ══════════════════════════════════
   CTA SECTION
   ══════════════════════════════════ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  border-top: 1px solid rgba(22,163,74,0.2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(74,222,128,0.2), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 10px;
}

.cta-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 72px;
}

.footer-top {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  align-self: flex-start;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col li a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-faint);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-faint);
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--color-text); border-color: var(--color-border-strong); }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--color-border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--color-border); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-card.insight-featured { grid-column: span 2; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline { letter-spacing: -1px; }
  .br-desktop { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--color-border); }
  .stat-item:nth-child(3) { border-right: none !important; }

  .insights-grid { grid-template-columns: 1fr; }
  .insight-card.insight-featured { grid-column: span 1; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .case-header { padding: 20px; }
  .case-body { padding: 0 20px 20px; }
  .case-stats-row { gap: 24px; }

  .insights-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary.btn-lg,
  .btn-outline.btn-lg { width: 100%; justify-content: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
